class DJIMapView
class DJIMapView extends FrameLayout
Package: com.dji.mapkit.core.maps Inherits From: FrameLayout
Description:
A View that contains a DJIMapViewInternal
and initializes it based on the given defaultProvider attribute. If no attribute is given, the provider will be AMaps.
All the life cycle methods must be forwarded from the Activity or Fragment containing this view to the corresponding ones in this class. In particular, the following methods must be forwarded:
Class Members:
method onCreate
void onCreate (Bundle savedInstanceState)
Package: com.dji.mapkit.core.maps
Description:
Must be called from the parent Activity/Fragment's corresponding method.
Bundle savedInstanceState Bundle which contains the saved instance state.
method onStart
Package: com.dji.mapkit.core.maps
Description:
Must be called from the parent Activity/Fragment's corresponding method.
method onResume
Package: com.dji.mapkit.core.maps
Description:
Must be called from the parent Activity/Fragment's corresponding method.
method onPause
Package: com.dji.mapkit.core.maps
Description:
Must be called from the parent Activity/Fragment's corresponding method.
method onStop
Package: com.dji.mapkit.core.maps
Description:
Must be called from the parent Activity/Fragment's corresponding method.
method onDestroy
Package: com.dji.mapkit.core.maps
Description:
Must be called from the parent Activity/Fragment's corresponding method.
method onSaveInstanceState
void onSaveInstanceState (Bundle outState)
Package: com.dji.mapkit.core.maps
Description:
Must be called from the parent Activity/Fragment's corresponding method.
Bundle outState Bundle in which to place your saved state.
method onLowMemory
Package: com.dji.mapkit.core.maps
Description:
Must be called from the parent Activity/Fragment's corresponding method.
method getDJIMapAsync
void getDJIMapAsync (@NonNull final OnDJIMapReadyCallback callback)
Package: com.dji.mapkit.core.maps
Description:
Initializes the map view.
@NonNull final OnDJIMapReadyCallback callback The callback that will be invoked when the map is ready to be used.