ConsumerMapView

public class ConsumerMapView extends FrameLayout

A custom map view that changes its appearance based on the currently shown Session. The map is contained in a FrameLayout that can be added to an XML layout where the parent is a Fragment or FragmentActivity which provides LifecycleOwner to the MapView.

The associated ConsumerGoogleMap is returned in a callback registered by calling getConsumerGoogleMapAsync(ConsumerMapReadyCallback, Fragment, GoogleMapOptions) or getConsumerGoogleMapAsync(ConsumerMapReadyCallback, FragmentActivity, GoogleMapOptions). The callback returns the ConsumerGoogleMap which provides access to Google Maps Android API for this view. The ConsumerController is then available by calling ConsumerGoogleMap.getConsumerController().

Inherited Constant Summary

Inherited Field Summary

Public Constructor Summary

ConsumerMapView(Context context)
Initializes ConsumerGoogleMap with the context.
ConsumerMapView(Context context, AttributeSet attrs)
Initializes ConsumerGoogleMap with the context and attribute set.
ConsumerMapView(Context context, AttributeSet attrs, int defStyleAttr)
Initializes ConsumerGoogleMap with the context and attribute set, and attribute reference.
ConsumerMapView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Initializes ConsumerGoogleMap with the context and attribute set, and attribute and style resource references.

Public Method Summary

void
getConsumerGoogleMapAsync(ConsumerGoogleMap.ConsumerMapReadyCallback callback, FragmentActivity fragmentActivity, GoogleMapOptions googleMapOptions)
Access ConsumerGoogleMap associated with this ConsumerMapView contained in a FragmentActivity.
void
getConsumerGoogleMapAsync(ConsumerGoogleMap.ConsumerMapReadyCallback callback, Fragment fragment, GoogleMapOptions googleMapOptions)
Access ConsumerGoogleMap associated with this ConsumerMapView contained in a Fragment.
void
onEnterAmbient(Bundle bundle)
You must call this from the corresponding method of the parent activity or fragment.
void
onExitAmbient()
You must call this from the corresponding method of the parent activity or fragment.
void
onLowMemory()
You must call this from the corresponding method of the parent activity or fragment.
void
onSaveInstanceState(Bundle outState)
You must call this from the corresponding method of the parent activity or fragment.

Inherited Method Summary