bn.onDeviceOrientationChange
▸ onDeviceOrientationChange(cb
): void
description
Listens on the landscape/portrait mode switchover event.
example
Parameters
Name | Type |
---|---|
cb | OnDeviceOrientationChangeCallback |
Returns
void
#
OnDeviceOrientationChangeCallbackƬ OnDeviceOrientationChangeCallback: (result
: OnDeviceOrientationChangeCallbackResult
) => void
Type declaration
▸ (result
): void
The callback function for the landscape/portrait mode switchover event
Parameters
Name | Type |
---|---|
result | OnDeviceOrientationChangeCallbackResult |
Returns
void
#
Interface: OnDeviceOrientationChangeCallbackResultName | Type | Description |
---|---|---|
value | OrientationValue | Indicates whether the screen is in landscape or portrait mode. |