Skip to end of metadata
Go to start of metadata

Represents a map fragment.

Definition

public class MapFragment<TViewModel> : Fragment<TViewModel>

where TViewModel : IViewModel, class

Type Parameters

TViewModel

Summary

The following table summarizes the members exposed in this class.

Protected Constructors

Public Properties

MapView Gets the MapFragment<TViewModel> instance.

Protected Properties

ContentLayoutId Gets the content layout ID.
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

OnDestroyView() Called when the view has been detached from the fragment.
OnLowMemory() Called when the overall system is running low on memory and actively running processes should trim their memory usage.
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 so that the state can be restored when restarted.
OnViewCreated(View, Bundle) Called when view has been created.

Protected Methods

InitializeContext() Initializes the context.
InitializeMapView(MapView) Initializes the map view.
InitializeView() Initialize view.
OnRestoreNonConfigurationInstance(ViewState) Restore non configuration instance that was previously returned by MapFragment<TViewModel>.
OnRetainNonConfigurationInstance() Retain non configuration instance to be used when the instance is re-created after being destroyed.
OnViewDisposed() Called when the view is disposed.

Protected Constructors

protected MapFragment()

Initializes the MapFragment<TViewModel> class.

protected MapFragment(TViewModel viewModel)

Initializes the MapFragment<TViewModel> class.

Parameters

viewModel Instance of IViewModel

protected MapFragment(IntPtr intPtr, JniHandleOwnership handleOwnership)

Initializes a new instance of the MapFragment<TViewModel> class.

Parameters

intPtr The int PTR.
handleOwnership The handle ownership.

Public Properties

public MapView MapView { get; }

Gets the MapFragment<TViewModel> instance.

Protected Properties

protected int ContentLayoutId { get; }

Gets the content layout ID.

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 OnDestroyView()

Called when the view has been detached from the fragment.

public void OnLowMemory()

Called when the overall system is running low on memory and actively running processes should trim their memory usage.

public void OnPause()

Called as part of the activity lifecycle when an activity is going into the background, but has not (yet) been killed.

public void OnResume()

Called when activity start interacting with the user.

public void OnSaveInstanceState(Bundle outState)

Called to retrieve per-instance state from an activity before being killed so that the state can be restored when restarted.

Parameters

outState Bundle in which to place your saved state.

public void OnViewCreated(View view, Bundle savedInstanceState)

Called when view has been created.

Parameters

view The view.
savedInstanceState If non-null, this fragment is being re-constructed from a previous saved state as given here.

Protected Methods

protected void InitializeContext()

Initializes the context.

protected void InitializeMapView(MapView mapView)

Initializes the map view.

Parameters

mapView The map view.

protected void InitializeView()

Initialize view.

protected void OnRestoreNonConfigurationInstance(ViewState viewState)

Restore non configuration instance that was previously returned by MapFragment<TViewModel>.

Parameters

viewState The view state.

protected ViewState OnRetainNonConfigurationInstance()

Retain non configuration instance to be used when the instance is re-created after being destroyed.

protected void OnViewDisposed()

Called when the view is disposed.

  • No labels