public class MetricReportMapComponent extends AbstractMapComponent implements android.content.SharedPreferences.OnSharedPreferenceChangeListener, CrashListener
AbstractMapComponent.OnAllComponentsCreatedCallbackCrashListener.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, unregisterReceiverpublic 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)
MapComponentonCreate in interface MapComponentcontext - 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)
AbstractMapComponentonPause in interface MapComponentonPause in class AbstractMapComponentcontext - the context of the component (the MapActivity instance)view - the main MapViewpublic void onResume(android.content.Context context,
MapView view)
AbstractMapComponentonResume in interface MapComponentonResume in class AbstractMapComponentcontext - the context of the component (the MapActivity instance)view - the main MapViewprotected void onDestroyImpl(android.content.Context context,
MapView view)
AbstractMapComponentonDestroyImpl in class AbstractMapComponentpublic CrashListener.CrashLogSection onCrash()
CrashListeneronCrash in interface CrashListenerpublic void onSharedPreferenceChanged(android.content.SharedPreferences prefs,
java.lang.String key)
onSharedPreferenceChanged in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener