setEnableDarkMode
The setEnableDarkMode API allows the super app to control whether to enable dark mode support for the SDK. When enabled, the SDK UI pages or components switch according to the system theme mode.
Note: Must call this API before initializing the SDK.
Method signature
copy
setEnableDarkMode(enableDarkMode:boolean)
Parameters
Name | Type | Description | Required |
enableDarkMode | Boolean | Controlls whether to enable dark mode support for the SDK. Valid value:
| Yes |
Samples
copy
IAPGriverConfig.getInstance().setEnableDarkMode(true)