Contents

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 -> LAPersistedRight

Parameters

  • identifier:

    The unique identifier of the right.

  • handler:

    A completion handler to call when the right access completes.

    right

    The right that matches the identifier you supply.

    error

    An error object that indicates why the right parameter is nil, or nil if the right parameter is non-nil.

Discussion

See Also

Accessing rights