Share via


NetworkSecurityPolicy.Instance Property

Definition

Gets the policy for this process.

public static Android.Security.NetworkSecurityPolicy? Instance { [Android.Runtime.Register("getInstance", "()Landroid/security/NetworkSecurityPolicy;", "", ApiSince=23)] get; }
[<get: Android.Runtime.Register("getInstance", "()Landroid/security/NetworkSecurityPolicy;", "", ApiSince=23)>]
static member Instance : Android.Security.NetworkSecurityPolicy

Property Value

Attributes

Remarks

Gets the policy for this process.

It's fine to cache this reference. Any changes to the policy will be immediately visible through the reference.

Java documentation for android.security.NetworkSecurityPolicy.getInstance().

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