OfflineController class Null safety

Constructors

OfflineController()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

destroyOfflineMap() → Future<bool>
销毁离线地图管理模块,不用时调用
getAllUpdateInfo() → Future<List?>
返回各城市离线地图更新信息
getHotCityList() → Future<List?>
返回热门城市列表
getOfflineCityList() → Future<List?>
返回支持离线地图城市列表
getUpdateInfo(int id) → Future
返回指定城市ID离线地图更新信息
init() → Future<bool>
初始化
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
onGetOfflineMapStateBack({required BMFGetOfflineMapStateback callback}) → void
返回通知事件
pauseOfflineMap(int cityID) → Future<bool>
暂停下载或更新指定城市ID的离线地图
removeOfflineMap(int cityID) → Future<bool>
删除指定城市ID的离线地图
searchCity(String cityName) → Future<List?>
根据城市名搜索该城市离线地图记录
startOfflineMap(int cityID) → Future<bool>
启动下载指定城市ID的离线地图,或在暂停更新某城市后继续更新下载某城市离线地图
toString() → String
A string representation of this object.
inherited
updateOfflineMap(int cityID) → Future<bool>
启动更新指定城市ID的离线地图

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

TYPE_DOWNLOAD_UPDATE → const int
离线地图下载更新事件类型
0
TYPE_NETWORK_ERROR → const int
离线地图网络问题
2
TYPE_NEW_OFFLINE → const int
新安装离线地图事件类型
6
TYPE_VER_UPDATE → const int
离线地图数据版本更新事件类型
4