accept
TypeScriptget accept(): (() => Promise<void>)Swift declarationlet accept: () -> VoidThe callback function that the current owner calls to grant ownership to the requesting peer. If an entity’s ``SynchronizationComponent/ownershipTransferMode-swift.property`` property is set to ``SynchronizationComponent/OwnershipTransferMode-swift.enum/autoAccept``, the entity automatically grants ownership to any other entity that requests it. In case you configure an entity to have a transfer mode of ``SynchronizationComponent/OwnershipTransferMode-swift.enum/manual``, then when you receive an ``SynchronizationEvents/OwnershipRequest`` event, call the ``SynchronizationEvents/OwnershipRequest/accept`` method to complete the transfer of ownership.