예제 #1
0
 public void OnApplicationPause(bool pause)
 {
     if (!pause)
     {
         this.Toggle.isOn = (NotificationManager.GetNotificationCallback() != null);
     }
 }
예제 #2
0
 public void OnApplicationPause(bool pause)
 {
     if (!pause)
     {
         Toggle.isOn = NotificationManager.GetNotificationCallback() != null;                 // Check notification callback data when app was resumed
     }
 }
 public void Awake()
 {
     Toogle.isOn = NotificationManager.GetNotificationCallback() != null;
 }
예제 #4
0
 public void Awake()
 {
     this.Toggle.isOn = (NotificationManager.GetNotificationCallback() != null);
 }
예제 #5
0
 public void Awake()
 {
     // TODO: Please note, that receiving callback will not work if your app was sleeping. It will only work if app was opened (not resumed) by clicking the notification.
     Toggle.isOn = NotificationManager.GetNotificationCallback() != null;
 }
예제 #6
0
 public void Awake()
 {
     Toggle.isOn = NotificationManager.GetNotificationCallback() != null; // Check notification callback data when app was started
 }