right(forIdentifier:completion:)
Fetches a previously stored right from the shared right store.
Declaration
func right(forIdentifier identifier: String, completion handler: @escaping @Sendable (LAPersistedRight?, (any Error)?) -> Void)func right(forIdentifier identifier: String) async throws -> LAPersistedRightParameters
- identifier:
The unique identifier of the right.
- handler:
A completion handler to call when the right access completes.
rightThe right that matches the
identifieryou supply.errorAn error object that indicates why the
rightparameter isnil, ornilif the right parameter is non-nil.