Orient Event


9.8B, PLB Web Only

 

The Orient event is a PL/B Web Server event for the CLIENT object that occurs when the orientation (i.e., portrait or landscape) of a mobile device changes.

Note the following:

  1. The Orient event is referenced using an event value of 301. The equated label in PLBEQU.INC for this event is $ClientEventOrient.

  2. The Orient event data is returned as a JSON string in the ARG1 parameter where the data is a JSON string with the following parameters:

  3.  

    Value

    Represents the ...

    width

    new width.

    height

    new height.

    orient

    new orientation specified as 'landscape' or 'portrait'.

    Example of ARG1 JSON data:

     

    "width": 100, "height": 200, "orient": "portrait"

     

     

    See Also: EVENTREGISTER, Object Events, Object IO Instructions, Object Definitions

     



    PL/B Language Reference OldEvent Event Paint Event