Share via


DevicePolicyManager.GetAutoTimeEnabled(ComponentName) Method

Definition

Returns true if auto time is enabled on the device.

[Android.Runtime.Register("getAutoTimeEnabled", "(Landroid/content/ComponentName;)Z", "GetGetAutoTimeEnabled_Landroid_content_ComponentName_Handler", ApiSince=30)]
public virtual bool GetAutoTimeEnabled (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getAutoTimeEnabled", "(Landroid/content/ComponentName;)Z", "GetGetAutoTimeEnabled_Landroid_content_ComponentName_Handler", ApiSince=30)>]
abstract member GetAutoTimeEnabled : Android.Content.ComponentName -> bool
override this.GetAutoTimeEnabled : 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 is enabled on the device.

Attributes

Remarks

Returns true if auto time is enabled on the device.

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