Ejemplo 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 getFuelSDKNotificationType(FuelSDK.NotificationType notificationType)
    {
        int notificationTypeValue = (int)notificationType;

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

        return(fuelSDKNotificationTypeClass.CallStatic <AndroidJavaObject>("findByValue", notificationTypeValue));
    }
Ejemplo n.º 2
0
    public override bool IsNotificationEnabled(FuelSDK.NotificationType notificationType)
    {
        AndroidJavaObject fuelSDKNotificationType = getFuelSDKNotificationType(notificationType);

        if (fuelSDKNotificationType == null)
        {
            FuelSDKCommon.Log(FuelSDKCommon.LogLevel.ERROR, "invalid notification type");
            return(false);
        }

        return(m_jniFuelSDKUnity.CallStatic <bool> ("isNotificationEnabled", fuelSDKNotificationType));
    }
Ejemplo n.º 3
0
 private static extern bool iOSIsNotificationEnabled(FuelSDK.NotificationType notificationType);
Ejemplo n.º 4
0
 private static extern bool iOSDisableNotification(FuelSDK.NotificationType notificationType);
Ejemplo n.º 5
0
 public override bool IsNotificationEnabled(FuelSDK.NotificationType notificationType)
 {
     return(iOSIsNotificationEnabled(notificationType));
 }
Ejemplo n.º 6
0
 public override bool DisableNotification(FuelSDK.NotificationType notificationType)
 {
     return(iOSDisableNotification(notificationType));
 }
Ejemplo n.º 7
0
    public void OnNotificationDisabled(FuelSDK.NotificationType type)
    {
        Debug.Log("OnNotificationDisabled - disabled: " + type.ToString());

        // update game notification UI widget for the given notification type
    }
Ejemplo n.º 8
0
 public override bool DisableNotification(FuelSDK.NotificationType notificationType)
 {
     return(false);
 }
Ejemplo n.º 9
0
 public virtual void OnNotificationDisabled(FuelSDK.NotificationType notificationType)
 {
 }
Ejemplo n.º 10
0
 public abstract bool IsNotificationEnabled(FuelSDK.NotificationType notificationType);
Ejemplo n.º 11
0
 public abstract bool DisableNotification(FuelSDK.NotificationType notificationType);
Ejemplo n.º 12
0
 public override void OnNotificationDisabled(FuelSDK.NotificationType notificationType)
 {
     m_fuelExample.OnNotificationDisabled(notificationType);
 }