コード例 #1
0
 static void n_OnResultError_Ljava_lang_Throwable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Mob.MobCommunicator.Callback __this = global::Java.Lang.Object.GetObject <global::Com.Mob.MobCommunicator.Callback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Throwable p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Throwable> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnResultError(p0);
 }
コード例 #2
0
        public unsafe void Request(global::System.Collections.Generic.IDictionary <string, global::Java.Lang.Object> p0, string p1, bool p2, global::Com.Mob.MobCommunicator.Callback p3)
        {
            const string __id      = "request.(Ljava/util/HashMap;Ljava/lang/String;ZLcom/mob/MobCommunicator$Callback;)V";
            IntPtr       native_p0 = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Object> .ToLocalJniHandle(p0);

            IntPtr native_p1 = JNIEnv.NewString(p1);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [4];
                __args [0] = new JniArgumentValue(native_p0);
                __args [1] = new JniArgumentValue(native_p1);
                __args [2] = new JniArgumentValue(p2);
                __args [3] = new JniArgumentValue((p3 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p3).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }