次の方法で共有


PackageManager.MatchDirectBootAuto Field

Definition

Querying flag: automatically match components based on their Direct Boot awareness and the current user state.

[Android.Runtime.Register("MATCH_DIRECT_BOOT_AUTO", ApiSince=29)]
public const int MatchDirectBootAuto = 268435456;
[<Android.Runtime.Register("MATCH_DIRECT_BOOT_AUTO", ApiSince=29)>]
val mutable MatchDirectBootAuto : int

Field Value

Value = 268435456
Attributes

Remarks

Querying flag: automatically match components based on their Direct Boot awareness and the current user state.

Since the default behavior is to automatically apply the current user state, this is effectively a sentinel value that doesn't change the output of any queries based on its presence or absence.

Instead, this value can be useful in conjunction with android.os.StrictMode.VmPolicy.Builder#detectImplicitDirectBoot() to detect when a caller is relying on implicit automatic matching, instead of confirming the explicit behavior they want, using a combination of these flags: <ul> <li>#MATCH_DIRECT_BOOT_AWARE<li>#MATCH_DIRECT_BOOT_UNAWARE<li>#MATCH_DIRECT_BOOT_AUTO</ul>

Java documentation for android.content.pm.PackageManager.MATCH_DIRECT_BOOT_AUTO.

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.

Applies to