Receipt
public protocol Receipt: class
Represents a specific registrant within a specific Registry
.
A Receipt
is given when an item is registered, and is used to manage the
lifetime of item in the registry.
When the Receipt
is deallocated, the associated registrant is automatically
de-registered. You can also call deregister()
to force removal of the item
prior to deallocation of its Receipt
.
-
A unique identifier for the
Receipt
instance.Declaration
Swift
var id: ObjectIdentifier
-
Removes the item represented by this
Receipt
from theRegistry
to which it is registered.Declaration
Swift
func deregister()