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

AccessibilityService.MagnificationController.OnMagnificationChangedListener

public static interface AccessibilityService.MagnificationController.OnMagnificationChangedListener

android.accessibilityservice.AccessibilityService.MagnificationController.OnMagnificationChangedListener


Listener for changes in the state of magnification.

Summary

Public methods

abstract void onMagnificationChanged(AccessibilityService.MagnificationController controller, Region region, float scale, float centerX, float centerY)

Called when the magnified region, scale, or center changes.

Public methods

onMagnificationChanged

added in API level 24
public abstract void onMagnificationChanged (AccessibilityService.MagnificationController controller, 
                Region region, 
                float scale, 
                float centerX, 
                float centerY)

Called when the magnified region, scale, or center changes.

Parameters
controller AccessibilityService.MagnificationController: the magnification controller

This value must never be null.

region Region: the magnification region

This value must never be null.

scale float: the new scale

centerX float: the new X coordinate, in unscaled coordinates, around which magnification is focused

centerY float: the new Y coordinate, in unscaled coordinates, around which magnification is focused