public class OrientationHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private class |
OrientationHelper.DefaultOrientationChangeListener |
private class |
OrientationHelper.MyOrientationEventListener |
static class |
OrientationHelper.Orientation |
static interface |
OrientationHelper.OrientationChangeListener |
Modifier and Type | Field and Description |
---|---|
private android.app.Activity |
activity |
private OrientationHelper.Orientation |
currentOrientation |
private OrientationHelper.OrientationChangeListener |
orientationChangeListener |
private OrientationHelper.MyOrientationEventListener |
orientationEventListener |
Constructor and Description |
---|
OrientationHelper(android.app.Activity activity) |
Modifier and Type | Method and Description |
---|---|
void |
enableFromSensorOrientationChange(boolean isEnable) |
OrientationHelper.Orientation |
getCurrentOrientation() |
void |
goLandscape() |
void |
goPortrait() |
void |
goReverseLandscape() |
void |
goReversePortrait() |
void |
release() |
void |
setOrientationChangeListener(OrientationHelper.OrientationChangeListener orientationChangeListener) |
private android.app.Activity activity
private OrientationHelper.Orientation currentOrientation
private OrientationHelper.OrientationChangeListener orientationChangeListener
private OrientationHelper.MyOrientationEventListener orientationEventListener
public OrientationHelper.Orientation getCurrentOrientation()
public void goPortrait()
public void goLandscape()
public void goReversePortrait()
public void goReverseLandscape()
public void setOrientationChangeListener(OrientationHelper.OrientationChangeListener orientationChangeListener)
public void enableFromSensorOrientationChange(boolean isEnable)
public void release()