Example #1
0
 public static void EnablePush(KGPushOption option, bool enable, Action <bool> callback)
 {
     KGPush.EnablePush(
         option,
         enable,
         (result) => {
         if (callback != null)
         {
             if (result.isSuccess)
             {
                 // Setting of push receipt option successful
                 callback(true);
             }
             else
             {
                 // Setting of push receipt option failed
                 callback(false);
             }
         }
     });
 }
Example #2
0
 public static bool IsPushEnable(KGPushOption option)
 {
     return(KGPush.IsEnablePush(option));
 }