Represents an Activity<TViewModel> class for displaying a map.
Definition
public class MapActivity<TViewModel> : Activity<TViewModel>
where TViewModel : IViewModel, class
Type Parameters
TViewModel | Instance of IViewModel |
Summary
The following table summarizes the members exposed in this class.
Protected Constructors
MapActivity<TViewModel> Constructor() | Initializes a new instance of the MapActivity<TViewModel> class. |
MapActivity<TViewModel> Constructor(int) | Initializes a new instance of the MapActivity<TViewModel> class. |
MapActivity<TViewModel> Constructor(TViewModel) | Initializes a new instance of the MapActivity<TViewModel> class. |
MapActivity<TViewModel> Constructor(IntPtr, JniHandleOwnership) | Initializes a new instance of the MapActivity<TViewModel> class. |
Public Properties
MapView | Gets the MapActivity<TViewModel> instance. |
Protected Properties
InfoWindowLayoutId | Gets the info window layout id. |
IsBuildingsEnabled | Gets the value indicating whether 3D buildings layer is enabled. |
IsCompassEnabled | Gets the value indicating whether compass is enabled. |
IsIndoorEnabled | Gets the value indicating whether indoor maps is enabled. |
IsMyLocationButtonEnabled | Gets the value indicating whether my location button is enabled. |
IsMyLocationEnabled | Gets the value indicating whether my location feature is enabled. |
IsRotateGesturesEnabled | Gets the value indicating whether rotate gestures is enabled. |
IsScrollGesturesEnabled | Gets the value indicating whether scroll gestures is enabled. |
IsTiltGesturesEnabled | Gets the value indicating whether tilt gestures is enabled. |
IsTrafficEnabled | Gets the value indicating whether traffic data is drawn into the map. |
IsZoomControlsEnabled | Gets the value indicating whether zoom controls is enabled. |
IsZoomGesturesEnabled | Gets the value indicating whether zoom gestures is enabled. |
MapType | Gets the map type. |
MapViewId | Gets the identifier of the list view. |
Public Methods
OnLowMemory() | Called when the overall system is running low on memory and actively running processes should trim their memory usage. |
OnRestoreNonConfigurationInstance() | Restore non configuration instance that was previously returned by MapActivity<TViewModel>. |
OnRetainNonConfigurationInstance() | Retain non configuration instance to be used when the instance is re-created after being destroyed. |
Protected Methods
CreateViewState() | Create the view state to store non-configuration instance which should be retained before the view is being destroyed. |
InitializeView() | Initializes the view-related logic before it is rendered. |
OnCreate(Bundle) | Called when the activity is starting. |
OnDestroy() | Perform any final cleanup before an activity is destroyed. |
OnPause() | Called as part of the activity lifecycle when an activity is going into the background, but has not (yet) been killed. |
OnResume() | Called when activity start interacting with the user. |
OnSaveInstanceState(Bundle) | Called to retrieve per-instance state from an activity before being killed. |
OnViewDisposed() | Called when the view is disposed. |
Protected Constructors
protected MapActivity()
Initializes a new instance of the MapActivity<TViewModel> class.
protected MapActivity(int contentLayoutId)
Initializes a new instance of the MapActivity<TViewModel> class.
Parameters
contentLayoutId | The content layout identifier. |
protected MapActivity(TViewModel viewModel)
Initializes a new instance of the MapActivity<TViewModel> class.
Parameters
viewModel | Instance of IViewModel |
protected MapActivity(IntPtr intPtr, JniHandleOwnership handleOwnership)
Initializes a new instance of the MapActivity<TViewModel> class.
Parameters
intPtr | The IntPtr. |
handleOwnership | The handle ownership. |
Public Properties
public MapView MapView { get; }
Gets the MapActivity<TViewModel> instance.
Protected Properties
protected int InfoWindowLayoutId { get; }
Gets the info window layout id.
protected bool IsBuildingsEnabled { get; }
Gets the value indicating whether 3D buildings layer is enabled.
protected bool IsCompassEnabled { get; }
Gets the value indicating whether compass is enabled.
protected bool IsIndoorEnabled { get; }
Gets the value indicating whether indoor maps is enabled.
protected bool IsMyLocationButtonEnabled { get; }
Gets the value indicating whether my location button is enabled.
protected bool IsMyLocationEnabled { get; }
Gets the value indicating whether my location feature is enabled.
protected bool IsRotateGesturesEnabled { get; }
Gets the value indicating whether rotate gestures is enabled.
protected bool IsScrollGesturesEnabled { get; }
Gets the value indicating whether scroll gestures is enabled.
protected bool IsTiltGesturesEnabled { get; }
Gets the value indicating whether tilt gestures is enabled.
protected bool IsTrafficEnabled { get; }
Gets the value indicating whether traffic data is drawn into the map.
protected bool IsZoomControlsEnabled { get; }
Gets the value indicating whether zoom controls is enabled.
protected bool IsZoomGesturesEnabled { get; }
Gets the value indicating whether zoom gestures is enabled.
protected MapType MapType { get; }
Gets the map type.
protected int MapViewId { get; }
Gets the identifier of the list view.
Public Methods
public void OnLowMemory()
Called when the overall system is running low on memory and actively running processes should trim their memory usage.
public void OnRestoreNonConfigurationInstance()
Restore non configuration instance that was previously returned by MapActivity<TViewModel>.
public Object OnRetainNonConfigurationInstance()
Retain non configuration instance to be used when the instance is re-created after being destroyed.
Protected Methods
protected ViewState CreateViewState()
Create the view state to store non-configuration instance which should be retained before the view is being destroyed.
Return Types
The view state which contains non-configuration instance. |
protected void InitializeView()
Initializes the view-related logic before it is rendered.
protected void OnCreate(Bundle savedInstanceState)
Called when the activity is starting.
Parameters
savedInstanceState | If the activity is being re-initialized after previously being shut down then this Bundle contains the data it most recently supplied in MapActivity<TViewModel>; Otherwise it is null. |
protected void OnDestroy()
Perform any final cleanup before an activity is destroyed.
protected void OnPause()
Called as part of the activity lifecycle when an activity is going into the background, but has not (yet) been killed.
protected void OnResume()
Called when activity start interacting with the user.
protected void OnSaveInstanceState(Bundle outState)
Called to retrieve per-instance state from an activity before being killed.
Parameters
outState | Bundle in which to place your saved state. |
protected void OnViewDisposed()
Called when the view is disposed.