Constraints on a user's App Store settings.
Use `AppStoreSettings` to manage a user's App Store settings.
You can set a maximum age rating for apps, deny in-app purchases, and require passwords for purchases.
Members (9)
get · iOS 15.0+
denyInAppPurchases
TypeScript
static get denyInAppPurchases(): SettingMetadata<boolean>
Swift declaration
static let denyInAppPurchases: SettingMetadata<Bool>
The metadata associated with the setting to deny in-app purchases.
Use `denyInAppPurchases` to access metadata about ``denyInAppPurchases-swift.property``. The default value is `false`.
get · iOS 15.0+
denyInAppPurchases
TypeScript
get denyInAppPurchases8418(): (boolean) | null
Swift declaration
var denyInAppPurchases: Bool? { get set }
A Boolean value that indicates whether to deny the user permission to make in-app purchases.
If your app doesn't constrain this setting, the value is `nil`.
set · iOS 15.0+
denyInAppPurchases
TypeScript
set denyInAppPurchases8418(value: (boolean) | null)
Swift declaration
var denyInAppPurchases: Bool? { get set }
A Boolean value that indicates whether to deny the user permission to make in-app purchases.
If your app doesn't constrain this setting, the value is `nil`.
get · iOS 15.0+
maximumRating
TypeScript
static get maximumRating(): BoundedSettingMetadata<number>
Swift declaration
static let maximumRating: BoundedSettingMetadata<Int>
The metadata associated with the maximum app rating setting.
Use `maximumRating` to access the metadata for ``maximumRating-swift.property``.
The default value is `1000` and the bounds are `0...2000`.
get · iOS 15.0+
maximumRating
TypeScript
get maximumRating3053(): (number) | null
Swift declaration
var maximumRating: Int? { get set }
The maximum app rating the user can download.
The value is `nil` if your app doesn't constrain this setting.
The following list provides U.S. rating descriptions for the levels:
- `1000` - All
- `600` - 17+
- `300` - 12+
- `200` - 9+
- `100` - 4+
- `0` - None
set · iOS 15.0+
maximumRating
TypeScript
set maximumRating3053(value: (number) | null)
Swift declaration
var maximumRating: Int? { get set }
The maximum app rating the user can download.
The value is `nil` if your app doesn't constrain this setting.
The following list provides U.S. rating descriptions for the levels:
- `1000` - All
- `600` - 17+
- `300` - 12+
- `200` - 9+
- `100` - 4+
- `0` - None
get · iOS 15.0+
requirePasswordForPurchases
TypeScript
static get requirePasswordForPurchases(): SettingMetadata<boolean>
Swift declaration
static let requirePasswordForPurchases: SettingMetadata<Bool>
The metadata associated with the setting that requires a password for App Store purchases.
Use `requirePasswordForPurchases` to access metadata for the ``requirePasswordForPurchases-swift.property`` setting.
get · iOS 15.0+
requirePasswordForPurchases
TypeScript
get requirePasswordForPurchases85277(): (boolean) | null
Swift declaration
var requirePasswordForPurchases: Bool? { get set }
A Boolean value that indicates whether to require the user's password to make App Store transactions.
Specify `true` to require the user's password for each transaction. The value is `nil` if your app doesn't configure this setting.
set · iOS 15.0+
requirePasswordForPurchases
TypeScript
set requirePasswordForPurchases85277(value: (boolean) | null)
Swift declaration
var requirePasswordForPurchases: Bool? { get set }
A Boolean value that indicates whether to require the user's password to make App Store transactions.
Specify `true` to require the user's password for each transaction. The value is `nil` if your app doesn't configure this setting.