MotionEvent.FlagWindowIsPartiallyObscured Field

Definition

Caution

This constant will be removed in the future version. Use Android.Views.MotionEventFlags enum directly instead of this field.

This flag indicates that the window that received this motion event is partly or wholly obscured by another visible window above it and the event did not directly pass through the obscured area.

[Android.Runtime.Register("FLAG_WINDOW_IS_PARTIALLY_OBSCURED", ApiSince=29)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.MotionEventFlags enum directly instead of this field.", true)]
public const Android.Views.MotionEventFlags FlagWindowIsPartiallyObscured = 2;
[<Android.Runtime.Register("FLAG_WINDOW_IS_PARTIALLY_OBSCURED", ApiSince=29)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.MotionEventFlags enum directly instead of this field.", true)>]
val mutable FlagWindowIsPartiallyObscured : Android.Views.MotionEventFlags

Field Value

Value = 2

Implements

Attributes

Remarks

This flag indicates that the window that received this motion event is partly or wholly obscured by another visible window above it and the event did not directly pass through the obscured area.

A security sensitive application can check this flag to identify situations in which a malicious application may have covered up part of its content for the purpose of misleading the user or hijacking touches. An appropriate response might be to drop the suspect touches or to take additional precautions to confirm the user's actual intent.

Unlike FLAG_WINDOW_IS_OBSCURED, this is only true if the window that received this event is obstructed in areas other than the touched location.

Java documentation for android.view.MotionEvent.FLAG_WINDOW_IS_PARTIALLY_OBSCURED.

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