OrientationManager

interface OrientationManager extends HybridObject

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

Properties

currentOrientation

readonly currentOrientation: 
  | CameraOrientation
  | undefined

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


source

readonly source: OrientationSource

Represents the OrientationSource this OrientationManager is tracking.

Methods

startOrientationUpdates()

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

Starts listening to orientation changes.


stopOrientationUpdates()

stopOrientationUpdates(): void

Stops listening to orientation changes.

On this page