コード例 #1
0
        static void n_OnDiscoveryDevice_Ljava_lang_String_ILjava_lang_String_Lcom_aliyun_alink_linksdk_alcs_data_ica_ICADeviceInfo_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1, IntPtr native_p2, IntPtr native_p3)
        {
            global::Com.Aliyun.Alink.Linksdk.Alcs.Pal.Ica.ICADiscoveryListener __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Pal.Ica.ICADiscoveryListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);
            string p2 = JNIEnv.GetString(native_p2, JniHandleOwnership.DoNotTransfer);

            global::Com.Aliyun.Alink.Linksdk.Alcs.Data.Ica.ICADeviceInfo p3 = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Data.Ica.ICADeviceInfo> (native_p3, JniHandleOwnership.DoNotTransfer);
            __this.OnDiscoveryDevice(p0, p1, p2, p3);
        }
        protected static unsafe int RegDeviceNotifyListenerNative(global::Com.Aliyun.Alink.Linksdk.Alcs.Pal.Ica.ICADiscoveryListener p0)
        {
            const string __id = "regDeviceNotifyListenerNative.(Lcom/aliyun/alink/linksdk/alcs/pal/ica/ICADiscoveryListener;)I";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                var __rm = _members.StaticMethods.InvokeInt32Method(__id, __args);
                return(__rm);
            } finally {
            }
        }
        public static unsafe bool RegDeviceNotifyListener(global::Com.Aliyun.Alink.Linksdk.Alcs.Pal.Ica.ICADiscoveryListener listener)
        {
            const string __id = "regDeviceNotifyListener.(Lcom/aliyun/alink/linksdk/alcs/pal/ica/ICADiscoveryListener;)Z";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((listener == null) ? IntPtr.Zero : ((global::Java.Lang.Object)listener).Handle);
                var __rm = _members.StaticMethods.InvokeBooleanMethod(__id, __args);
                return(__rm);
            } finally {
            }
        }
コード例 #4
0
 static void n_OnDiscoveryFinish(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Aliyun.Alink.Linksdk.Alcs.Pal.Ica.ICADiscoveryListener __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Pal.Ica.ICADiscoveryListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.OnDiscoveryFinish();
 }