Beispiel #1
0
        public void NotificationDidDismiss(CTInAppNotification notification, CTInAppDisplayViewController controller)
        {
            var notification__handle__ = notification.GetNonNullHandle(nameof(notification));
            var controller__handle__   = controller.GetNonNullHandle(nameof(controller));

            global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr(this.Handle, Selector.GetHandle("notificationDidDismiss:fromViewController:"), notification__handle__, controller__handle__);
        }
Beispiel #2
0
 public static bool HasDailyCapacityMaxedOut(this ICTInAppFCManager This, CTInAppNotification dictionary)
 {
     if (dictionary == null)
     {
         throw new ArgumentNullException("dictionary");
     }
     return(global::ApiDefinition.Messaging.bool_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("hasDailyCapacityMaxedOut:"), dictionary.Handle));
 }
Beispiel #3
0
 public static void DidDismiss(this ICTInAppFCManager This, CTInAppNotification inapp)
 {
     if (inapp == null)
     {
         throw new ArgumentNullException("inapp");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("didDismiss:"), inapp.Handle);
 }
Beispiel #4
0
 public static bool CanShow(this ICTInAppFCManager This, CTInAppNotification inapp)
 {
     if (inapp == null)
     {
         throw new ArgumentNullException("inapp");
     }
     return(global::ApiDefinition.Messaging.bool_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("canShow:"), inapp.Handle));
 }
Beispiel #5
0
 public void NotificationDidDismiss(CTInAppNotification notification, CTInAppDisplayViewController controller)
 {
     if (notification == null)
     {
         throw new ArgumentNullException("notification");
     }
     if (controller == null)
     {
         throw new ArgumentNullException("controller");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr(this.Handle, Selector.GetHandle("notificationDidDismiss:fromViewController:"), notification.Handle, controller.Handle);
 }
        public virtual bool HasLifetimeCapacityMaxedOut(CTInAppNotification dictionary)
        {
            var dictionary__handle__ = dictionary.GetNonNullHandle(nameof(dictionary));

            if (IsDirectBinding)
            {
                return(global::ApiDefinition.Messaging.bool_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("hasLifetimeCapacityMaxedOut:"), dictionary__handle__));
            }
            else
            {
                return(global::ApiDefinition.Messaging.bool_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("hasLifetimeCapacityMaxedOut:"), dictionary__handle__));
            }
        }
        public virtual void DidShow(CTInAppNotification inapp)
        {
            var inapp__handle__ = inapp.GetNonNullHandle(nameof(inapp));

            if (IsDirectBinding)
            {
                global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("didShow:"), inapp__handle__);
            }
            else
            {
                global::ApiDefinition.Messaging.void_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("didShow:"), inapp__handle__);
            }
        }
Beispiel #8
0
 public virtual void DidShow(CTInAppNotification inapp)
 {
     if (inapp == null)
     {
         throw new ArgumentNullException("inapp");
     }
     if (IsDirectBinding)
     {
         global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("didShow:"), inapp.Handle);
     }
     else
     {
         global::ApiDefinition.Messaging.void_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("didShow:"), inapp.Handle);
     }
 }
        public CTInAppDisplayViewController(CTInAppNotification notification)
            : base(NSObjectFlag.Empty)
        {
            var notification__handle__ = notification.GetNonNullHandle(nameof(notification));

            IsDirectBinding = GetType().Assembly == global::ApiDefinition.Messaging.this_assembly;
            if (IsDirectBinding)
            {
                InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("initWithNotification:"), notification__handle__), "initWithNotification:");
            }
            else
            {
                InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("initWithNotification:"), notification__handle__), "initWithNotification:");
            }
        }
