/// <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)); }
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)); }
private static extern bool iOSIsNotificationEnabled(FuelSDK.NotificationType notificationType);
private static extern bool iOSDisableNotification(FuelSDK.NotificationType notificationType);
public override bool IsNotificationEnabled(FuelSDK.NotificationType notificationType) { return(iOSIsNotificationEnabled(notificationType)); }
public override bool DisableNotification(FuelSDK.NotificationType notificationType) { return(iOSDisableNotification(notificationType)); }
public void OnNotificationDisabled(FuelSDK.NotificationType type) { Debug.Log("OnNotificationDisabled - disabled: " + type.ToString()); // update game notification UI widget for the given notification type }
public override bool DisableNotification(FuelSDK.NotificationType notificationType) { return(false); }
public virtual void OnNotificationDisabled(FuelSDK.NotificationType notificationType) { }
public abstract bool IsNotificationEnabled(FuelSDK.NotificationType notificationType);
public abstract bool DisableNotification(FuelSDK.NotificationType notificationType);
public override void OnNotificationDisabled(FuelSDK.NotificationType notificationType) { m_fuelExample.OnNotificationDisabled(notificationType); }