Android Guides | Samples

Android.Views.WindowManagerLayoutParams.MayUseInputMethod Method

Given a particular set of window manager flags, determine whether such a window may be a target for an input method when it has focus.

Syntax

[Android.Runtime.Register("mayUseInputMethod", "(I)Z", "")]
public static Boolean MayUseInputMethod ([Android.Runtime.GeneratedEnum] WindowManagerFlags flags)

Parameters

flags
The current window manager flags.

Remarks

Given a particular set of window manager flags, determine whether such a window may be a target for an input method when it has focus. In particular, this checks the WindowManagerLayoutParams.FLAG_NOT_FOCUSABLE and WindowManagerLayoutParams.FLAG_ALT_FOCUSABLE_IM flags and returns true if the combination of the two corresponds to a window that needs to be behind the input method so that the user can type into it.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3