Share via


MotionEvent.FlagWindowIsObscured 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 directly passed through the obscured area.

[Android.Runtime.Register("FLAG_WINDOW_IS_OBSCURED")]
[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 FlagWindowIsObscured = 1;
[<Android.Runtime.Register("FLAG_WINDOW_IS_OBSCURED")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.MotionEventFlags enum directly instead of this field.", true)>]
val mutable FlagWindowIsObscured : Android.Views.MotionEventFlags

Field Value

Value = 1

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 directly passed 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.

Java documentation for android.view.MotionEvent.FLAG_WINDOW_IS_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