setRegistrationCompleteListener static method

Future<void> setRegistrationCompleteListener(
  1. Function callback
)

Call it's callback when registration is completed

Implementation

static Future<void> setRegistrationCompleteListener(Function callback) async {
  if(!Platform.isAndroid) return;
  dynamic result =
      await _channel.invokeMethod("Pushe.setRegistrationCompleteListener") ?? false;
  if (result) callback.call();
  return;
}