IWindowManager 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
應用程式用來與視窗管理器溝通的介面。
[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
- 屬性
- 實作
備註
應用程式用來與視窗管理器溝通的介面。
每個視窗管理器實例都綁定到一個 Display。 要取得與顯示器相關的資料 WindowManager ,請呼叫 Context#createWindowContext(Display, int, Bundle) 取得顯示器的 UI 上下文,然後呼叫 Context#getSystemService(String) 或 Context#getSystemService(Class) on UI 上下文。
在特定顯示器上顯示視窗最簡單的方式是建立一個 Presentation,自動取得該顯示器的 a WindowManager 和 上下文。
的 android.view.WindowManagerJava 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
欄位
| 名稱 | Description |
|---|---|
| PropertyActivityEmbeddingAllowSystemOverride |
應用程式層 |
| PropertyActivityEmbeddingSplitsEnabled |
應用程式可以指定一個應用程式層級 |
| PropertyCameraCompatAllowForceRotation |
應用程式層級 |
| PropertyCameraCompatAllowRefresh |
應用程式層級 |
| PropertyCameraCompatAllowSimulateRequestedOrientation |
應用程式層級 [PackageManager][android. |
| PropertyCameraCompatEnableRefreshViaPause |
|
| PropertyCompatAllowDisplayOrientationOverride |
|
| PropertyCompatAllowExcludeCaptionInsets |
|
| PropertyCompatAllowIgnoringOrientationRequestWhenLoopDetected |
|
| PropertyCompatAllowMinAspectRatioOverride |
|
| PropertyCompatAllowOrientationOverride |
應用程式層級 |
| PropertyCompatAllowResizeableActivityOverrides |
應用程式層級 |
| PropertyCompatAllowSandboxingViewBoundsApis |
|
| PropertyCompatAllowSmallCoverScreen |
應用程式或活動層級 |
| PropertyCompatAllowUserAspectRatioFullscreenOverride |
應用程式層級
|
| PropertyCompatAllowUserAspectRatioOverride |
應用程式層級
|
| PropertyCompatEnableFakeFocus |
|
| PropertyCompatIgnoreRequestedOrientation |
應用程式層級 |
| PropertySupportsMultiInstanceSystemUi |
應用程式宣告系統介面的活動或應用層級 |
屬性
| 名稱 | Description |
|---|---|
| CurrentWindowMetrics |
根據當前系統狀態回傳 。 |
| DefaultDisplay |
回傳這個 Display 實例會建立 IWindowManager 新視窗的 |
| Handle |
取得底層 Android 物件的 JNI 值。 (繼承來源 IJavaObject) |
| IsCrossWindowBlurEnabled |
回傳是否啟用跨視窗模糊。 |
| JniIdentityHashCode |
回傳包裹實例的 |
| JniManagedPeerState |
管理貴族的狀況。 (繼承來源 IJavaPeerable) |
| JniObjectReferenceControlBlock |
應用程式用來與視窗管理器溝通的介面。 (繼承來源 IJavaPeerable) |
| JniPeerMembers |
成員存取與召喚支援。 (繼承來源 IJavaPeerable) |
| MaximumWindowMetrics |
回傳應用程式在當前系統狀態下可能預期的最大 |
| PeerReference |
回傳JniObjectReference包裹後的 Java 物件實例。 (繼承來源 IJavaPeerable) |
方法
擴充方法
| 名稱 | Description |
|---|---|
| GetJniTypeName(IJavaPeerable) |
取得實例 |
| JavaAs<TResult>(IJavaPeerable) |
試著強制 |
| JavaCast<TResult>(IJavaObject) |
執行 Android 執行時檢查型別轉換。 |
| JavaCast<TResult>(IJavaObject) |
應用程式用來與視窗管理器溝通的介面。 |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
試著強制 |