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 voidaddListener(AccessibilityService.MagnificationController.OnMagnificationChangedListener listener)protected voidaddListener(AccessibilityService.MagnificationController.OnMagnificationChangedListener listener, Handler handler)protected floatgetCenterX()protected floatgetCenterY()protected RegiongetMagnificationRegion()protected floatgetScale()protected booleanremoveListener(AccessibilityService.MagnificationController.OnMagnificationChangedListener listener)protected booleanreset(boolean animate)protected booleansetCenter(float centerX, float centerY, boolean animate)protected booleansetScale(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
-