Android Guides | Samples

Android.Views.IWindowManager

The interface that apps use to talk to the window manager.

See Also: IWindowManager

Syntax

[Android.Runtime.Register("android/view/WindowManager", "", "Android.Views.IWindowManagerInvoker")]
public interface IWindowManager : IViewManager, IDisposable

Remarks

The interface that apps use to talk to the window manager.

Use Context.getSystemService(Context.WINDOW_SERVICE) to get one of these.

Each window manager instance is bound to a particular Display. To obtain a IWindowManager for a different display, use Context.CreateDisplayContext(Display) to obtain a Context for that display, then use Context.getSystemService(Context.WINDOW_SERVICE) to get the WindowManager.

The simplest way to show a window on another display is to create a Presentation. The presentation will automatically obtain a IWindowManager and Context for that display.

See Also

[Android Documentation]

Requirements

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

The members of Android.Views.IWindowManager are listed below.

Public Properties

[read-only]
DefaultDisplayDisplay. Returns the Display upon which this IWindowManager instance will create new windows.

Public Methods

RemoveViewImmediate(View)
Special variation of IViewManager.RemoveView(View) that immediately invokes the given view hierarchy's View.OnDetachedFromWindow methods before returning.