Antom, leading provider of tailored payment solutions

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.
java
// Options: "light", "dark", "auto"
PromoManager.getInstance().setDisplayMode("light");

iOS

Use PromoContentManager to set the display mode.
Objective-C
objectivec
typedef NS_ENUM(NSInteger, IAPDisplayMode) {
    IAPDisplayModeLight,
    IAPDisplayModeDark,
    IAPDisplayModeAuto  // Follows system settings
};

// Set display mode
[[PromoContentManager sharedManager] setDisplayMode:IAPDisplayModeDark];
Swift
swift
// Options: ".light", ".dark", ".auto"
PromoContentManager.shared().setDisplayMode(.dark)