saveRight(_:identifier:secret:completion:)
Saves a right to a persistent store along with secret data you supply.
Declaration
func saveRight(_ right: LARight, identifier: String, secret: Data, completion handler: @escaping @Sendable (LAPersistedRight?, (any Error)?) -> Void)func saveRight(_ right: LARight, identifier: String, secret: Data) async throws -> LAPersistedRightParameters
- right:
The right to store.
- identifier:
A unique identifier for the right.
- secret:
Secret data that’s stored with 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.