react-native-vision-cameraHybridObjects
OrientationManager
interface OrientationManager extends HybridObjectThe OrientationManager allows listening to
Orientation changes, like device- or interface-
orientation.
Properties
currentOrientation
readonly currentOrientation: Orientation | undefinedGet the current Orientation, or undefined if no
orientation is known.
source
readonly source: OrientationSourceRepresents the OrientationSource this OrientationManager
is tracking.
Methods
startOrientationUpdates()
startOrientationUpdates(onChanged: (orientation: Orientation) => void): voidStarts listening to orientation changes.
stopOrientationUpdates()
stopOrientationUpdates(): voidStops listening to orientation changes.