AccessibilityService.MagnificationController.Scale Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the current magnification scale.
public float Scale { [Android.Runtime.Register("getScale", "()F", "", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getScale", "()F", "", ApiSince=24)>]
member this.Scale : single
Property Value
the current magnification scale
- Attributes
Remarks
Returns the current magnification scale.
<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 return a default value of 1.0f
.
<strong>Note:</strong> This legacy API gets the scale of full-screen magnification. To get the scale of the current controlling magnifier, use #getMagnificationConfig
instead.
This member is deprecated. Use #getMagnificationConfig()
instead
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.