All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.osmdroid.views.overlay.IOverlayMenuProvider Maven / Gradle / Ivy

There is a newer version: 6.1.20
Show newest version
package org.osmdroid.views.overlay;

import org.osmdroid.views.MapView;

import android.view.Menu;
import android.view.MenuItem;

public interface IOverlayMenuProvider {
	public boolean onCreateOptionsMenu(final Menu pMenu, final int pMenuIdOffset,
			final MapView pMapView);

	public boolean onPrepareOptionsMenu(final Menu pMenu, final int pMenuIdOffset,
			final MapView pMapView);

	public boolean onOptionsItemSelected(final MenuItem pItem, final int pMenuIdOffset,
			final MapView pMapView);

	/**
	 * Can be used to signal to external callers that this Overlay should not be used for providing
	 * option menu items.
	 * 
	 */
	public boolean isOptionsMenuEnabled();

	public void setOptionsMenuEnabled(final boolean pOptionsMenuEnabled);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy