appStore
TypeScriptget appStore(): AppStoreSettingsSwift declarationvar appStore: AppStoreSettingsSettings that affect the App Store.
class · iOS 15.0+ · SDK 27.1
class ManagedSettingsStoreA data store that applies settings to the current user or device. The Managed Settings data store groups settings according to function. Each group contains relevant data about its associated settings, for example, a default value and minimum and maximum possible values. ### Configure Settings Use the settings objects to inspect your application's current configurations as well as apply new configurations. Changing the value of a setting to `nil` deletes your app's configuration for that setting from the device. The system doesn't guarantee that the settings you specify govern the device's behavior. The system is responsible for determining its effective state based on all the settings it receives. ### Examine Effective Settings In a few cases, you can also access the effective settings. For example, a media app can access the effective rating settings to filter the content it offers, even though it doesn't provide configurations for these or any other settings. Subscribe to ``ManagedSettingsStore/$effectiveMaximumTVShowRating`` or ``ManagedSettingsStore/$effectiveMaximumMovieRating`` to determine what TV shows or movies to offer.
get appStore(): AppStoreSettingsSwift declarationvar appStore: AppStoreSettingsSettings that affect the App Store.
set appStore(value: AppStoreSettings)Swift declarationvar appStore: AppStoreSettingsSettings that affect the App Store.
deleteStore(): voidSwift declarationfunc deleteStore()Deletes this store
clearAllSettings(): voidSwift declarationfunc clearAllSettings()Clears all settings for this store.
get gameCenter(): GameCenterSettingsSwift declarationvar gameCenter: GameCenterSettingsSettings that affect Game Center.
set gameCenter(value: GameCenterSettings)Swift declarationvar gameCenter: GameCenterSettingsSettings that affect Game Center.
get webContent(): WebContentSettingsSwift declarationvar webContent: WebContentSettingsSettings that affect web content.
set webContent(value: WebContentSettings)Swift declarationvar webContent: WebContentSettingsSettings that affect web content.
get application(): ApplicationSettingsSwift declarationvar application: ApplicationSettingsSettings that affect applications.
set application(value: ApplicationSettings)Swift declarationvar application: ApplicationSettingsSettings that affect applications.
get dateAndTime(): DateAndTimeSettingsSwift declarationvar dateAndTime: DateAndTimeSettingsSettings that affect the date and time.
set dateAndTime(value: DateAndTimeSettings)Swift declarationvar dateAndTime: DateAndTimeSettingsSettings that affect the date and time.
static deleteStores(storeNames: Array<ManagedSettingsStore_Name>): voidSwift declarationstatic func deleteStores(_ storeNames: Set<ManagedSettingsStore.Name>)Deletes the given stores configured by your app if they exist - Parameters: - storeNames: The names of the stores to delete
get effectiveMaximumMovieRating(): numberSwift declaration@Published<Int> var effectiveMaximumMovieRating: Int { get }The movie rating constraint that is active on this device. An authorized app can use the Family Controls framework to apply a ``MediaSettings/maximumMovieRating-swift.property`` to the device. If no `maximumMovieRating` settings are active, then the value of this property is the default value of ``MediaSettings/maximumMovieRating-swift.type.property``. The system publishes changes dynamically.
get $effectiveMaximumMovieRating(): _Combine_Published_Publisher<number>Swift declarationvar $effectiveMaximumMovieRating: Published<Int>.Publisher { get }get effectiveDenyExplicitContent(): booleanSwift declaration@Published<Bool> var effectiveDenyExplicitContent: Bool { get }The deny explicit content constraint that is active on this device. An authorized app can query whether or not explicit content is allowed on the device.
get effectiveMaximumTVShowRating(): numberSwift declaration@Published<Int> var effectiveMaximumTVShowRating: Int { get }The TV rating constraint that is active on this device. An authorized app can use the Family Controls framework to apply a ``MediaSettings/maximumTVShowRating-swift.property`` to the device. If no `maximumTVShowRating` settings are active, then the value of this property is the default value of ``MediaSettings/maximumTVShowRating-swift.type.property``. The system publishes changes dynamically.
get $effectiveDenyExplicitContent(): _Combine_Published_Publisher<boolean>Swift declarationvar $effectiveDenyExplicitContent: Published<Bool>.Publisher { get }get $effectiveMaximumTVShowRating(): _Combine_Published_Publisher<number>Swift declarationvar $effectiveMaximumTVShowRating: Published<Int>.Publisher { get }get siri(): SiriSettingsSwift declarationvar siri: SiriSettingsSettings that affect Siri.
set siri(value: SiriSettings)Swift declarationvar siri: SiriSettingsSettings that affect Siri.
get media(): MediaSettingsSwift declarationvar media: MediaSettingsSettings that affect media.
set media(value: MediaSettings)Swift declarationvar media: MediaSettingsSettings that affect media.
static initNamed(name: ManagedSettingsStore_Name): ManagedSettingsStoreSwift declarationconvenience init(named name: ManagedSettingsStore.Name)Creates a new instance of a store with a custom name. - Parameters: - name: A unique name for the store. Each store contains the settings that the client app applies. If the client app doesn't explicitly apply a setting, the default value is `nil`. Using `.default` is akin to calling `ManagedSettingsStore()`.
get safari(): SafariSettingsSwift declarationvar safari: SafariSettingsSettings that affect Safari's search results and cookie policies.
set safari(value: SafariSettings)Swift declarationvar safari: SafariSettingsSettings that affect Safari's search results and cookie policies.
get shield(): ShieldSettingsSwift declarationvar shield: ShieldSettingsSettings that affect what activities the system covers with a shielding view on this device.
set shield(value: ShieldSettings)Swift declarationvar shield: ShieldSettingsSettings that affect what activities the system covers with a shielding view on this device.
static get stores(): Array<ManagedSettingsStore_Name>Swift declarationstatic var stores: Set<ManagedSettingsStore.Name> { get }Get the name of all the stores configured by your app
get account(): AccountSettingsSwift declarationvar account: AccountSettingsSettings that affect accounts.
set account(value: AccountSettings)Swift declarationvar account: AccountSettingsSettings that affect accounts.
static refresh(tokens: Array<Token<Application>>): { $ret: null; $out: { "tokens": Array<Token<Application>> } }Swift declarationstatic func refresh(_ tokens: inout [ApplicationToken]) throwsRefresh expired ApplicationTokens - Parameters: - tokens: The application tokens to refresh
Omit the output parameters from the call. The result contains $ret and $out, with tokens inside $out.
static refresh97087(tokens: Array<Token<ActivityCategory>>): { $ret: null; $out: { "tokens": Array<Token<ActivityCategory>> } }Swift declarationstatic func refresh(_ tokens: inout [ActivityCategoryToken]) throwsRefresh expired ActivityCategoryTokens - Parameters: - tokens: The activity category tokens to refresh
Omit the output parameters from the call. The result contains $ret and $out, with tokens inside $out.
static refresh85832(tokens: Array<Token<WebDomain>>): { $ret: null; $out: { "tokens": Array<Token<WebDomain>> } }Swift declarationstatic func refresh(_ tokens: inout [WebDomainToken]) throwsRefresh expired WebDomainTokens - Parameters: - tokens: The web domain tokens to refresh
Omit the output parameters from the call. The result contains $ret and $out, with tokens inside $out.
get cellular(): CellularSettingsSwift declarationvar cellular: CellularSettingsSettings that affect cellular networking.
set cellular(value: CellularSettings)Swift declarationvar cellular: CellularSettingsSettings that affect cellular networking.
get isActive(): booleanSwift declarationvar isActive: Bool { get set }Property that controls whether the store is active An inactive store is not included in the effective settings calculation. Defaults to true.
set isActive(value: boolean)Swift declarationvar isActive: Bool { get set }Property that controls whether the store is active An inactive store is not included in the effective settings calculation. Defaults to true.
get passcode(): PasscodeSettingsSwift declarationvar passcode: PasscodeSettingsSettings that affect the device passcode.
set passcode(value: PasscodeSettings)Swift declarationvar passcode: PasscodeSettingsSettings that affect the device passcode.
static init(): ManagedSettingsStoreSwift declarationinit()Creates a new instance of a store. Each store contains the settings that the client app applies. If the client app doesn't explicitly apply a setting, the default value is `nil`.
No declarations were skipped in this snapshot.