Compartilhar via


DevicePolicyManager.GetAutoTimeZoneEnabled(ComponentName) Method

Definition

Returns true if auto time zone is enabled on the device.

[Android.Runtime.Register("getAutoTimeZoneEnabled", "(Landroid/content/ComponentName;)Z", "GetGetAutoTimeZoneEnabled_Landroid_content_ComponentName_Handler", ApiSince=30)]
public virtual bool GetAutoTimeZoneEnabled (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getAutoTimeZoneEnabled", "(Landroid/content/ComponentName;)Z", "GetGetAutoTimeZoneEnabled_Landroid_content_ComponentName_Handler", ApiSince=30)>]
abstract member GetAutoTimeZoneEnabled : Android.Content.ComponentName -> bool
override this.GetAutoTimeZoneEnabled : Android.Content.ComponentName -> bool

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with. Null if the caller is not a device admin.

Returns

true if auto time zone is enabled on the device.

Attributes

Remarks

Returns true if auto time zone is enabled on the device.

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