getRegistrationState method

  1. @override
Future<RegistrationState> getRegistrationState()
override

Get current registration state

Implementation

@override
Future<RegistrationState> getRegistrationState() async {
  final state = await callClientMethodChannel
      .invokeMethod<String>('getRegistrationState');
  return RegistrationState.fromString(state);
}