public class InfoWindowActivity extends androidx.appcompat.app.AppCompatActivity implements OnMapReadyCallback, MapboxMap.OnInfoWindowCloseListener, MapboxMap.OnInfoWindowClickListener, MapboxMap.OnInfoWindowLongClickListener
Allows to test mulitple concurrently open InfoWindows.
Constructor and Description |
---|
InfoWindowActivity() |
Modifier and Type | Method and Description |
---|---|
protected void |
onCreate(Bundle savedInstanceState) |
boolean |
onCreateOptionsMenu(Menu menu) |
protected void |
onDestroy() |
boolean |
onInfoWindowClick(Marker marker)
Called when the user clicks on an info window.
|
void |
onInfoWindowClose(Marker marker)
Called when the marker's info window is closed.
|
void |
onInfoWindowLongClick(Marker marker)
Called when the user makes a long-press gesture on the marker's info window.
|
void |
onLowMemory() |
void |
onMapReady(MapboxMap mapboxMap)
Called when the map is ready to be used.
|
boolean |
onOptionsItemSelected(MenuItem item) |
protected void |
onPause() |
protected void |
onResume() |
protected void |
onSaveInstanceState(Bundle outState) |
protected void |
onStart() |
protected void |
onStop() |
addContentView, closeOptionsMenu, dispatchKeyEvent, findViewById, getDelegate, getDrawerToggleDelegate, getMenuInflater, getResources, getSupportActionBar, getSupportParentActivityIntent, invalidateOptionsMenu, onConfigurationChanged, onContentChanged, onCreateSupportNavigateUpTaskStack, onKeyDown, onMenuItemSelected, onMenuOpened, onPanelClosed, onPostCreate, onPostResume, onPrepareSupportNavigateUpTaskStack, onSupportActionModeFinished, onSupportActionModeStarted, onSupportContentChanged, onSupportNavigateUp, onTitleChanged, onWindowStartingSupportActionMode, openOptionsMenu, setContentView, setContentView, setContentView, setSupportActionBar, setSupportProgress, setSupportProgressBarIndeterminate, setSupportProgressBarIndeterminateVisibility, setSupportProgressBarVisibility, setTheme, startSupportActionMode, supportInvalidateOptionsMenu, supportNavigateUpTo, supportRequestWindowFeature, supportShouldUpRecreateTask
dump, getLastCustomNonConfigurationInstance, getLifecycle, getSupportFragmentManager, getSupportLoaderManager, getViewModelStore, onActivityResult, onAttachFragment, onBackPressed, onCreatePanelMenu, onCreateView, onCreateView, onMultiWindowModeChanged, onNewIntent, onPictureInPictureModeChanged, onPrepareOptionsPanel, onPreparePanel, onRequestPermissionsResult, onResumeFragments, onRetainCustomNonConfigurationInstance, onRetainNonConfigurationInstance, onStateNotSaved, setEnterSharedElementCallback, setExitSharedElementCallback, startActivityForResult, startActivityForResult, startActivityFromFragment, startActivityFromFragment, startIntentSenderForResult, startIntentSenderForResult, startIntentSenderFromFragment, supportFinishAfterTransition, supportPostponeEnterTransition, supportStartPostponedEnterTransition, validateRequestPermissionsRequestCode
protected void onCreate(Bundle savedInstanceState)
onCreate
in class androidx.appcompat.app.AppCompatActivity
public void onMapReady(@NonNull MapboxMap mapboxMap)
OnMapReadyCallback
onMapReady
in interface OnMapReadyCallback
mapboxMap
- An instance of MapboxMap associated with the MapFragment
or
MapView
that defines the callback.public boolean onInfoWindowClick(@NonNull Marker marker)
MapboxMap.OnInfoWindowClickListener
onInfoWindowClick
in interface MapboxMap.OnInfoWindowClickListener
marker
- The marker of the info window the user clicked on.public void onInfoWindowClose(Marker marker)
MapboxMap.OnInfoWindowCloseListener
onInfoWindowClose
in interface MapboxMap.OnInfoWindowCloseListener
marker
- The marker of the info window that was closed.public void onInfoWindowLongClick(Marker marker)
MapboxMap.OnInfoWindowLongClickListener
onInfoWindowLongClick
in interface MapboxMap.OnInfoWindowLongClickListener
marker
- The marker were the info window is attached toprotected void onStart()
onStart
in class androidx.appcompat.app.AppCompatActivity
protected void onResume()
onResume
in class androidx.fragment.app.FragmentActivity
protected void onPause()
onPause
in class androidx.fragment.app.FragmentActivity
protected void onStop()
onStop
in class androidx.appcompat.app.AppCompatActivity
protected void onSaveInstanceState(Bundle outState)
onSaveInstanceState
in class androidx.appcompat.app.AppCompatActivity
protected void onDestroy()
onDestroy
in class androidx.appcompat.app.AppCompatActivity
public void onLowMemory()
onLowMemory
in class androidx.fragment.app.FragmentActivity
public boolean onCreateOptionsMenu(Menu menu)
public boolean onOptionsItemSelected(MenuItem item)