OnOrientationChange - cBaseLocalControlHost

Fired when the orientation changes on a mobile device

Type: Event

Parameters: Integer iOrientation

ParameterDescription
iOrientationThe orientation in degrees, as provided by the browser


Syntax
Procedure OnOrientationChange Integer iOrientation

Description

This event is fired when the orientation changes on a mobile device. This means that the device has been tilted from landscape to portrait mode or the other way around.

Note that the event needs to be turned on using pbServerOnOrientationChange.