UnityEngine.iOS.NotificationServices.CancelAllLocalNotifications C# (CSharp) Method

CancelAllLocalNotifications() private method

private CancelAllLocalNotifications ( ) : void
return void
        public static extern void CancelAllLocalNotifications();
        /// <summary>

Usage Example

コード例 #1
0
    void RemoveAllNotifications()
    {
        #region Android
#if UNITY_ANDROID
        string raw = PlayerPrefs.GetString("NotificationIDs");
        if (!string.IsNullOrEmpty(raw))
        {
            notification_ids = raw.Split(',').Select(x => x.Split(':')).ToDictionary(x => x[0], x => int.Parse(x[1]));
        }
        else
        {
            return;
        }
        foreach (var key in notification_ids.Values)
        {
            AndroidLocalNotification.CancelNotification(key);
        }
        notification_ids.Clear();
        PlayerPrefs.DeleteKey("NotificationIDs");
#endif
        #endregion

        #region iOS
#if UNITY_IOS
        NotificationServices.CancelAllLocalNotifications();
#endif
        #endregion
    }
All Usage Examples Of UnityEngine.iOS.NotificationServices::CancelAllLocalNotifications