public class MetricReportMapComponent extends AbstractMapComponent implements android.content.SharedPreferences.OnSharedPreferenceChangeListener, CrashListener
AbstractMapComponent.OnAllComponentsCreatedCallback
CrashListener.CrashLogSection
Modifier and Type | Field and Description |
---|---|
android.content.Context |
pluginContext |
static java.lang.String |
TAG |
MapView |
view |
Constructor and Description |
---|
MetricReportMapComponent() |
Modifier and Type | Method and Description |
---|---|
CrashListener.CrashLogSection |
onCrash()
Take action upon crash, optionally return section for inclusion in crash log
|
void |
onCreate(android.content.Context context,
android.content.Intent intent,
MapView view)
Called when the component is first created
|
protected void |
onDestroyImpl(android.content.Context context,
MapView view)
This method is invoked as a subset of the onDestroy call as part of the
MapComponent lifecycle.
|
void |
onPause(android.content.Context context,
MapView view)
Default implementation for an abstract map component which does not respond to the onPause
state transition.
|
void |
onResume(android.content.Context context,
MapView view)
Default implementation for an abstract map component which does not respond to the onResume
state transition.
|
void |
onSharedPreferenceChanged(android.content.SharedPreferences prefs,
java.lang.String key) |
addOverlay, onConfigurationChanged, onCreateOptionsMenu, onDestroy, onOptionsItemSelected, onOptionsMenuClosed, onPrepareOptionsMenu, onStart, onStop, registerReceiver, removeOverlay, setOnAllComponentsCreatedCallback, unregisterReceiver
public static final java.lang.String TAG
public android.content.Context pluginContext
public MapView view
public void onCreate(android.content.Context context, android.content.Intent intent, MapView view)
MapComponent
onCreate
in interface MapComponent
context
- the context of the component (the MapActivity instance)intent
- the intent of the MapActivityview
- the main MapViewpublic void onPause(android.content.Context context, MapView view)
AbstractMapComponent
onPause
in interface MapComponent
onPause
in class AbstractMapComponent
context
- the context of the component (the MapActivity instance)view
- the main MapViewpublic void onResume(android.content.Context context, MapView view)
AbstractMapComponent
onResume
in interface MapComponent
onResume
in class AbstractMapComponent
context
- the context of the component (the MapActivity instance)view
- the main MapViewprotected void onDestroyImpl(android.content.Context context, MapView view)
AbstractMapComponent
onDestroyImpl
in class AbstractMapComponent
public CrashListener.CrashLogSection onCrash()
CrashListener
onCrash
in interface CrashListener
public void onSharedPreferenceChanged(android.content.SharedPreferences prefs, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener