| java.lang.Object | ||
| ↳ | Fragment | |
| ↳ | com.steerpath.sdk.maps.SteerpathMapFragment | |
SteerpathMapFragment is a wrapper for SteerpathMapView.
A Map component in an app. This fragment is the simplest way to place a map in an application.
It's a wrapper around a view of a map to automatically handle the necessary life cycle needs.
Being a fragment, this component can be added to an activity's layout or can dynamically be added
using a FragmentManager.
SteerpathMapFragment makes runtime permission checks for API level > 22.
To get a reference to the SteerpathMapView, your Activity or Parent Activity must implement SteerpathMapFragment.MapViewListener If Parent Activity implements the callback use ChildFragmentManager instead of SupportFragmentManager.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| interface | SteerpathMapFragment.MapViewListener | SteerpathMapFragment-to-Activity communication channel. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| SteerpathMapFragment() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static SteerpathMapFragment |
newInstance()
Creates default SteerpathMapFragment instance
| ||||||||||
| static SteerpathMapFragment |
newInstance(SteerpathMapOptions mapOptions)
Creates SteerpathMapFragment instance
| ||||||||||
| void | onAttach(Context context) | ||||||||||
| View |
onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
Creates the fragment view hierarchy.
| ||||||||||
| void |
onDestroyView()
Called when the fragment is view hierarchy is being destroyed.
| ||||||||||
| void |
onLowMemory()
Called when the fragment receives onLowMemory call from the hosting Activity.
| ||||||||||
| void |
onPause()
Called when the fragment is pausing.
| ||||||||||
| void |
onResume()
Called when the fragment is ready to be interacted with.
| ||||||||||
| void |
onSaveInstanceState(Bundle outState)
Called when the fragment state needs to be saved.
| ||||||||||
| void |
onStart()
Called whe fragment is about to be visible.
| ||||||||||
| void |
onStop()
Called when fragment is going away.
| ||||||||||
| void |
onViewCreated(View view, Bundle savedInstanceState)
Called when the fragment view hierarchy is created.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates SteerpathMapFragment instance
| mapOptions | The configuration options to be used. |
|---|
| IllegalArgumentException | if null is given |
|---|
Creates the fragment view hierarchy.
| inflater | Inflater used to inflate content. |
|---|---|
| container | The parent layout for the map fragment. |
| savedInstanceState | The saved instance state for the map fragment. |
Called when the fragment is view hierarchy is being destroyed.
Called when the fragment receives onLowMemory call from the hosting Activity.
Called when the fragment is pausing.
Called when the fragment is ready to be interacted with.
Called when the fragment state needs to be saved.
| outState | The saved state |
|---|
Called whe fragment is about to be visible.
Called when fragment is going away.
Called when the fragment view hierarchy is created.
| view | The content view of the fragment |
|---|---|
| savedInstanceState | THe saved instance state of the fragmentt |