Esempio n. 1
0
        public virtual unsafe bool SetCustomNotification(int p0, global::Com.Alibaba.Sdk.Android.Push.Notification.BasicCustomPushNotification p1)
        {
            if (id_setCustomNotification_ILcom_alibaba_sdk_android_push_notification_BasicCustomPushNotification_ == IntPtr.Zero)
            {
                id_setCustomNotification_ILcom_alibaba_sdk_android_push_notification_BasicCustomPushNotification_ = JNIEnv.GetMethodID(class_ref, "setCustomNotification", "(ILcom/alibaba/sdk/android/push/notification/BasicCustomPushNotification;)Z");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                bool __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_setCustomNotification_ILcom_alibaba_sdk_android_push_notification_BasicCustomPushNotification_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setCustomNotification", "(ILcom/alibaba/sdk/android/push/notification/BasicCustomPushNotification;)Z"), __args);
                }
                return(__ret);
            } finally {
            }
        }
 static void n_SetStatusBarDrawable_I(IntPtr jnienv, IntPtr native__this, int p0)
 {
     global::Com.Alibaba.Sdk.Android.Push.Notification.BasicCustomPushNotification __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Sdk.Android.Push.Notification.BasicCustomPushNotification> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.StatusBarDrawable = p0;
 }
 static int n_GetStatusBarDrawable(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Sdk.Android.Push.Notification.BasicCustomPushNotification __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Sdk.Android.Push.Notification.BasicCustomPushNotification> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.StatusBarDrawable);
 }
 static void n_SetServerOptionFirst_Z(IntPtr jnienv, IntPtr native__this, bool p0)
 {
     global::Com.Alibaba.Sdk.Android.Push.Notification.BasicCustomPushNotification __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Sdk.Android.Push.Notification.BasicCustomPushNotification> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.ServerOptionFirst = p0;
 }
 static bool n_IsServerOptionFirst(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Sdk.Android.Push.Notification.BasicCustomPushNotification __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Sdk.Android.Push.Notification.BasicCustomPushNotification> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.ServerOptionFirst);
 }
 static void n_SetBuildWhenAppInForeground_Z(IntPtr jnienv, IntPtr native__this, bool p0)
 {
     global::Com.Alibaba.Sdk.Android.Push.Notification.BasicCustomPushNotification __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Sdk.Android.Push.Notification.BasicCustomPushNotification> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.BuildWhenAppInForeground = p0;
 }
 static bool n_IsBuildWhenAppInForeground(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Sdk.Android.Push.Notification.BasicCustomPushNotification __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Sdk.Android.Push.Notification.BasicCustomPushNotification> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.BuildWhenAppInForeground);
 }
Esempio n. 8
0
        static bool n_SetCustomNotification_ILcom_alibaba_sdk_android_push_notification_BasicCustomPushNotification_(IntPtr jnienv, IntPtr native__this, int p0, IntPtr native_p1)
        {
            global::Com.Alibaba.Sdk.Android.Push.Notification.CustomNotificationBuilder   __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Sdk.Android.Push.Notification.CustomNotificationBuilder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Alibaba.Sdk.Android.Push.Notification.BasicCustomPushNotification p1     = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Sdk.Android.Push.Notification.BasicCustomPushNotification> (native_p1, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.SetCustomNotification(p0, p1);

            return(__ret);
        }