▸ 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. |
此页面是否有帮助?
Last modified on