addPrimaryDevice method

bool addPrimaryDevice(
  1. PrimaryDeviceConfiguration<DeviceRegistration> primaryDevice
)

Add a primary device (e.g., a phone) which is responsible for aggregating and synchronizing incoming data. Its role name should be unique in the protocol.

Returns true if the primaryDevice has been added; false if it is already set as a primary device.

Implementation

bool addPrimaryDevice(PrimaryDeviceConfiguration primaryDevice) =>
    primaryDevices.add(primaryDevice);