Light and Dark Mode Configuration

For supported templates, promotional content can be displayed in Light, Dark, or Auto mode. Use the sample code below to configure the template according to your user’s settings.

Android

Use PromoManager to set the display mode.

copy
// Options: "light", "dark", "auto"
PromoManager.getInstance().setDisplayMode("light");

iOS

Use PromoContentManager to set the display mode.

Objective-C

copy
typedef NS_ENUM(NSInteger, IAPDisplayMode) {
    IAPDisplayModeLight,
    IAPDisplayModeDark,
    IAPDisplayModeAuto  // Follows system settings
};

// Set display mode
[[PromoContentManager sharedManager] setDisplayMode:IAPDisplayModeDark];

Swift

copy
// Options: ".light", ".dark", ".auto"
PromoContentManager.shared().setDisplayMode(.dark)