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
All Methods Instance Methods Concrete Methods 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)
-
-
-
Method Detail
-
addListener
@Implementation protected void addListener(AccessibilityService.MagnificationController.OnMagnificationChangedListener listener, Handler handler)
-
addListener
@Implementation protected void addListener(AccessibilityService.MagnificationController.OnMagnificationChangedListener listener)
-
getCenterX
@Implementation protected float getCenterX()
-
getCenterY
@Implementation protected float getCenterY()
-
getMagnificationRegion
@Implementation protected Region getMagnificationRegion()
-
getScale
@Implementation protected float getScale()
-
removeListener
@Implementation protected boolean removeListener(AccessibilityService.MagnificationController.OnMagnificationChangedListener listener)
-
reset
@Implementation protected boolean reset(boolean animate)
-
setCenter
@Implementation protected boolean setCenter(float centerX, float centerY, boolean animate)
-
setScale
@Implementation protected boolean setScale(float scale, boolean animate)
-
-