コード例 #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));
    }
コード例 #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));
    }
コード例 #3
0
 private static extern bool iOSIsNotificationEnabled(FuelSDK.NotificationType notificationType);
コード例 #4
0
 private static extern bool iOSDisableNotification(FuelSDK.NotificationType notificationType);
コード例 #5
0
 public override bool IsNotificationEnabled(FuelSDK.NotificationType notificationType)
 {
     return(iOSIsNotificationEnabled(notificationType));
 }
コード例 #6
0
 public override bool DisableNotification(FuelSDK.NotificationType notificationType)
 {
     return(iOSDisableNotification(notificationType));
 }
コード例 #7
0
    public void OnNotificationDisabled(FuelSDK.NotificationType type)
    {
        Debug.Log("OnNotificationDisabled - disabled: " + type.ToString());

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