Public Constructors

publicConnectionLifecycleCallback()

Public Methods

A basic encrypted channel has been created between you and the endpoint. Both sides
are now asked if they wish to accept or reject the connection before any data can be
sent over this channel.

This is your chance, before you accept the connection, to confirm that you connected
to the correct device. Both devices are given an identical token; it's up to you to
decide how to verify it before proceeding. Typically this involves showing the token on
both devices and having the users manually compare and confirm; however, this is only
required if you desire a secure connection between the devices.

Called after both sides have either accepted or rejected the connection. If the
ConnectionResolution's status is SUCCESS,
both sides have accepted the connection and may now send Payloads
to each other. Otherwise, the connection was rejected.

Parameters

endpointId

The identifier for the remote endpoint.

resolution

The final result after tallying both devices' accept/reject responses.