Example #1
0
        public int SetSetAllowPushNotificationCallback(Push.SetAllowPushNotificationDelegate callback)
        {
            if (null == callback)
            {
                return(0);
            }

            int handlerNum = CallbackManager.AddHandler(delegate(CallbackMessage message)
            {
                Log.Debug("[PushCallback] SetAllowPushNotificationCallback: " + message);

                Result result = message.GetResult();

                if (null != callback)
                {
                    callback(result);
                }
            });

            return(handlerNum);
        }
Example #2
0
        public void SetAllowPushNotification(AllowPushNotification notice, AllowPushNotification game, AllowPushNotification nightNotice, Push.SetAllowPushNotificationDelegate callback)
        {
            int handlerNum = pushCallback.SetSetAllowPushNotificationCallback(callback);

            pushAndroidClass.CallStatic("nmg_push_setAllowPushNotification", (int)notice, (int)game, (int)nightNotice, handlerNum);
        }
 public void SetAllowPushNotification(AllowPushNotification notice, AllowPushNotification game, AllowPushNotification nightNotice, Push.SetAllowPushNotificationDelegate callback)
 {
 }