public virtual unsafe void SetOnGetSuggestionResultListener(global::Com.Baidu.Mapapi.Search.Sug.IOnGetSuggestionResultListener p0) { if (id_setOnGetSuggestionResultListener_Lcom_baidu_mapapi_search_sug_OnGetSuggestionResultListener_ == IntPtr.Zero) { id_setOnGetSuggestionResultListener_Lcom_baidu_mapapi_search_sug_OnGetSuggestionResultListener_ = JNIEnv.GetMethodID(class_ref, "setOnGetSuggestionResultListener", "(Lcom/baidu/mapapi/search/sug/OnGetSuggestionResultListener;)V"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_setOnGetSuggestionResultListener_Lcom_baidu_mapapi_search_sug_OnGetSuggestionResultListener_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setOnGetSuggestionResultListener", "(Lcom/baidu/mapapi/search/sug/OnGetSuggestionResultListener;)V"), __args); } } finally { } }
static void n_OnGetSuggestionResult_Lcom_baidu_mapapi_search_sug_SuggestionResult_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Baidu.Mapapi.Search.Sug.IOnGetSuggestionResultListener __this = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Search.Sug.IOnGetSuggestionResultListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Baidu.Mapapi.Search.Sug.SuggestionResult p0 = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Search.Sug.SuggestionResult> (native_p0, JniHandleOwnership.DoNotTransfer); __this.OnGetSuggestionResult(p0); }