Exemplo n.º 1
0
    /// <summary>
    /// Retrieves the AndroidJavaObject PropellerSDKNotificationType equivalent to the given NotificationType
    /// </summary>
    /// <returns>
    /// The AndroidJavaObject PropellerSDKNotificationType equivalent to the given notification type, null otherwise
    /// </returns>
    /// <param name='notificationType'>
    /// The notification type whose equivalent will be retrieved
    /// </param>
    private static AndroidJavaObject getFuelSDKOrientationType(FuelSDK.ContentOrientation orientation)
    {
        string orientationTypeValue = orientation.ToString();

        AndroidJavaClass fuelSDKNotificationTypeClass = new AndroidJavaClass("com.fuelpowered.lib.fuelsdk.fuelorientationtype");

        return(fuelSDKNotificationTypeClass.CallStatic <AndroidJavaObject>("findByValue", orientationTypeValue));
    }
Exemplo n.º 2
0
    public override void SetOrientationUIIgnite(FuelSDK.ContentOrientation orientation)
    {
        AndroidJavaObject fuelSDKOrientationType = getFuelSDKOrientationType(orientation);

        if (fuelSDKOrientationType == null)
        {
            FuelSDKCommon.Log(FuelSDKCommon.LogLevel.ERROR, "invalid orientation type");
        }

        m_jniFuelSDKUnity.CallStatic("setOrientationuiIgnite", fuelSDKOrientationType);
    }
Exemplo n.º 3
0
 public override void SetOrientationUIIgnite(FuelSDK.ContentOrientation orientation)
 {
     iOSSetOrientationuiIgnite(orientation.ToString());
 }
Exemplo n.º 4
0
 public override void SetOrientationUIIgnite(FuelSDK.ContentOrientation orientation)
 {
 }
Exemplo n.º 5
0
 public abstract void SetOrientationUIIgnite(FuelSDK.ContentOrientation orientation);