requestPlaybackRestrictionsAuthorization(_:)
Determines whether this item is subject to parental restrictions, and, if so, prompts the user to enter the restrictions passcode.
Declaration
func requestPlaybackRestrictionsAuthorization(_ completion: @escaping @Sendable (Bool, (any Error)?) -> Void)func requestPlaybackRestrictionsAuthorization() async throws -> BoolParameters
- completion:
A callback the system invokes after it makes a determination of parental restrictions.
isAuthorizedA Boolean value that indicates whether the system authorizes the app to play an item.
errorAn optional error that contains error details if the system encountered an error.