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:
The Orient event is referenced using an event value of 301. The equated label in PLBEQU.INC for this event is $ClientEventOrient.
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:
|
Value |
Represents the ... |
|
width |
new width. |
|
height |
new height. |
|
orient |
new orientation specified as 'landscape' or 'portrait'. |
Example of ARG1 JSON data:
See Also: EVENTREGISTER, Object Events, Object IO Instructions, Object Definitions
![]() |