setRegistration method
By default, when the SDK starts it will register the device to your account and share its connectivity state. This provides the dashboard with a list of devices which are online and ready to connect.
If you don't need to see a list of devices in your dashboard, then you can stop the SDK from
registering the device and its status by passing the registration
option
with a value of false
.
Implementation
@override
Future<void> setRegistration(bool registration) async {
try {
await methodChannel.invokeMethod('setRegistration', registration);
} on PlatformException catch (e) {
print('Cannot set regstration value: $e');
}
}