Beispiel #10
0
 public virtual bool HasLifetimeCapacityMaxedOut(CTInAppNotification dictionary)
 {
     if (dictionary == null)
     {
         throw new ArgumentNullException("dictionary");
     }
     if (IsDirectBinding)
     {
         return(global::ApiDefinition.Messaging.bool_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("hasLifetimeCapacityMaxedOut:"), dictionary.Handle));
     }
     else
     {
         return(global::ApiDefinition.Messaging.bool_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("hasLifetimeCapacityMaxedOut:"), dictionary.Handle));
     }
 }
 public CTInAppDisplayViewController(CTInAppNotification notification)
     : base(NSObjectFlag.Empty)
 {
     if (notification == null)
     {
         throw new ArgumentNullException("notification");
     }
     IsDirectBinding = GetType().Assembly == global::ApiDefinition.Messaging.this_assembly;
     if (IsDirectBinding)
     {
         InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("initWithNotification:"), notification.Handle), "initWithNotification:");
     }
     else
     {
         InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("initWithNotification:"), notification.Handle), "initWithNotification:");
     }
 }
        public unsafe static void BuildInAppNotificationStateEvent(bool clicked, CTInAppNotification notification, NSDictionary? @params, [BlockProxy(typeof(ObjCRuntime.Trampolines.NIDActionArity2V0))] global::System.Action <NSDictionary, NSArray <CTValidationResult> > completion)
        {
            var notification__handle__ = notification.GetNonNullHandle(nameof(notification));
            var @params__handle__      = @params.GetHandle();

            if (completion == null)
            {
                ObjCRuntime.ThrowHelper.ThrowArgumentNullException(nameof(completion));
            }
            BlockLiteral *block_ptr_completion;
            BlockLiteral  block_completion;

            block_completion     = new BlockLiteral();
            block_ptr_completion = &block_completion;
            block_completion.SetupBlockUnsafe(Trampolines.SDActionArity2V0.Handler, completion);

            global::ApiDefinition.Messaging.void_objc_msgSend_bool_IntPtr_IntPtr_IntPtr(class_ptr, Selector.GetHandle("buildInAppNotificationStateEvent:forNotification:andQueryParameters:completionHandler:"), clicked, notification__handle__, @params__handle__, (IntPtr)block_ptr_completion);
            block_ptr_completion->CleanupBlock();
        }
Beispiel #13
0
 public void HandleNotificationCTA(NSUrl ctaURL, CTInAppNotification notification, CTInAppDisplayViewController controller, NSDictionary extras)
 {
     if (ctaURL == null)
     {
         throw new ArgumentNullException("ctaURL");
     }
     if (notification == null)
     {
         throw new ArgumentNullException("notification");
     }
     if (controller == null)
     {
         throw new ArgumentNullException("controller");
     }
     if (extras == null)
     {
         throw new ArgumentNullException("extras");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(this.Handle, Selector.GetHandle("handleNotificationCTA:forNotification:fromViewController:withExtras:"), ctaURL.Handle, notification.Handle, controller.Handle, extras.Handle);
 }
Beispiel #14
0
 public virtual void NotificationDidShow(CTInAppNotification notification, CTInAppDisplayViewController controller)
 {
     throw new You_Should_Not_Call_base_In_This_Method();
 }
Beispiel #15
0
 public abstract void NotificationDidDismiss(CTInAppNotification notification, CTInAppDisplayViewController controller);
Beispiel #16
0
 public abstract void HandleNotificationCTA(NSUrl ctaURL, CTInAppNotification notification, CTInAppDisplayViewController controller, NSDictionary extras);
Beispiel #17
0
        public void HandleNotificationCTA(NSUrl ctaURL, NSDictionary buttonCustomExtras, CTInAppNotification notification, CTInAppDisplayViewController controller, NSDictionary extras)
        {
            var ctaURL__handle__             = ctaURL.GetNonNullHandle(nameof(ctaURL));
            var buttonCustomExtras__handle__ = buttonCustomExtras.GetNonNullHandle(nameof(buttonCustomExtras));
            var notification__handle__       = notification.GetNonNullHandle(nameof(notification));
            var controller__handle__         = controller.GetNonNullHandle(nameof(controller));
            var extras__handle__             = extras.GetNonNullHandle(nameof(extras));

            global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(this.Handle, Selector.GetHandle("handleNotificationCTA:buttonCustomExtras:forNotification:fromViewController:withExtras:"), ctaURL__handle__, buttonCustomExtras__handle__, notification__handle__, controller__handle__, extras__handle__);
        }