STATUS_OK if none of the above errors occurred. Note that
this indicates that Nearby Connections will attempt to send the Payload, but not
that the send has successfully completed yet. Errors might still occur during
transmission (and at different times for different endpoints), and will be delivered via
onPayloadTransferUpdate(String, PayloadTransferUpdate).

Sends a message to a remote endpoint using a reliable protocol. Reliable messages will be
retried until delivered, and are delivered in the order they were sent to a given endpoint.
Messages can only be sent to remote endpoints once a connection request was first sent and
accepted (in either direction).

Sends a message to a remote endpoint using an unreliable protocol. Unreliable messages may be
dropped or delivered out of order. Messages can only be sent to remote endpoints once a
connection request was first sent and accepted (in either direction).

Parameters

A human readable name for this endpoint, to appear on other devices. If null or
empty, a name will be generated based on the device name or model.

appMetadata

Metadata used to describe this application which can be used to prompt the
user to launch or install the application. If null, only applications looking for the
specified service ID will be able to discover this endpoint.