One Logo Pool Ball
ManagedSettings · IOS API REFERENCE

DateAndTimeSettings

struct · iOS 15.0+ · SDK 27.1

struct DateAndTimeSettings

Constraints on the device's date and time settings. Use `DateAndTimeSettings` to prevent the user from changing their device's date and time.

Members (3)

get · iOS 15.0+

requireAutomaticDateAndTime

TypeScript
static get requireAutomaticDateAndTime(): SettingMetadata<boolean>
Swift declaration
static let requireAutomaticDateAndTime: SettingMetadata<Bool>

The metadata for the constraint that configures the date and time setting. Use `requireAutomaticDateAndTime` to access the metadata for ``requireAutomaticDateAndTime-swift.property``. The default value is `false`.

get · iOS 15.0+

requireAutomaticDateAndTime

TypeScript
get requireAutomaticDateAndTime66734(): (boolean) | null
Swift declaration
var requireAutomaticDateAndTime: Bool? { get set }

A Boolean value that indicates whether to prevent the user from changing their device's date and time. If your app doesn't configure this setting, the value is `nil`.

set · iOS 15.0+

requireAutomaticDateAndTime

TypeScript
set requireAutomaticDateAndTime66734(value: (boolean) | null)
Swift declaration
var requireAutomaticDateAndTime: Bool? { get set }

A Boolean value that indicates whether to prevent the user from changing their device's date and time. If your app doesn't configure this setting, the value is `nil`.

Skipped declarations

No declarations were skipped in this snapshot.

All ManagedSettings types →