Пример #1
0
        static IntPtr n_City_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Baidu.Mapapi.Search.Poi.PoiCitySearchOption __this = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Search.Poi.PoiCitySearchOption> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0    = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.City(p0));

            return(__ret);
        }
        static bool n_SearchInCity_Lcom_baidu_mapapi_search_poi_PoiCitySearchOption_(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.PoiCitySearchOption p0     = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Search.Poi.PoiCitySearchOption> (native_p0, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.SearchInCity(p0);

            return(__ret);
        }
        public virtual unsafe bool SearchInCity(global::Com.Baidu.Mapapi.Search.Poi.PoiCitySearchOption p0)
        {
            if (id_searchInCity_Lcom_baidu_mapapi_search_poi_PoiCitySearchOption_ == IntPtr.Zero)
            {
                id_searchInCity_Lcom_baidu_mapapi_search_poi_PoiCitySearchOption_ = JNIEnv.GetMethodID(class_ref, "searchInCity", "(Lcom/baidu/mapapi/search/poi/PoiCitySearchOption;)Z");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                bool __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(Handle, id_searchInCity_Lcom_baidu_mapapi_search_poi_PoiCitySearchOption_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "searchInCity", "(Lcom/baidu/mapapi/search/poi/PoiCitySearchOption;)Z"), __args);
                }
                return(__ret);
            } finally {
            }
        }
Пример #4
0
 static IntPtr n_PageNum_I(IntPtr jnienv, IntPtr native__this, int p0)
 {
     global::Com.Baidu.Mapapi.Search.Poi.PoiCitySearchOption __this = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Search.Poi.PoiCitySearchOption> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.PageNum(p0)));
 }