to top
Android APIs
public interface

WindowManager

implements ViewManager
android.view.WindowManager

Class Overview

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

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

Summary

Nested Classes
class WindowManager.BadTokenException Exception that is thrown when trying to add view whose WindowManager.LayoutParams token is invalid. 
class WindowManager.LayoutParams  
Public Methods
abstract Display getDefaultDisplay()
Use this method to get the default Display object.
abstract void removeViewImmediate(View view)
Special variation of removeView(View) that immediately invokes the given view hierarchy's View.onDetachedFromWindow() methods before returning.
[Expand]
Inherited Methods
From interface android.view.ViewManager

Public Methods

public abstract Display getDefaultDisplay ()

Since: API Level 1

Use this method to get the default Display object.

Returns
  • default Display object

public abstract void removeViewImmediate (View view)

Since: API Level 1

Special variation of removeView(View) that immediately invokes the given view hierarchy's View.onDetachedFromWindow() methods before returning. This is not for normal applications; using it correctly requires great care.

Parameters
view The view to be removed.