saveRight(_:identifier:completion:)
Saves a right to a persistent right store.
Declaration
func saveRight(_ right: LARight, identifier: String, completion handler: @escaping @Sendable (LAPersistedRight?, (any Error)?) -> Void)func saveRight(_ right: LARight, identifier: String) async throws -> LAPersistedRightParameters
- right:
The right to store.
- identifier:
A unique identifier for the right.
- handler:
A completion handler to call when the save operation completes.
rightThe persisted form of the right that the save operation stores.
errorAn error object that indicates why the
rightparameter isnil, ornilif the right parameter is non-nil.