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

public abstract void onVisibilityChanged (boolean visible)

Called when the zoom controls' visibility changes.

Parameters
visible boolean: Whether the zoom controls are visible.

onZoom

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.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.