Protocol

SynchronizationService

An interface that enables entity synchronization among a group of local peers.

Declaration

protocol SynchronizationService : AnyObject

Topics

Managing Ownership

func owner(of: Entity) -> SynchronizationPeerID?

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

Required.

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.

Finding an Entity

func entity(for: Self.Identifier) -> Entity?

Gets the entity with the given identifier.

Required.

typealias SynchronizationService.Identifier

A type that represents a synchronization service identifier.

Relationships

See Also

Network Synchronization

class MultipeerConnectivityService

A service that provides scene synchronization among all peers in a multipeer connectivity session.

enum SynchronizationEvents

Events associated with network synchronization of scene information.