IWindowManager Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The interface that apps use to talk to the window manager.
[Android.Runtime.Register("android/view/WindowManager", "", "Android.Views.IWindowManagerInvoker")]
public interface IWindowManager : Android.Views.IViewManager, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/view/WindowManager", "", "Android.Views.IWindowManagerInvoker")>]
type IWindowManager = interface
interface IViewManager
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Attributes
- Implements
Remarks
The interface that apps use to talk to the window manager.
Each window manager instance is bound to a Display
. To obtain the WindowManager
associated with a display, call Context#createWindowContext(Display, int, Bundle)
to get the display's UI context, then call Context#getSystemService(String)
or Context#getSystemService(Class)
on the UI context.
The simplest way to show a window on a particular display is to create a Presentation
, which automatically obtains a WindowManager
and context for the display.
Java documentation for android.view.WindowManager
.
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.
Fields
PropertyActivityEmbeddingAllowSystemOverride |
Application-level
|
PropertyActivityEmbeddingSplitsEnabled |
Application level |
PropertyCameraCompatAllowForceRotation |
Application level |
PropertyCameraCompatAllowRefresh |
Application level |
PropertyCameraCompatEnableRefreshViaPause |
Application level |
PropertyCompatAllowDisplayOrientationOverride |
Application level |
PropertyCompatAllowOrientationOverride |
Application level |
PropertyCompatAllowSandboxingViewBoundsApis |
Application level |
PropertyCompatEnableFakeFocus |
Application level |
PropertyCompatIgnoreRequestedOrientation |
Application level |
Properties
CurrentWindowMetrics |
Returns the |
DefaultDisplay |
Returns the Display upon which this IWindowManager instance will create new windows. |
Handle |
Gets the JNI value of the underlying Android object. (Inherited from IJavaObject) |
IsCrossWindowBlurEnabled |
Returns whether cross-window blur is currently enabled. |
JniIdentityHashCode |
Returns the value of |
JniManagedPeerState |
State of the managed peer. (Inherited from IJavaPeerable) |
JniPeerMembers |
Member access and invocation support. (Inherited from IJavaPeerable) |
MaximumWindowMetrics |
Returns the largest |
PeerReference |
Returns a JniObjectReference of the wrapped Java object instance. (Inherited from IJavaPeerable) |
Methods
AddCrossWindowBlurEnabledListener(IConsumer) |
Adds a listener, which will be called when cross-window blurs are enabled/disabled at runtime. |
AddCrossWindowBlurEnabledListener(IExecutor, IConsumer) |
Adds a listener, which will be called when cross-window blurs are enabled/disabled at runtime. |
AddProposedRotationListener(IExecutor, IIntConsumer) |
Adds a listener to start monitoring the proposed rotation of the current associated context. |
AddView(View, ViewGroup+LayoutParams) |
Assign the passed LayoutParams to the passed View and add the view to the window. (Inherited from IViewManager) |
Disposed() |
Called when the instance has been disposed. (Inherited from IJavaPeerable) |
DisposeUnlessReferenced() |
If there are no outstanding references to this instance, then
calls |
Finalized() |
Called when the instance has been finalized. (Inherited from IJavaPeerable) |
RemoveCrossWindowBlurEnabledListener(IConsumer) |
Removes a listener, previously added with |
RemoveProposedRotationListener(IIntConsumer) |
Removes a listener, previously added with |
RemoveView(View) | (Inherited from IViewManager) |
RemoveViewImmediate(View) |
Special variation of |
SetJniIdentityHashCode(Int32) |
Set the value returned by |
SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from IJavaPeerable) |
SetPeerReference(JniObjectReference) |
Set the value returned by |
UnregisterFromRuntime() |
Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations. (Inherited from IJavaPeerable) |
UpdateViewLayout(View, ViewGroup+LayoutParams) | (Inherited from IViewManager) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |