lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey
added in API level 4

ZoomButtonsController.OnZoomListener

public static interface ZoomButtonsController.OnZoomListener

android.widget.ZoomButtonsController.OnZoomListener


Interface that will be called when the user performs an interaction that triggers some action, for example zooming.

Summary

Public methods

abstract void onVisibilityChanged(boolean visible)

Called when the zoom controls' visibility changes.

abstract void onZoom(boolean zoomIn)

Called when the owner view needs to be zoomed.

Public methods

onVisibilityChanged

added in API level 4
public abstract void onVisibilityChanged (boolean visible)

Called when the zoom controls' visibility changes.

Parameters
visible boolean: Whether the zoom controls are visible.

onZoom

added in API level 4
public abstract void onZoom (boolean zoomIn)

Called when the owner view needs to be zoomed.

Parameters
zoomIn boolean: The direction of the zoom: true to zoom in, false to zoom out.