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:

  • true: Enables the dark mode. The SDK UI pages or components switch according to the system theme mode.
  • false: Disables the dark mode. This is the default value.

Yes

Samples

copy
IAPGriverConfig.getInstance().setEnableDarkMode(true)