amap_map_fluttify library

欢迎使用 高德地图 Flutter插件

amap_map_fluttify基于fluttify编译器生成的一个插件, 其./lib/src/android./lib/src/ios目录 下为原生SDK接口对应的dart接口. ./lib/src/facade目录下的文件为两端接口的抽象层.

插件中最重要的两个类为AmapViewAmapController, AmapView为显示高德地图的widget, AmapView创建完成之后, 会在onMapCreated回调中回传AmapController的对象, 插件使用者 可以调用AmapController上的方法来控制地图行为. 注意使用setState之类的方法是不能更新 地图的! 必须通过AmapController来控制地图.

AmapController中开放了所有控制地图需要的接口, 具体可以查看AmapController内的注释.

Classes

AmapController
地图控制类
AmapCore
AmapLocation
高德定位 主类
AMapNaviConfig
AMapPOIConfig
AMapRouteConfig
AmapSearch
高德地图 搜索组件主类
AmapService
除了地图以外的功能放在这里, 比如说sdk初始化
AMapServices
AMapURLSearch
AmapView
高德地图 Widget
android_app_Activity
android_app_Application
android_app_Notification
android_app_PendingIntent
android_content_BroadcastReceiver
android_content_ContentProvider
android_content_Context
android_content_Intent
android_content_IntentFilter
android_graphics_Bitmap
android_graphics_drawable_Drawable
android_graphics_Point
android_graphics_PointF
android_location_Location
android_os_Binder
android_os_Bundle
android_util_Pair
android_view_MotionEvent
android_view_SurfaceView
android_view_SurfaceViewWidget
android_view_View
android_view_ViewGroup
android_widget_FrameLayout
android_widget_ImageView
android_widget_LinearLayout
android_widget_RelativeLayout
android_widget_TextView
Aoi
Array<T>
BackgroundNotification
后台定位notification
BusEntrance
公交入口 model
BusExit
公交出口 model
BusLine
公交路线 model
BusPath
公交路径 model
BusRailway
todo 公交地铁 model
BusRouteResult
公交路径规划 model
BusStation
公交站列表 model
BusStationItem
公交站 model
BusStep
公交步骤 model
BusTaxi
todo 公交出租车 model
BusWalk
驾车步行 model
CAAnimation
CABasicAnimation
CAPropertyAnimation
CGPoint
CGRect
CGSize
Circle
圆形
CircleOption
Circle创建参数
CLFloor
CLHeading
CLLocation
CLLocationCoordinate2D
CLLocationManager
Cloud
District
地区列表 model
DistrictItem
地区 model
DrivePath
驾车路径 model
DriveRouteResult
驾车路径规划 model
DriveStep
驾车步骤 model
FluttifyBroadcastEventChannel
FluttifyMessageCodec
Geocode
地理编码 model
GeoFence
GeoFenceEvent
GroundOverlay
图片覆盖物
GroundOverlayOption
图片覆盖物创建参数
HeatmapOverlay
热力图
HeatmapTileOption
TileOverlay创建参数
InputTip
输入提示 model
java_io_File
java_lang_Object
java_lang_Throwable
LatLng
Location
定位结果 model
MapLocation
地图定位信息 区分于定位插件的定位信息
MapMove
地图移动
Marker
地图标记
MarkerOption
Marker创建参数
MultiPointOption
海量点创建参数
MultiPointOverlay
海量点
MyLocationOption
我的位置选项
NSData
NSError
NSObject
NSOperation
NSURL
NSUserActivity
NSValue
org_json_JSONObject
PlaybackTrace
回放轨迹
Poi
兴趣点 model
Point
屏幕坐标
PointOption
海量点中单个点的创建参数
Polygon
多边形
PolygonOption
Polygon创建参数
Polyline
折线
PolylineOption
Polyline创建参数
Ref
ReGeocode
逆地理编码 model
RidePath
骑行路径 model
RideRouteResult
骑行路径规划 model
RideStep
骑行步骤 model
Road
道路
ScopedReleasePool
ScopedReleasePoolState
SmoothMoveMarker
平滑移动点
SmoothMoveMarkerOption
平滑移动Marker创建参数
TMC
路况 model
TraceLocation
屏幕坐标
TrafficOption
交通配置
UIApplication
UIApplicationShortcutItem
UIColor
UIControl
UIEdgeInsets
UIImage
UIImageView
UIUserNotificationSettings
UIView
UIViewController
UIViewWidget
UrlTileOption
瓦片图创建参数
UrlTileOverlay
热力图
WalkPath
行走路径 model
WalkRouteResult
行走路径规划 model
WalkStep
行走步骤 model
Weather
todo 天气 model

Mixins

AmapSearchDisposeMixin<T extends StatefulWidget>
释放资源mixin
android_os_Parcelable
android_view_SurfaceHolder_Callback
android_view_View_OnApplyWindowInsetsListener
android_view_View_OnClickListener
android_view_View_OnTouchListener
CAAction
CAMediaTiming
java_io_Closeable
java_io_Serializable
NSCoding
NSCopying
NSMutableCopying

Extensions

