setRemoteConnectionOverlayTexts method

Future<void> setRemoteConnectionOverlayTexts(
  1. Map<OmiRemoteConnectionState, String> texts
)

iOS: text of the SDK's remote-connection overlay per state (multi-language apps). States without a text keep the SDK's Vietnamese default. No effect on Android.

Implementation

Future<void> setRemoteConnectionOverlayTexts(
    Map<OmiRemoteConnectionState, String> texts) async {
  final action = OmiAction(
    actionName: OmiActionName.SET_REMOTE_CONNECTION_TEXTS,
    data: {
      'texts': texts.map((state, text) => MapEntry(state.nativeName, text)),
    },
  );
  await _controller.action(action);
}