public unsafe void StopListening(global::Com.Iflytek.Speech.IWakeuperListener p0)
        {
            if (id_stopListening_Lcom_iflytek_speech_WakeuperListener_ == IntPtr.Zero)
            {
                id_stopListening_Lcom_iflytek_speech_WakeuperListener_ = JNIEnv.GetMethodID(class_ref, "stopListening", "(Lcom/iflytek/speech/WakeuperListener;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_stopListening_Lcom_iflytek_speech_WakeuperListener_, __args);
        }
        public override unsafe void StopListening(global::Com.Iflytek.Speech.IWakeuperListener p0)
        {
            const string __id = "stopListening.(Lcom/iflytek/speech/WakeuperListener;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
                global::System.GC.KeepAlive(p0);
            }
        }
示例#3
0
        public static unsafe bool SetDefaultImpl(global::Com.Iflytek.Speech.IWakeuperListener p0)
        {
            const string __id = "setDefaultImpl.(Lcom/iflytek/speech/WakeuperListener;)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);
            }
        }
        public virtual unsafe int StartListening(global::Com.Iflytek.Speech.IWakeuperListener p0)
        {
            const string __id = "startListening.(Lcom/iflytek/speech/WakeuperListener;)I";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                var __rm = _members.InstanceMethods.InvokeVirtualInt32Method(__id, this, __args);
                return(__rm);
            } finally {
                global::System.GC.KeepAlive(p0);
            }
        }
        public virtual unsafe void StartListening(global::Android.Content.Intent p0, global::Com.Iflytek.Speech.IWakeuperListener p1)
        {
            const string __id = "startListening.(Landroid/content/Intent;Lcom/iflytek/speech/WakeuperListener;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                __args [1] = new JniArgumentValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
                global::System.GC.KeepAlive(p0);
                global::System.GC.KeepAlive(p1);
            }
        }
 public abstract void StopListening(global::Com.Iflytek.Speech.IWakeuperListener p0);
 public abstract void StartListening(global::Android.Content.Intent p0, global::Com.Iflytek.Speech.IWakeuperListener p1);
 public abstract void Cancel(global::Com.Iflytek.Speech.IWakeuperListener p0);