AMapCoordinateTypeFromX
AMapCoordinateTypeToX
AMapDrivingStrategyFromX
AMapDrivingStrategyToX
AMapNaviConfig_Batch
AMapPOIConfig_Batch
AMapRouteConfig_Batch
AMapRouteSearchTypeFromX
AMapRouteSearchTypeToX
AMapServices_Batch
AMapTransitStrategyFromX
AMapTransitStrategyToX
AMapURLSearch_Batch
CGPointListX
CLAuthorizationStatusFromX
CLAuthorizationStatusToX
CLLocationCoordinate2DListX
ImageProviderX
NSObjectListX
Ref_Batch
RefList_Batch
TypeOpAmapCoreFluttifyIOS

Constants

kBroadcastEventChannel → const FluttifyBroadcastEventChannel
const FluttifyBroadcastEventChannel(kBroadcastEventChannelName)
kBroadcastEventChannelName → const String
'com.fluttify/foundation_broadcast_event'
kMethodChannelName → const String
'com.fluttify/foundation_method'
kSensorEventChannel → const EventChannel
const EventChannel(kSensorEventChannelName)
kSensorEventChannelName → const String
'com.fluttify/foundation_sensor_event'

Properties

applicationContinueUserActivityRestorationHandler ApplicationContinueUserActivityRestorationHandler
read / write
applicationDidBecomeActive ApplicationDidBecomeActive
read / write
applicationDidEnterBackground ApplicationDidEnterBackground
read / write
applicationDidFinishLaunchingWithOptions ApplicationDidFinishLaunchingWithOptions
read / write
applicationDidReceiveRemoteNotificationFetchCompletionHandler ApplicationDidReceiveRemoteNotificationFetchCompletionHandler
read / write
applicationDidRegisterForRemoteNotificationsWithDeviceToken ApplicationDidRegisterForRemoteNotificationsWithDeviceToken
read / write
applicationDidRegisterUserNotificationSettings ApplicationDidRegisterUserNotificationSettings
read / write
applicationHandleEventsForBackgroundURLSessionCompletionHandler ApplicationHandleEventsForBackgroundURLSessionCompletionHandler
read / write
applicationHandleOpenURL ApplicationHandleOpenURL
read / write
applicationOpenURLOptions ApplicationOpenURLOptions
read / write
applicationOpenURLSourceApplicationAnnotation ApplicationOpenURLSourceApplicationAnnotation
read / write
applicationPerformActionForShortcutItemCompletionHandler ApplicationPerformActionForShortcutItemCompletionHandler
read / write
applicationPerformFetchWithCompletionHandler ApplicationPerformFetchWithCompletionHandler
read / write
applicationWillEnterForeground ApplicationWillEnterForeground
read / write
applicationWillFinishLaunchingWithOptions ApplicationWillFinishLaunchingWithOptions
read / write
applicationWillResignActive ApplicationWillResignActive
read / write
applicationWillTerminate ApplicationWillTerminate
read / write
fluttifyLogEnabled bool
read-only
gGlobalReleasePool Set<Ref>
native object release pool, all objects returned by the native side will be in this set
final
gReleasePoolStack → Stack<ScopedReleasePoolState>
final
kMethodChannel MethodChannel
final

Functions

AMapCoordinateConvert(CLLocationCoordinate2D coordinate, AMapCoordinateType type) Future<CLLocationCoordinate2D>
AMapDataAvailableForCoordinate(CLLocationCoordinate2D coordinate) Future<bool>
AMapEmptyStringIfNil(String s) Future<String>
clearHeap() Future<void>
clearStack() Future<void>
enableFluttifyLog(bool enable) Future<void>
getAssetPath(String flutterAssetPath) Future<String>
不怎么好用
log(String content) → void
platform<T>({_FutureCallback<T> android, _FutureCallback<T> ios}) Future<T>
platformStream<T>({_StreamCallback<T> android, _StreamCallback<T> ios}) Stream<T>
presentViewController(String viewControllerClass, {bool withNavigationController = false}) Future<void>
pushStack(String name, Ref ref) Future<void>
pushStackJsonable(String name, dynamic jsonable) Future<void>
setupOrientationSensor() Future<void>
startActivity(String activityClass, {Map<String, dynamic> extras = const {}}) Future<void>
startActivityForResult(String activityClass, {int requestCode, Map<String, dynamic> extras = const {}}) Future<android_content_Intent>
viewId2RefId(String viewId) Future<String>
viewId转换为refId [...]

Enums

AMapCoordinateType
/////////////////////////////////////////////////////// ///////////////////////////////////////////////////////
AMapDrivingStrategy
/////////////////////////////////////////////////////// ///////////////////////////////////////////////////////
AMapRouteSearchType
/////////////////////////////////////////////////////// ///////////////////////////////////////////////////////
AMapTransitStrategy
/////////////////////////////////////////////////////// ///////////////////////////////////////////////////////
AVAudioSessionCategoryOptions
CAMediaTimingFillMode
CLAuthorizationStatus
CoordType
坐标类型
DashType
虚线样式
GeoFenceActiveAction
电子围栏激活动作
GeoFenceStatus
电子围栏状态
Language
地图语言
LineCapType
线段末端处样式
LineJoinType
线段连接处样式
LocationAccuracy
定位模式
MapType
地图类型
MyLocationType
RideType
UIBarStyle
UIStatusBarStyle

