Package org.robolectric.shadows
Class ShadowMagnificationController
java.lang.Object
org.robolectric.shadows.ShadowMagnificationController
@Implements(value=android.accessibilityservice.AccessibilityService.MagnificationController.class,
minSdk=24)
public class ShadowMagnificationController
extends Object
Shadow of MagnificationController.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
addListener
(AccessibilityService.MagnificationController.OnMagnificationChangedListener listener, Handler handler) protected float
protected float
protected Region
protected float
getScale()
protected boolean
removeListener
(AccessibilityService.MagnificationController.OnMagnificationChangedListener listener) protected boolean
reset
(boolean animate) protected boolean
setCenter
(float centerX, float centerY, boolean animate) protected boolean
setScale
(float scale, boolean animate)
-
Constructor Details
-
ShadowMagnificationController
public ShadowMagnificationController()
-
-
Method Details
-
addListener
@Implementation protected void addListener(AccessibilityService.MagnificationController.OnMagnificationChangedListener listener, Handler handler) -
addListener
@Implementation protected void addListener(AccessibilityService.MagnificationController.OnMagnificationChangedListener listener) -
getCenterX
-
getCenterY
-
getMagnificationRegion
-
getScale
-
removeListener
@Implementation protected boolean removeListener(AccessibilityService.MagnificationController.OnMagnificationChangedListener listener) -
reset
-
setCenter
-
setScale
-