public static void fixAdOrientation(AdOrientation orientation) { if (appTracker != null) { appTracker.Call("fixAdOrientation", (int)orientation); } }
public static int ToAndroid(this AdOrientation orientation) { switch (orientation) { case AdOrientation.Vertical: return(1); case AdOrientation.Horizontal: return(2); default: throw new NotSupportedException(string.Format("Unknown AdOrientation:{0}", orientation)); } }
private static AdOrientationType ToAdColonyAdOrientation(AdOrientation orientation) { switch (orientation) { case AdOrientation.AdOrientationLandscape: return(AdOrientationType.AdColonyOrientationLandscape); case AdOrientation.AdOrientationPortrait: return(AdOrientationType.AdColonyOrientationPortrait); case AdOrientation.AdOrientationAll: return(AdOrientationType.AdColonyOrientationAll); default: return(AdOrientationType.AdColonyOrientationAll); } }
/// <summary> /// Sets the Ad orientation. /// </summary> public Builder SetOrientation(AdOrientation orientation) { return(this); }
/// <summary> /// Sets the Ad orientation. /// </summary> public Builder SetOrientation(AdOrientation orientation) { this.builder.Call <AndroidJavaObject>( "setOrientation", orientation.ToAndroid()); return(this); }