-
Notifications
You must be signed in to change notification settings - Fork 0
OrientationUtils
Dan M edited this page Mar 31, 2022
·
2 revisions
OrientationUtils is a wrapper for Native Device Orientation. It allows you to easily access the current orientation of the device.
initOrientation needs to be called before it will work.
Each EOrientation represents a different device orientation.
| Value | Orientation |
|---|---|
portraitUp |
The device is upright |
portraitDown |
The device is upside down |
landscapeLeft |
The device is on its' side and facing left |
landscapeRight |
The device is on its' side and facing right |
unknown |
The device orientation could not be found |
Disables the colors for the static Log object.
Starts the listener for the device orientation.
The callback called when the device orientation of the device changes, assuming initOrientation has been called.
Returns the current EOrientation of the device. If initOrientation has not been called, this will be EOrientation.unknown.
Models - Currently Empty