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
Constructors Constructor Description ShadowMagnificationController()
-
Method Summary
Modifier and Type Method Description protected void
addListener(AccessibilityService.MagnificationController.OnMagnificationChangedListener listener)
protected void
addListener(AccessibilityService.MagnificationController.OnMagnificationChangedListener listener, Handler handler)
protected float
getCenterX()
protected float
getCenterY()
protected Region
getMagnificationRegion()
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
-