public class WZDeviceUtils extends Object
WZDeviceUtils class contains a set of device-related utility classes| Constructor and Description |
|---|
WZDeviceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getDeviceOrientation(Context context)
Returns the current orientation of the device
|
static int |
getDeviceRotation(Context context)
Returns the rotation, in degrees, of the device with 0 being the natural landscape orientation and 90 being the natural portrait orientation
180 and 270 are the inverted landscape and portrait orientations respectively
|
static int |
getSurfaceRotation(Context context)
Deprecated.
Use
getDeviceRotation(Context) instead |
public static int getDeviceOrientation(Context context)
context - The application contextWZMediaConfig.ORIENTATION_LANDSCAPE or WZMediaConfig.ORIENTATION_PORTRAITpublic static int getDeviceRotation(Context context)
context - The application contextpublic static int getSurfaceRotation(Context context)
getDeviceRotation(Context) instead© 2016 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal