registerDevice static method
Future
registerDevice(
- String apiKey,
- void successCallback(
- bool
),
- void failureCallback(
- dynamic
)
)
Implementation
static Future registerDevice(
String apiKey,
void Function(bool) successCallback,
void Function(dynamic) failureCallback,
) async {
dynamic unReadMessagesResponse =
await _channel.invokeMethod('registerDevice', {'apiKey': apiKey});
if (unReadMessagesResponse is bool) {
successCallback(unReadMessagesResponse);
} else {
failureCallback(unReadMessagesResponse);
}
}