Example #1
0
        public static void NotificationDidShow(this ICTInAppNotificationDisplayDelegate This, 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("notificationDidShow:fromViewController:"), notification__handle__, controller__handle__);
        }
Example #2
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__);
        }
        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__);
            }
        }
        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:");
            }
        }
        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();
        }