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); }
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) { }