Share via


DevicePolicyManager.GetAlwaysOnVpnLockdownWhitelist(ComponentName) Method

Definition

Called by device or profile owner to query the set of packages that are allowed to access the network directly when always-on VPN is in lockdown mode but not connected.

[Android.Runtime.Register("getAlwaysOnVpnLockdownWhitelist", "(Landroid/content/ComponentName;)Ljava/util/Set;", "GetGetAlwaysOnVpnLockdownWhitelist_Landroid_content_ComponentName_Handler", ApiSince=29)]
public virtual System.Collections.Generic.ICollection<string>? GetAlwaysOnVpnLockdownWhitelist (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getAlwaysOnVpnLockdownWhitelist", "(Landroid/content/ComponentName;)Ljava/util/Set;", "GetGetAlwaysOnVpnLockdownWhitelist_Landroid_content_ComponentName_Handler", ApiSince=29)>]
abstract member GetAlwaysOnVpnLockdownWhitelist : Android.Content.ComponentName -> System.Collections.Generic.ICollection<string>
override this.GetAlwaysOnVpnLockdownWhitelist : Android.Content.ComponentName -> System.Collections.Generic.ICollection<string>

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

Returns

Attributes

Remarks

Called by device or profile owner to query the set of packages that are allowed to access the network directly when always-on VPN is in lockdown mode but not connected. Returns null when always-on VPN is not active or not in lockdown mode.

Java documentation for android.app.admin.DevicePolicyManager.getAlwaysOnVpnLockdownWhitelist(android.content.ComponentName).

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