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
@Deprecated(message = "Dead code, this method will be removed at next release", replaceWith = @ReplaceWith(imports = {}, expression = "Use your notice configuration to set your icon"))
public final AppConsentTheme.Builder iconDrawable(Drawable icon)
Link copied to clipboard
@Deprecated(message = "Dead code, this method will be removed at next release", replaceWith = @ReplaceWith(imports = {}, expression = "Use your notice configuration to set your icon"))
public final AppConsentTheme.Builder iconUrl(String iconUrl)
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
@Deprecated(message = "Dead code, this method will be removed at next release", replaceWith = @ReplaceWith(imports = {}, expression = "Use your notice configuration to set your icon"))
public final AppConsentTheme.Builder onboardingImage(Drawable onboardingImage)
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.