OrientationProvider

OrientationProvider

interface OrientationProvider

An OrientationProvider provides the ViewingDirection of one orientation input like an gyroscope.

Functions

NameSummary
disableabstract fun disable()
Disables the OrientationProvider
enableabstract fun enable()
Enables the OrientationProvider
getViewingDirectionabstract fun getViewingDirection(): ViewingDirection
Returns the current ViewingDirection of the OrientationProvider.
isEnabledabstract fun isEnabled(): Boolean
Returns true if the OrientationProvider is enabled, else false.