Udostępnij za pośrednictwem


DevicePolicyManager.GetGlobalPrivateDnsMode(ComponentName) Method

Definition

Returns the system-wide Private DNS mode.

[Android.Runtime.Register("getGlobalPrivateDnsMode", "(Landroid/content/ComponentName;)I", "GetGetGlobalPrivateDnsMode_Landroid_content_ComponentName_Handler", ApiSince=29)]
public virtual Android.App.Admin.PrivateDnsMode GetGlobalPrivateDnsMode (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getGlobalPrivateDnsMode", "(Landroid/content/ComponentName;)I", "GetGetGlobalPrivateDnsMode_Landroid_content_ComponentName_Handler", ApiSince=29)>]
abstract member GetGlobalPrivateDnsMode : Android.Content.ComponentName -> Android.App.Admin.PrivateDnsMode
override this.GetGlobalPrivateDnsMode : Android.Content.ComponentName -> Android.App.Admin.PrivateDnsMode

Parameters

admin
ComponentName

which DeviceAdminReceiver this request is associated with.

Returns

one of PRIVATE_DNS_MODE_OFF, PRIVATE_DNS_MODE_OPPORTUNISTIC, PRIVATE_DNS_MODE_PROVIDER_HOSTNAME or PRIVATE_DNS_MODE_UNKNOWN.

Attributes

Remarks

Returns the system-wide Private DNS mode.

Java documentation for android.app.admin.DevicePolicyManager.getGlobalPrivateDnsMode(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