MultipeerConflictResolver

public protocol MultipeerConflictResolver

Multipeer Conflict Resolver Protocol.

  • Resolves a conflict for a document received from a peer.

    Declaration

    Swift

    func resolve(peerID: PeerID, conflict: Conflict) -> Document?

    Parameters

    peerID

    The peer from which the conflicting document originated.

    conflict

    The conflict to be resolved.

    Return Value

    The resolved Document, or nil to delete the document.