Compartir a través de


PackageManager.PropertySelfCertifiedNetworkCapabilities Field

Definition

<application> level android.content.pm.PackageManager.Property tag specifying the XML resource ID containing the declaration of the self-certified network capabilities used by the application.

[Android.Runtime.Register("PROPERTY_SELF_CERTIFIED_NETWORK_CAPABILITIES", ApiSince=34)]
public const string PropertySelfCertifiedNetworkCapabilities;
[<Android.Runtime.Register("PROPERTY_SELF_CERTIFIED_NETWORK_CAPABILITIES", ApiSince=34)>]
val mutable PropertySelfCertifiedNetworkCapabilities : string

Field Value

Attributes

Remarks

&lt;application&gt; level android.content.pm.PackageManager.Property tag specifying the XML resource ID containing the declaration of the self-certified network capabilities used by the application.

Starting from Android 14, usage of some network capabilities in android.net.ConnectivityManager#requestNetwork require the application to declare its usage of that particular capability in this resource. Only some capabilities require a declaration. Please look up the specific capability you want to use in android.net.NetworkCapabilities to see if it needs declaration in this property.

For example: &lt;application&gt; &lt;property android:name="android.net.PROPERTY_SELF_CERTIFIED_NETWORK_CAPABILITIES" android:resource="

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

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