Exemplo n.º 1
0
 static void n_Create_Landroid_content_Context_Lorg_android_agoo_callback_IServiceCallBack_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Org.Android.Agoo.IPushService __this          = global::Java.Lang.Object.GetObject <global::Org.Android.Agoo.IPushService> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Content.Context       p0              = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Org.Android.Agoo.Callback.IServiceCallBack p1 = (global::Org.Android.Agoo.Callback.IServiceCallBack)global::Java.Lang.Object.GetObject <global::Org.Android.Agoo.Callback.IServiceCallBack> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.Create(p0, p1);
 }
Exemplo n.º 2
0
 public void Create(global::Android.Content.Context p0, global::Org.Android.Agoo.Callback.IServiceCallBack p1)
 {
     if (id_create_Landroid_content_Context_Lorg_android_agoo_callback_IServiceCallBack_ == IntPtr.Zero)
     {
         id_create_Landroid_content_Context_Lorg_android_agoo_callback_IServiceCallBack_ = JNIEnv.GetMethodID(class_ref, "create", "(Landroid/content/Context;Lorg/android/agoo/callback/IServiceCallBack;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_create_Landroid_content_Context_Lorg_android_agoo_callback_IServiceCallBack_, new JValue(p0), new JValue(p1));
 }
Exemplo n.º 3
0
        public virtual void Create(global::Android.Content.Context p0, global::Org.Android.Agoo.Callback.IServiceCallBack p1)
        {
            if (id_create_Landroid_content_Context_Lorg_android_agoo_callback_IServiceCallBack_ == IntPtr.Zero)
            {
                id_create_Landroid_content_Context_Lorg_android_agoo_callback_IServiceCallBack_ = JNIEnv.GetMethodID(class_ref, "create", "(Landroid/content/Context;Lorg/android/agoo/callback/IServiceCallBack;)V");
            }

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_create_Landroid_content_Context_Lorg_android_agoo_callback_IServiceCallBack_, new JValue(p0), new JValue(p1));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "create", "(Landroid/content/Context;Lorg/android/agoo/callback/IServiceCallBack;)V"), new JValue(p0), new JValue(p1));
            }
        }
 static void n_Stop(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Android.Agoo.Callback.IServiceCallBack __this = global::Java.Lang.Object.GetObject <global::Org.Android.Agoo.Callback.IServiceCallBack> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Stop();
 }