public unsafe bool StartDiscovery(int p0, global::Com.Aliyun.Alink.Linksdk.Alcs.Lpbs.Data.PalDiscoveryConfig p1, global::Com.Aliyun.Alink.Linksdk.Alcs.Lpbs.Listener.IPalDiscoveryListener p2)
        {
            if (id_startDiscovery_ILcom_aliyun_alink_linksdk_alcs_lpbs_data_PalDiscoveryConfig_Lcom_aliyun_alink_linksdk_alcs_lpbs_listener_PalDiscoveryListener_ == IntPtr.Zero)
            {
                id_startDiscovery_ILcom_aliyun_alink_linksdk_alcs_lpbs_data_PalDiscoveryConfig_Lcom_aliyun_alink_linksdk_alcs_lpbs_listener_PalDiscoveryListener_ = JNIEnv.GetMethodID(class_ref, "startDiscovery", "(ILcom/aliyun/alink/linksdk/alcs/lpbs/data/PalDiscoveryConfig;Lcom/aliyun/alink/linksdk/alcs/lpbs/listener/PalDiscoveryListener;)Z");
            }
            JValue *__args = stackalloc JValue [3];

            __args [0] = new JValue(p0);
            __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
            __args [2] = new JValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle);
            bool __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_startDiscovery_ILcom_aliyun_alink_linksdk_alcs_lpbs_data_PalDiscoveryConfig_Lcom_aliyun_alink_linksdk_alcs_lpbs_listener_PalDiscoveryListener_, __args);

            return(__ret);
        }
        static bool n_StartDiscovery_ILcom_aliyun_alink_linksdk_alcs_lpbs_data_PalDiscoveryConfig_Lcom_aliyun_alink_linksdk_alcs_lpbs_listener_PalDiscoveryListener_(IntPtr jnienv, IntPtr native__this, int p0, IntPtr native_p1, IntPtr native_p2)
        {
            global::Com.Aliyun.Alink.Linksdk.Alcs.Lpbs.Bridge.IPalDiscovery           __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Lpbs.Bridge.IPalDiscovery> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Aliyun.Alink.Linksdk.Alcs.Lpbs.Data.PalDiscoveryConfig        p1     = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Lpbs.Data.PalDiscoveryConfig> (native_p1, JniHandleOwnership.DoNotTransfer);
            global::Com.Aliyun.Alink.Linksdk.Alcs.Lpbs.Listener.IPalDiscoveryListener p2     = (global::Com.Aliyun.Alink.Linksdk.Alcs.Lpbs.Listener.IPalDiscoveryListener)global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Lpbs.Listener.IPalDiscoveryListener> (native_p2, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.StartDiscovery(p0, p1, p2);

            return(__ret);
        }