DevicePolicyManager.AutoTimeZonePolicy Property
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.
Returns auto time zone policy's current state. -or- Called by a device owner, a profile owner for the primary user or a profile owner of an organization-owned managed profile to turn auto time zone on and off.
public virtual Android.App.Admin.DevicePolicyManagerAutoTimeZoneStatus AutoTimeZonePolicy { [Android.Runtime.Register("getAutoTimeZonePolicy", "()I", "GetGetAutoTimeZonePolicyHandler", ApiSince=36)] get; [Android.Runtime.Register("setAutoTimeZonePolicy", "(I)V", "GetSetAutoTimeZonePolicy_IHandler", ApiSince=36)] [Android.Runtime.RequiresPermission("android.permission.SET_TIME_ZONE")] set; }
[<get: Android.Runtime.Register("getAutoTimeZonePolicy", "()I", "GetGetAutoTimeZonePolicyHandler", ApiSince=36)>]
[<set: Android.Runtime.Register("setAutoTimeZonePolicy", "(I)V", "GetSetAutoTimeZonePolicy_IHandler", ApiSince=36)>]
[<set: Android.Runtime.RequiresPermission("android.permission.SET_TIME_ZONE")>]
member this.AutoTimeZonePolicy : Android.App.Admin.DevicePolicyManagerAutoTimeZoneStatus with get, set
Property Value
One of #AUTO_TIME_ZONE_ENABLED
if enabled, #AUTO_TIME_ZONE_DISABLED
if disabled and #AUTO_TIME_ZONE_NOT_CONTROLLED_BY_POLICY
if the state is not
controlled by policy.
- Attributes
Remarks
Property getter documentation:
Returns auto time zone policy's current state.
Java documentation for android.app.admin.DevicePolicyManager.getAutoTimeZonePolicy()
.
Property setter documentation:
Called by a device owner, a profile owner for the primary user or a profile owner of an organization-owned managed profile to turn auto time zone on and off.
Callers are recommended to use UserManager#DISALLOW_CONFIG_DATE_TIME
to prevent the user from changing this setting, that way no user will be able set the date and time zone.
Java documentation for android.app.admin.DevicePolicyManager.setAutoTimeZonePolicy(int)
.
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.