AmapFlutterSearch class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
fetchInputTips(String keyword, {String city = ''})
→ Future<List>
-
输入内容自动提示
-
searchAround(Location center, {String keyword = '', String city = '', int pageSize = 20, int page = 1, int radius = 1000})
→ Future<List<AMapPoi>>
-
周边搜索poi
-
searchGeocode(String keyword, {String city = ''})
→ Future<List>
-
地理编码(地址转坐标)
-
searchKeyword(String keyword, {String city = '', String types = '', int pageSize = 20, int page = 1})
→ Future<List<AMapPoi>>
-
关键字搜索poi
-
setApiKey(String androidKey, String iosKey)
→ void
-
设置Android和iOS的apikey,建议在weigdet初始化时设置
apiKey的申请请参考高德开放平台官网
Android端: https://lbs.amap.com/api/android-location-sdk/guide/create-project/get-key
iOS端: https://lbs.amap.com/api/ios-location-sdk/guide/create-project/get-key
androidKey
Android平台的key
iosKey
ios平台的key
-
updatePrivacyAgree(bool hasAgree)
→ void
-
设置是否已经取得用户同意,如果未取得用户同意,高德定位SDK将不会工作
高德SDK合规使用方案请参考官网地址:https://lbs.amap.com/news/sdkhgsy
必须保证在调用定位功能之前调用, 建议首次启动App时弹出《隐私政策》并取得用户同意
hasAgree
隐私权政策是否已经取得用户同意
-
updatePrivacyShow(bool hasContains, bool hasShow)
→ void
-
设置是否已经包含高德隐私政策并弹窗展示显示用户查看,如果未包含或者没有弹窗展示,高德定位SDK将不会工作
高德SDK合规使用方案请参考官网地址:https://lbs.amap.com/news/sdkhgsy
必须保证在调用定位功能之前调用, 建议首次启动App时弹出《隐私政策》并取得用户同意
高德SDK合规使用方案请参考官网地址:https://lbs.amap.com/news/sdkhgsy
hasContains
隐私声明中是否包含高德隐私政策说明
hasShow
隐私权政策是否弹窗展示告知用户