IWindowManager.PropertyCompatEnableFakeFocus 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.
Application level android.content.pm.PackageManager.Property PackageManager
.Property
for an app to inform the system that the application can be opted-in or opted-out
from the compatibility treatment that enables sending a fake focus event for unfocused
resumed split screen activities.
[Android.Runtime.Register("PROPERTY_COMPAT_ENABLE_FAKE_FOCUS", ApiSince=34)]
public const string PropertyCompatEnableFakeFocus;
[<Android.Runtime.Register("PROPERTY_COMPAT_ENABLE_FAKE_FOCUS", ApiSince=34)>]
val mutable PropertyCompatEnableFakeFocus : string
Field Value
- Attributes
Remarks
Application level android.content.pm.PackageManager.Property PackageManager .Property
for an app to inform the system that the application can be opted-in or opted-out from the compatibility treatment that enables sending a fake focus event for unfocused resumed split screen activities. This is needed because some game engines wait to get focus before drawing the content of the app which isn't guaranteed by default in multi-window modes.
Device manufacturers can enable this treatment using their discretion on a per-device basis to improve display compatibility. The treatment also needs to be specifically enabled on a per-app basis afterwards. This can either be done by device manufacturers or developers.
With this property set to true
, the system will apply the treatment only if the device manufacturer had previously enabled it on the device. A fake focus event will be sent to the app after it is resumed only if the app is in split-screen.
Setting this property to false
informs the system that the activity must be opted-out from the compatibility treatment even if the device manufacturer has opted the app into the treatment.
If the property remains unset the system will apply the treatment only if it had previously been enabled both at the device and app level by the device manufacturer.
<b>Syntax:</b>
<application>
<property
android:name="android.window.PROPERTY_COMPAT_ENABLE_FAKE_FOCUS"
android:value="true|false"/>
</application>
Java documentation for android.view.WindowManager.PROPERTY_COMPAT_ENABLE_FAKE_FOCUS
.
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.