Typedefs

Action0 = FutureOr<void> Function()
Action1<T> = FutureOr<void> Function(T arg0)
Action2<T1, T2> = FutureOr<void> Function(T1 arg0, T2 arg1)
Action3<T1, T2, T3> = FutureOr<void> Function(T1 arg1, T2 arg2, T3 arg3)
Action4<T1, T2, T3, T4> = FutureOr<void> Function(T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Action5<T1, T2, T3, T4, T5> = FutureOr<void> Function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Action6<T1, T2, T3, T4, T5, T6> = FutureOr<void> Function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Action7<T1, T2, T3, T4, T5, T6, T7> = FutureOr<void> Function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Action8<T1, T2, T3, T4, T5, T6, T7, T8> = FutureOr<void> Function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
Action9<T1, T2, T3, T4, T5, T6, T7, T8, T9> = FutureOr<void> Function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
ApplicationContinueUserActivityRestorationHandler = void Function(UIApplication application, NSUserActivity userActivity)
ApplicationDidBecomeActive = void Function(UIApplication application)
ApplicationDidEnterBackground = void Function(UIApplication application)
ApplicationDidFinishLaunchingWithOptions = void Function(UIApplication application, Map options)
ApplicationDidReceiveRemoteNotificationFetchCompletionHandler = void Function(UIApplication application, Map userInfo)
ApplicationDidRegisterForRemoteNotificationsWithDeviceToken = void Function(UIApplication application, NSData deviceToken)
ApplicationDidRegisterUserNotificationSettings = void Function(UIApplication application, UIUserNotificationSettings notificationSettings)
ApplicationHandleEventsForBackgroundURLSessionCompletionHandler = void Function(UIApplication application, String identifier)
ApplicationHandleOpenURL = void Function(UIApplication application, NSURL url)
ApplicationOpenURLOptions = void Function(UIApplication application, NSURL url, Map<String, dynamic> options)
ApplicationOpenURLSourceApplicationAnnotation = void Function(UIApplication application, NSURL url, String sourceApplication, NSObject annotation)
ApplicationPerformActionForShortcutItemCompletionHandler = void Function(UIApplication application, UIApplicationShortcutItem shortcutItem)
ApplicationPerformFetchWithCompletionHandler = void Function(UIApplication application)
ApplicationWillEnterForeground = void Function(UIApplication application)
ApplicationWillFinishLaunchingWithOptions = void Function(UIApplication application, Map options)
ApplicationWillResignActive = void Function(UIApplication application)
ApplicationWillTerminate = void Function(UIApplication application)
Function0<R> = FutureOr<R> Function()
Function1<T, R> = FutureOr<R> Function(T arg0)
Function2<T1, T2, R> = FutureOr<R> Function(T1 arg0, T2 arg1)
Function3<T1, T2, T3, R> = FutureOr<R> Function(T1 arg1, T2 arg2, T3 arg3)
Function4<T1, T2, T3, T4, R> = FutureOr<R> Function(T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Function5<T1, T2, T3, T4, T5, R> = FutureOr<R> Function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Function6<T1, T2, T3, T4, T5, T6, R> = FutureOr<R> Function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Function7<T1, T2, T3, T4, T5, T6, T7, R> = FutureOr<R> Function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Function8<T1, T2, T3, T4, T5, T6, T7, T8, R> = FutureOr<R> Function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
Function9<T1, T2, T3, T4, T5, T6, T7, T8, T9, R> = FutureOr<R> Function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
FutureValueChanged<T> = Future<void> Function(T value)
FutureVoidCallback = Future<void> Function()
OnLocationChange = Future<void> Function(MapLocation move)
位置移动事件回调签名
OnMapClicked = Future<void> Function(LatLng latLng)
地图点击事件回调签名
OnMapMove = Future<void> Function(MapMove move)
地图移动事件回调签名
OnMarkerClicked = Future<void> Function(Marker marker)
marker点击事件回调签名 输入Marker对象
OnMarkerDrag = Future<void> Function(Marker marker)
Marker拖动回调签名
OnMultiPointClicked = Future<void> Function(String id, String title, String snippet, String object)
海量点点击回调签名
OnTraceFailed = Future<void> Function(int errorCode, String errorInfo)
轨迹纠偏失败回调
OnTraceFinished = Future<void> Function(List<LatLng> traceList, int distance)
轨迹纠偏成功回调 traceList纠偏后的经纬度列表 distance路程
OnTraceProcessing = Future<void> Function(int index, List<LatLng> traceList)
轨迹纠偏过程回调,一条轨迹分割为多个段,按索引顺序回调其中一段 index片段索引 traceList当前片段的经纬度列表
OnUIViewCreated = Future<void> Function(UIView controller)
OnViewCreated = Future<void> Function(android_view_SurfaceView controller)