updateSelectedLanguage static method

Future<void> updateSelectedLanguage(
  1. String languageCode
)

Method used to update the selected language of the Didomi SDK and any property that depends on it.

In most cases this method doesn't need to be called. It would only be required for those apps that allow language change on-the-fly, i.e.: from within the app rather than from the device settings. In order to update the language of the views displayed by the Didomi SDK, this method needs to be called before these views are displayed.

Implementation

static Future<void> updateSelectedLanguage(String languageCode) async =>
    await _channel.invokeMethod("updateSelectedLanguage", {"languageCode": languageCode});