Builder

public final class Builder

Your entry point for configuring the fields of your custom theme via the pattern builder. Once finished, call the Builder.build method to generate your AppConsentTheme AppConsentTheme.

Constructors

Functions

Link copied to clipboard
public final AppConsentTheme build()
Link copied to clipboard

Define your icon

Link copied to clipboard
public final AppConsentTheme.Builder iconUrl(String iconUrl)

Define your icon as URL

Link copied to clipboard

Allows you to set your image on the success screen if you have enabled it on your dashboard.

Link copied to clipboard
public final AppConsentTheme.Builder noticeSuccessImageUrl(String noticeSuccessImageUrl)

Allows you to set your image on the success screen if you have enabled it on your dashboard.

Link copied to clipboard
public final AppConsentTheme.Builder onboardingImage(Drawable onboardingImage)

Sets your image to layer 1 if you configure your Notice in CLEAR mode.

Link copied to clipboard
public final AppConsentTheme.Builder onboardingImageUrl(String onboardingImageUrl)

Sets your image to layer 1 if you configure your Notice in CLEAR mode.

Link copied to clipboard
public final AppConsentTheme.Builder theme(@StyleRes() Integer theme)

Define your own style, as a resource for CMP to adapt to your system design.