WindowManager.PropertyCompatAllowSandboxingViewBoundsApis Field
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.
Caution
Use 'Android.Views.IWindowManager.PropertyCompatAllowSandboxingViewBoundsApis'. This class will be removed in a future release.
Application level android.content.pm.PackageManager.Property PackageManager
.Property
for an app to inform the system that it needs to be opted-out from the
compatibility treatment that sandboxes android.view.View
API.
[Android.Runtime.Register("PROPERTY_COMPAT_ALLOW_SANDBOXING_VIEW_BOUNDS_APIS", ApiSince=34)]
[System.Obsolete("Use 'Android.Views.IWindowManager.PropertyCompatAllowSandboxingViewBoundsApis'. This class will be removed in a future release.")]
public const string PropertyCompatAllowSandboxingViewBoundsApis;
[<Android.Runtime.Register("PROPERTY_COMPAT_ALLOW_SANDBOXING_VIEW_BOUNDS_APIS", ApiSince=34)>]
[<System.Obsolete("Use 'Android.Views.IWindowManager.PropertyCompatAllowSandboxingViewBoundsApis'. This class will be removed in a future release.")>]
val mutable PropertyCompatAllowSandboxingViewBoundsApis : string
Field Value
- Attributes
Remarks
Application level android.content.pm.PackageManager.Property PackageManager .Property
for an app to inform the system that it needs to be opted-out from the compatibility treatment that sandboxes android.view.View
API.
The treatment can be enabled by device manufacturers for applications which misuse android.view.View
APIs by expecting that android.view.View#getLocationOnScreen
, android.view.View#getBoundsOnScreen
, android.view.View#getWindowVisibleDisplayFrame
, android.view.View#getWindowDisplayFrame
return coordinates as if an activity is positioned in the top-left corner of the screen, with left coordinate equal to 0. This may not be the case for applications in multi-window and in letterbox modes.
Setting this property to false
informs the system that the application must be opted-out from the "Sandbox android.view.View
API to Activity bounds" treatment even if the device manufacturer has opted the app into the treatment.
Not setting this property at all, or setting this property to true
has no effect.
<b>Syntax:</b>
<application>
<property
android:name="android.window.PROPERTY_COMPAT_ALLOW_SANDBOXING_VIEW_BOUNDS_APIS"
android:value="false"/>
</application>
Java documentation for android.view.WindowManager.PROPERTY_COMPAT_ALLOW_SANDBOXING_VIEW_BOUNDS_APIS
.
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.