connectRemoteConfig method

  1. @override
Future<RemoteConfigPhase?> connectRemoteConfig(
  1. String id,
  2. String channelId
)
override

Implementation

@override
Future<RemoteConfigPhase?> connectRemoteConfig(
    String id, String channelId) async {
  final result = await methodChannel.invokeMethod<String>(
    'connectRemoteConfig',
    <String, String>{
      'id': id,
      'channelId': channelId,
    },
  );
  switch (result) {
    case "completed":
      return RemoteConfigPhase.completed;
    case "not-found":
      return RemoteConfigPhase.notFound;
    case "failed":
      return RemoteConfigPhase.failed;
    default:
      return null;
  }
}