OrientationManager

interface OrientationManager extends HybridObject

The OrientationManager allows listening to Orientation changes, like device- or interface- orientation.

Properties

currentOrientation

readonly currentOrientation: Orientation | undefined

Get the current Orientation, or undefined if no orientation is known.


source

readonly source: OrientationSource

Represents the OrientationSource this OrientationManager is tracking.

Methods

startOrientationUpdates()

startOrientationUpdates(onChanged: (orientation: Orientation) => void): void

Starts listening to orientation changes.


stopOrientationUpdates()

stopOrientationUpdates(): void

Stops listening to orientation changes.