enterHandshakeProcess method

Device? enterHandshakeProcess(
  1. String endpointId,
  2. NearbyMessage message
)

Enters into handshaking process. See docs for reference.

Implementation

Device? enterHandshakeProcess(String endpointId, NearbyMessage message) {
  Device? device = _findDevice(connectedDevices, endpointId);
  if (device == null) {
    logger.e("Could not find device $endpointId");
    return null;
  }

  authenticationManager?.processHandshake(device, message);

  return device;
}