init(account:appleItemID:alternativeDistributionPackage:isUpdate:appShareURL:requestAgeException:)
Initializes an install metadata object with the given app information and exception request indicator.
Declaration
init(account: String, appleItemID: AppleItemID, alternativeDistributionPackage: URL, isUpdate: Bool, appShareURL: URL?, requestAgeException: Bool = false)Mentioned in
Discussion
If the identifier refers to an app that has an age rating beyond the maximum allowed for the device (see maximumAllowedAgeRating), pass true for the requestAgeException argument.
If your app sets the requestAgeException argument to true when it’s not needed, the framework throws MarketplaceKitError.ageRatingExceptionNotNeeded. Alternatively, if your app fails to set the requestAgeException argument to true when it is needed, the framework throws MarketplaceKitError.cancelled.