public class OrientationController extends Object
| Constructor and Description |
|---|
OrientationController() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.gwt.event.shared.HandlerRegistration |
addOrientationChangeHandler(OrientationChangeHandler handler)
Add a orientation handler to detect the device orientation
|
static Orientation |
getOrientation()
Get the current orientation of the device
|
public static com.google.gwt.event.shared.HandlerRegistration addOrientationChangeHandler(OrientationChangeHandler handler)
handler - the handler to add OrientationChangeHandler .HandlerRegistration object.public static Orientation getOrientation()
Copyright © 2011–2015 SWM. All rights reserved.