initialize

public final static Unit initialize(String appKey, ACConfiguration configuration, Function1<AppConsent, Unit> onReady)
public final static Unit initialize(String appKey, Function1<AppConsent, Unit> onReady)

The main method, which allows you to initialize AppConsent with a default configuration or a custom configuration ACConfiguration like theme AppConsentTVTheme or force the application of GRPD whatever the region for example. By default, you will only need the appKey provided by the SFBX platform AND the callback onReady.

The onReady callback retrieves the AppConsent object once it is ready for use. It will enable you to use the CMP (consent management platform). At this point, you can either use com.sfbx.appconsent.AppConsent to display the CMP, or later use the com.sfbx.appconsent.tv.AppConsentSDK.getInstance method to retrieve the AppConsent object.

Parameters

appKey

The appKey provided by SFBX when you created the notice on the web platform

configuration

Allows you to specify certain options related to CMP display. For example, force CMP display or make your own visual modifications, such as logos or your own theme. This is an optional field.

onReady

Callback that will be triggered once the communication is established with your account and it is ready to retrieve your configuration