Added in API level 4
Deprecated in API level 29

OnZoomListener


interface 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 Unit

Called when the zoom controls' visibility changes.

abstract Unit
onZoom(zoomIn: Boolean)

Called when the owner view needs to be zoomed.

Public methods

onVisibilityChanged

Added in API level 4
abstract fun onVisibilityChanged(visible: Boolean): Unit

Deprecated: Deprecated in Java.

Called when the zoom controls' visibility changes.

Parameters
visible Boolean: Whether the zoom controls are visible.

onZoom

Added in API level 4
abstract fun onZoom(zoomIn: Boolean): Unit

Deprecated: Deprecated in Java.

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.