changeLanguage

When the app switches the language, call this method to pass the language to the SDK.

Method signature

copy
Future<void> changeLanguage(String language);

Parameters

Parameter

Data type

Required

Description

language

String

Yes

The language currently used by the APP

Return value

N/A

Error codes

N/A

Sample

copy
void _changeLanguage(String language) async { 
  IAPMiniProgram.instance.changeLanguage(language)
}