public MessagingOptions() : this(FirebaseMessagingPINVOKE.new_MessagingOptions(), true)
 {
     if (AppUtilPINVOKE.SWIGPendingException.Pending)
     {
         throw AppUtilPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public FirebaseNotification() : this(FirebaseMessagingPINVOKE.new_FirebaseNotification(), true)
 {
     if (AppUtilPINVOKE.SWIGPendingException.Pending)
     {
         throw AppUtilPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 private static void SendPendingEvents()
 {
     FirebaseMessagingPINVOKE.SendPendingEvents();
     if (AppUtilPINVOKE.SWIGPendingException.Pending)
     {
         throw AppUtilPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 private static void SetListenerCallbacksEnabled(bool message_callback_enabled, bool token_callback_enabled)
 {
     FirebaseMessagingPINVOKE.SetListenerCallbacksEnabled(message_callback_enabled, token_callback_enabled);
     if (AppUtilPINVOKE.SWIGPendingException.Pending)
     {
         throw AppUtilPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 private static void SetListenerCallbacks(FirebaseMessaging.Listener.MessageReceivedDelegate messageCallback, FirebaseMessaging.Listener.TokenReceivedDelegate tokenCallback)
 {
     FirebaseMessagingPINVOKE.SetListenerCallbacks(messageCallback, tokenCallback);
     if (AppUtilPINVOKE.SWIGPendingException.Pending)
     {
         throw AppUtilPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public static void Send(FirebaseMessage message)
 {
     FirebaseMessagingPINVOKE.Send(FirebaseMessage.getCPtr(message));
     if (AppUtilPINVOKE.SWIGPendingException.Pending)
     {
         throw AppUtilPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 internal static void SetTokenRegistrationOnInitEnabledInternal(bool enable)
 {
     FirebaseMessagingPINVOKE.SetTokenRegistrationOnInitEnabledInternal(enable);
     if (AppUtilPINVOKE.SWIGPendingException.Pending)
     {
         throw AppUtilPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        internal static IntPtr MessageCopyNotification(IntPtr message)
        {
            IntPtr result = FirebaseMessagingPINVOKE.MessageCopyNotification(message);

            if (AppUtilPINVOKE.SWIGPendingException.Pending)
            {
                throw AppUtilPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
        internal static bool IsTokenRegistrationOnInitEnabledInternal()
        {
            bool result = FirebaseMessagingPINVOKE.IsTokenRegistrationOnInitEnabledInternal();

            if (AppUtilPINVOKE.SWIGPendingException.Pending)
            {
                throw AppUtilPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
 public void Dispose()
 {
     lock (this)
     {
         if (this.swigCPtr.Handle != IntPtr.Zero)
         {
             if (this.swigCMemOwn)
             {
                 this.swigCMemOwn = false;
                 FirebaseMessagingPINVOKE.delete_MessagingOptions(this.swigCPtr);
             }
             this.swigCPtr = new HandleRef(null, IntPtr.Zero);
         }
         GC.SuppressFinalize(this);
     }
 }
 public static Task UnsubscribeAsync(string topic)
 {
     return(FutureVoid.GetTask(new FutureVoid(FirebaseMessagingPINVOKE.Unsubscribe(topic), true)));
 }
 public static Task RequestPermissionAsync()
 {
     return(FutureVoid.GetTask(new FutureVoid(FirebaseMessagingPINVOKE.RequestPermission(), true)));
 }