Contents

giveOwnership(of:toPeer:)

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

Declaration

@MainActor @preconcurrency func giveOwnership(of entity: Entity, toPeer peer: any SynchronizationPeerID) -> Bool

Parameters

  • entity:

    The entity whose ownership is transferred.

  • peer:

    The networked device receiving ownership.

Return Value

A Boolean that’s true if the ownership transfer succeeds.

See Also

Managing ownership