Example #1
0
        static bool n_SendResp_Lcom_tencent_mm_opensdk_modelbase_BaseResp_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Tencent.MM.Opensdk.Openapi.IWXAPI     __this = global::Java.Lang.Object.GetObject <global::Com.Tencent.MM.Opensdk.Openapi.IWXAPI> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Tencent.MM.Opensdk.Modelbase.BaseResp p0     = global::Java.Lang.Object.GetObject <global::Com.Tencent.MM.Opensdk.Modelbase.BaseResp> (native_p0, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.SendResp(p0);

            return(__ret);
        }
Example #2
0
        static bool n_RegisterApp_Ljava_lang_String_J(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, long p1)
        {
            global::Com.Tencent.MM.Opensdk.Openapi.IWXAPI __this = global::Java.Lang.Object.GetObject <global::Com.Tencent.MM.Opensdk.Openapi.IWXAPI> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0    = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);
            bool   __ret = __this.RegisterApp(p0, p1);

            return(__ret);
        }
Example #3
0
        static bool n_HandleIntent_Landroid_content_Intent_Lcom_tencent_mm_opensdk_openapi_IWXAPIEventHandler_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Com.Tencent.MM.Opensdk.Openapi.IWXAPI __this = global::Java.Lang.Object.GetObject <global::Com.Tencent.MM.Opensdk.Openapi.IWXAPI> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Content.Intent p0 = global::Java.Lang.Object.GetObject <global::Android.Content.Intent> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Com.Tencent.MM.Opensdk.Openapi.IWXAPIEventHandler p1 = (global::Com.Tencent.MM.Opensdk.Openapi.IWXAPIEventHandler)global::Java.Lang.Object.GetObject <global::Com.Tencent.MM.Opensdk.Openapi.IWXAPIEventHandler> (native_p1, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.HandleIntent(p0, p1);

            return(__ret);
        }
        public static unsafe global::Com.Tencent.MM.Opensdk.Openapi.IWXAPI CreateWXAPI(global::Android.Content.Context p0, string p1)
        {
            if (id_createWXAPI_Landroid_content_Context_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_createWXAPI_Landroid_content_Context_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "createWXAPI", "(Landroid/content/Context;Ljava/lang/String;)Lcom/tencent/mm/opensdk/openapi/IWXAPI;");
            }
            IntPtr native_p1 = JNIEnv.NewString(p1);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                global::Com.Tencent.MM.Opensdk.Openapi.IWXAPI __ret = global::Java.Lang.Object.GetObject <global::Com.Tencent.MM.Opensdk.Openapi.IWXAPI> (JNIEnv.CallStaticObjectMethod(class_ref, id_createWXAPI_Landroid_content_Context_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
Example #5
0
 static void n_UnregisterApp(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Tencent.MM.Opensdk.Openapi.IWXAPI __this = global::Java.Lang.Object.GetObject <global::Com.Tencent.MM.Opensdk.Openapi.IWXAPI> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.UnregisterApp();
 }
Example #6
0
 static bool n_OpenWXApp(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Tencent.MM.Opensdk.Openapi.IWXAPI __this = global::Java.Lang.Object.GetObject <global::Com.Tencent.MM.Opensdk.Openapi.IWXAPI> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.OpenWXApp());
 }
Example #7
0
 static int n_GetWXAppSupportAPI(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Tencent.MM.Opensdk.Openapi.IWXAPI __this = global::Java.Lang.Object.GetObject <global::Com.Tencent.MM.Opensdk.Openapi.IWXAPI> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.WXAppSupportAPI);
 }