コード例 #1
0
        public CTInAppDisplayViewController(CTInAppNotification notification, CleverTapJSInterface jsInterface)
            : base(NSObjectFlag.Empty)
        {
            var notification__handle__ = notification.GetNonNullHandle(nameof(notification));
            var jsInterface__handle__  = jsInterface.GetNonNullHandle(nameof(jsInterface));

            IsDirectBinding = GetType().Assembly == global::ApiDefinition.Messaging.this_assembly;
            if (IsDirectBinding)
            {
                InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(this.Handle, Selector.GetHandle("initWithNotification:jsInterface:"), notification__handle__, jsInterface__handle__), "initWithNotification:jsInterface:");
            }
            else
            {
                InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(this.SuperHandle, Selector.GetHandle("initWithNotification:jsInterface:"), notification__handle__, jsInterface__handle__), "initWithNotification:jsInterface:");
            }
        }
コード例 #2
0
 public CTInAppDisplayViewController(CTInAppNotification notification, CleverTapJSInterface jsInterface)
     : base(NSObjectFlag.Empty)
 {
     if (notification == null)
     {
         throw new ArgumentNullException("notification");
     }
     if (jsInterface == null)
     {
         throw new ArgumentNullException("jsInterface");
     }
     IsDirectBinding = GetType().Assembly == global::ApiDefinition.Messaging.this_assembly;
     if (IsDirectBinding)
     {
         InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(this.Handle, Selector.GetHandle("initWithNotification:jsInterface:"), notification.Handle, jsInterface.Handle), "initWithNotification:jsInterface:");
     }
     else
     {
         InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(this.SuperHandle, Selector.GetHandle("initWithNotification:jsInterface:"), notification.Handle, jsInterface.Handle), "initWithNotification:jsInterface:");
     }
 }