コード例 #1
0
        public int SetGetAllowPushNotificationCallback(Push.GetAllowPushNotificationDelegate callback)
        {
            if (null == callback)
            {
                return(0);
            }

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

                Result result   = message.GetResult();
                int notice      = message.GetInt("notice");
                int game        = message.GetInt("game");
                int nightNotice = message.GetInt("nightNotice");

                if (null != callback)
                {
                    callback(result, (AllowPushNotification)notice, (AllowPushNotification)game, (AllowPushNotification)nightNotice);
                }
            });

            return(handlerNum);
        }
コード例 #2
0
        public void GetAllowPushNotification(Push.GetAllowPushNotificationDelegate callback)
        {
            int handlerNum = pushCallback.SetGetAllowPushNotificationCallback(callback);

            pushAndroidClass.CallStatic("nmg_push_getAllowPushNotification", handlerNum);
        }
コード例 #3
0
        public void GetAllowPushNotification(Push.GetAllowPushNotificationDelegate callback)
        {
            int handlerNum = pushCallback.SetGetAllowPushNotificationCallback(callback);

            nmg_push_getAllowPushNotification(handlerNum);
        }
コード例 #4
0
 public void GetAllowPushNotification(Push.GetAllowPushNotificationDelegate callback)
 {
 }