Partager via


InputManager.MaximumObscuringOpacityForTouch Property

Definition

Returns the maximum allowed obscuring opacity per UID to propagate touches.

public float MaximumObscuringOpacityForTouch { [Android.Runtime.Register("getMaximumObscuringOpacityForTouch", "()F", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getMaximumObscuringOpacityForTouch", "()F", "", ApiSince=31)>]
member this.MaximumObscuringOpacityForTouch : single

Property Value

Attributes

Remarks

Returns the maximum allowed obscuring opacity per UID to propagate touches.

For certain window types (eg. LayoutParams#TYPE_APPLICATION_OVERLAY), the decision of honoring LayoutParams#FLAG_NOT_TOUCHABLE or not depends on the combined obscuring opacity of the windows above the touch-consuming window, per UID. Check documentation of LayoutParams#FLAG_NOT_TOUCHABLE for more details.

The value returned is between 0 (inclusive) and 1 (inclusive).

Java documentation for android.hardware.input.InputManager.getMaximumObscuringOpacityForTouch().

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