sendSync(_:)

func sendSync(_ inRetries: Int = 5)

This sends a sync to the Watch

  • Handles a reply from the peer.

    Declaration

    Swift

    func _replyHandler(_ inReply: [String : Any])

    Parameters

    inReply

    The reply from the peer.

  • Handles an error in the transaction.

    This looks for a certain kind of failure, and will retry a few times.

    Declaration

    Swift

    func _errorHandler(_ inError: any Error)

    Parameters

    inError

    The error that caused this call.