public virtual unsafe void SetOnGetPoiSearchResultListener(global::Com.Baidu.Mapapi.Search.Poi.IOnGetPoiSearchResultListener p0) { if (id_setOnGetPoiSearchResultListener_Lcom_baidu_mapapi_search_poi_OnGetPoiSearchResultListener_ == IntPtr.Zero) { id_setOnGetPoiSearchResultListener_Lcom_baidu_mapapi_search_poi_OnGetPoiSearchResultListener_ = JNIEnv.GetMethodID(class_ref, "setOnGetPoiSearchResultListener", "(Lcom/baidu/mapapi/search/poi/OnGetPoiSearchResultListener;)V"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_setOnGetPoiSearchResultListener_Lcom_baidu_mapapi_search_poi_OnGetPoiSearchResultListener_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setOnGetPoiSearchResultListener", "(Lcom/baidu/mapapi/search/poi/OnGetPoiSearchResultListener;)V"), __args); } } finally { } }
static void n_SetOnGetPoiSearchResultListener_Lcom_baidu_mapapi_search_poi_OnGetPoiSearchResultListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Baidu.Mapapi.Search.Poi.PoiSearch __this = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Search.Poi.PoiSearch> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Baidu.Mapapi.Search.Poi.IOnGetPoiSearchResultListener p0 = (global::Com.Baidu.Mapapi.Search.Poi.IOnGetPoiSearchResultListener)global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Search.Poi.IOnGetPoiSearchResultListener> (native_p0, JniHandleOwnership.DoNotTransfer); __this.SetOnGetPoiSearchResultListener(p0); }