public static void SetNotificationListener(IPusheNotificationListener listener) { #if UNITY_ANDROID && !UNITY_EDITOR PusheNotification.SetNotificationListener(listener); #elif UNITY_IOS && !UNITY_EDITOR // not implemented #endif }
public static void SetNotificationListener(IPusheNotificationListener listener) { var callback = new NotificationCallback(listener); PusheAndroidUtils.PusheNotificationService().Call("setNotificationListener", callback); }
public NotificationCallback(IPusheNotificationListener listener) : base("co.pushe.plus.notification.PusheNotificationListener") { _listener = listener; }