Ejemplo n.º 1
0
        public static unsafe bool SetDefaultImpl(global::Com.Iflytek.Speech.ILexiconListener p0)
        {
            const string __id = "setDefaultImpl.(Lcom/iflytek/speech/LexiconListener;)Z";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                var __rm = _members.StaticMethods.InvokeBooleanMethod(__id, __args);
                return(__rm);
            } finally {
                global::System.GC.KeepAlive(p0);
            }
        }
Ejemplo n.º 2
0
        public virtual unsafe int UpdateLexicon(string p0, string p1, global::Com.Iflytek.Speech.ILexiconListener p2)
        {
            const string __id      = "updateLexicon.(Ljava/lang/String;Ljava/lang/String;Lcom/iflytek/speech/LexiconListener;)I";
            IntPtr       native_p0 = JNIEnv.NewString(p0);
            IntPtr       native_p1 = JNIEnv.NewString(p1);

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