â–¸ onDeviceOrientationChange(cb): void
description Listens on the landscape/portrait mode switchover event.
example
Code
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: OnDeviceOrientationChangeCallbackResult
| Name | Type | Description |
|---|---|---|
| value | OrientationValue | Indicates whether the screen is in landscape or portrait mode. |
Was this page helpful?
Last modified on