次の方法で共有


AccessibilityService.MagnificationController.SetMagnificationConfig Method

Definition

Sets the MagnificationConfig.

[Android.Runtime.Register("setMagnificationConfig", "(Landroid/accessibilityservice/MagnificationConfig;Z)Z", "", ApiSince=33)]
public bool SetMagnificationConfig (Android.AccessibilityServices.MagnificationConfig config, bool animate);
[<Android.Runtime.Register("setMagnificationConfig", "(Landroid/accessibilityservice/MagnificationConfig;Z)Z", "", ApiSince=33)>]
member this.SetMagnificationConfig : Android.AccessibilityServices.MagnificationConfig * bool -> bool

Parameters

config
MagnificationConfig

the magnification config

animate
Boolean

true to animate from the current spec or false to set the spec immediately

Returns

true on success, false on failure

Attributes

Remarks

Sets the MagnificationConfig. The service controls the magnification by setting the config.

<strong>Note:</strong> If the service is not yet connected (e.g. AccessibilityService#onServiceConnected() has not yet been called) or the service has been disconnected, this method will have no effect and return false.

Java documentation for android.accessibilityservice.AccessibilityService.MagnificationController.setMagnificationConfig(android.accessibilityservice.MagnificationConfig, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to