public class MapOverlayComponent extends java.lang.Object implements MapComponent
Constructor and Description |
---|
MapOverlayComponent() |
Modifier and Type | Method and Description |
---|---|
void |
onConfigurationChanged(android.content.res.Configuration newConfig)
Implementation of onConfigurationChanged used to handle configuration changes for each
mapComponent.
|
void |
onCreate(android.content.Context context,
android.content.Intent intent,
MapView view)
Called when the component is first created
|
boolean |
onCreateOptionsMenu(android.content.Context context,
android.view.Menu menu)
Is called on all Map Components when the onCreateOptionsMenu is called on the Map Activity.
|
void |
onDestroy(android.content.Context context,
MapView view)
Called when the component must be destroyed
|
boolean |
onOptionsItemSelected(android.content.Context context,
android.view.MenuItem item)
Called on a onOptionsItemSelected is called and not found in regular activity.
|
void |
onOptionsMenuClosed(android.content.Context context,
android.view.Menu menu)
Option menu has been closed in MapActivity.
|
void |
onPause(android.content.Context context,
MapView view)
Implementation for an abstract map component which corresponds to the onPause
state transition.
|
boolean |
onPrepareOptionsMenu(android.content.Context context,
android.view.Menu menu)
Called to Update the Options Menu on all MapComponents in the MapActivity.
|
void |
onResume(android.content.Context context,
MapView view)
Implementation for an abstract map component which corresponds to the onResume
state transition.
|
void |
onStart(android.content.Context context,
MapView view)
Implementation for an abstract map component which corresponds to the onStart
state transition.
|
void |
onStop(android.content.Context context,
MapView view)
Implementation for an abstract map component which corresponds to the onStop
state transition.
|
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 onDestroy(android.content.Context context, MapView view)
MapComponent
onDestroy
in interface MapComponent
context
- the context of the component (the MapActivity instance)view
- the main MapViewpublic void onStart(android.content.Context context, MapView view)
MapComponent
onStart
in interface MapComponent
context
- the context of the component (the MapActivity instance)view
- the main MapViewpublic void onStop(android.content.Context context, MapView view)
MapComponent
onStop
in interface MapComponent
context
- the context of the component (the MapActivity instance)view
- the main MapViewpublic void onPause(android.content.Context context, MapView view)
MapComponent
onPause
in interface MapComponent
context
- the context of the component (the MapActivity instance)view
- the main MapViewpublic void onResume(android.content.Context context, MapView view)
MapComponent
onResume
in interface MapComponent
context
- the context of the component (the MapActivity instance)view
- the main MapViewpublic void onConfigurationChanged(android.content.res.Configuration newConfig)
MapComponent
onConfigurationChanged
in interface MapComponent
newConfig
- called when the configuration changedActivity.onConfigurationChanged(Configuration)
public boolean onCreateOptionsMenu(android.content.Context context, android.view.Menu menu)
MapComponent
onCreateOptionsMenu
in interface MapComponent
context
- the context of the component (the MapActivity instance)menu
- The options menu in which you place your items.Activity.onCreateOptionsMenu(Menu)
public boolean onPrepareOptionsMenu(android.content.Context context, android.view.Menu menu)
MapComponent
onPrepareOptionsMenu
in interface MapComponent
context
- the context of the component (the MapActivity instance)menu
- The options menu in which you place your items.public boolean onOptionsItemSelected(android.content.Context context, android.view.MenuItem item)
MapComponent
onOptionsItemSelected
in interface MapComponent
context
- the context of the component (the MapActivity instance)item
- The menu item that was selected.Activity.onOptionsItemSelected(MenuItem)
public void onOptionsMenuClosed(android.content.Context context, android.view.Menu menu)
MapComponent
onOptionsMenuClosed
in interface MapComponent
context
- the context of the component (the MapActivity instance)menu
- The options menu in which you place your items.Activity.onOptionsMenuClosed(Menu)