Package 

Class RotationGestureOverlay

    • Method Summary

      Modifier and Type Method Description
      boolean onTouchEvent(MotionEvent event, MapView mapView) You can prevent all(!) other Touch-related events from happening!
      void onRotate(float deltaAngle)
      void onDetach(MapView map) Override to perform clean up of resources before shutdown.
      boolean isOptionsMenuEnabled() Can be used to signal to external callers that this Overlay should not be used for providingoption menu items.
      boolean onCreateOptionsMenu(Menu pMenu, int pMenuIdOffset, MapView pMapView)
      boolean onOptionsItemSelected(MenuItem pItem, int pMenuIdOffset, MapView pMapView)
      boolean onPrepareOptionsMenu(Menu pMenu, int pMenuIdOffset, MapView pMapView)
      void setOptionsMenuEnabled(boolean enabled)
      void setEnabled(boolean pEnabled) Sets whether the Overlay is marked to be enabled.
      • Methods inherited from class org.osmdroid.views.overlay.Overlay

        draw, draw, getBounds, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onPause, onResume, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTouchEvent, onTrackballEvent
      • Methods inherited from class org.osmdroid.views.overlay.IOverlayMenuProvider

        onCreateOptionsMenu, onOptionsItemSelected, onPrepareOptionsMenu, setOptionsMenuEnabled
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onTouchEvent

         boolean onTouchEvent(MotionEvent event, MapView mapView)

        You can prevent all(!) other Touch-related events from happening!By default does nothing ({@code return false}). If you handled the Event, return {@code true} , otherwise return {@code false}. If you returned {@code true} none of the following Overlaysor the underlying MapView has the chance to handle this event.

      • onRotate

         void onRotate(float deltaAngle)
      • onDetach

         void onDetach(MapView map)

        Override to perform clean up of resources before shutdown. By default does nothing.

      • isOptionsMenuEnabled

         boolean isOptionsMenuEnabled()

        Can be used to signal to external callers that this Overlay should not be used for providingoption menu items.

      • setEnabled

         void setEnabled(boolean pEnabled)

        Sets whether the Overlay is marked to be enabled. This setting does nothing by default, butshould be checked before calling draw().