Instance Method

owner(of:)

Gets the device that owns a given entity, if any.

Required.

Declaration

func owner(of entity: Entity) -> SynchronizationPeerID?

Parameters

entity

The entity for which you want the owner.

Return Value

The networked device that owns the entity. The value is nil if the entity isn’t synchronized or is owned locally.

See Also

Managing Ownership

func giveOwnership(of: Entity, toPeer: SynchronizationPeerID) -> Bool

Transfers ownership of the given entity to the named network device.

Required.

protocol SynchronizationPeerID

A type that represents a peer among a group of networked devices.