public class OrientationProperties
extends java.lang.Object
The orientation properties object is intended to provide ad designers with additional control over expandable and interstitial ads. The orientationProperties are held in a JavaScript object that can be written and read by the ad. The orientationProperties object only affects the expanded state of an expandable ad, or an interstitial ad.
| Modifier and Type | Field and Description |
|---|---|
boolean |
allowOrientationChange |
Enum.ForceOrientationProperties |
forceOrientation |
| Constructor and Description |
|---|
OrientationProperties()
Constructs a new instance with default parameters.
|
OrientationProperties(boolean allowOrientationChange,
Enum.ForceOrientationProperties forceOrientation)
Constructs a new instance with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
public boolean allowOrientationChange
public Enum.ForceOrientationProperties forceOrientation
public OrientationProperties()
public OrientationProperties(boolean allowOrientationChange,
Enum.ForceOrientationProperties forceOrientation)
allowOrientationChange - true The container will permit device-based orientation changes. Default is 'true'.
false The container will ignore device-based orientation changes (e.g., the web view will
not change even if the orientation of the device changes).forceOrientation - Can be set to a value of "portrait", "landscape", or "none". If forceOrientation
is set then a view must open in the specified orientation, regardless of the orientation of the device.