DevicePolicyManager.IsAlwaysOnVpnLockdownEnabled(ComponentName) Method
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.
Called by device or profile owner to query whether current always-on VPN is configured in lockdown mode.
[Android.Runtime.Register("isAlwaysOnVpnLockdownEnabled", "(Landroid/content/ComponentName;)Z", "GetIsAlwaysOnVpnLockdownEnabled_Landroid_content_ComponentName_Handler", ApiSince=29)]
public virtual bool IsAlwaysOnVpnLockdownEnabled (Android.Content.ComponentName admin);
[<Android.Runtime.Register("isAlwaysOnVpnLockdownEnabled", "(Landroid/content/ComponentName;)Z", "GetIsAlwaysOnVpnLockdownEnabled_Landroid_content_ComponentName_Handler", ApiSince=29)>]
abstract member IsAlwaysOnVpnLockdownEnabled : Android.Content.ComponentName -> bool
override this.IsAlwaysOnVpnLockdownEnabled : Android.Content.ComponentName -> bool
Parameters
- admin
- ComponentName
Which DeviceAdminReceiver
this request is associated with.
Returns
- Attributes
Remarks
Called by device or profile owner to query whether current always-on VPN is configured in lockdown mode. Returns false
when no always-on configuration is set.
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.