AppConsentBusiness

public final class AppConsentBusiness extends AppConsentBusinessImpl implements AppConsentContract

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Unit checkForUpdate(Function1<Boolean, Unit> onResult, Function1<Throwable, Unit> error)
Link copied to clipboard
public Unit clearCache()

Clear configuration cache and user consent stored locally in applications SharedPreferences

Link copied to clipboard
public Unit clearConsent()

Clear user consent stored locally in applications SharedPreferences

Link copied to clipboard
public Boolean consentableAllowed(Integer iabId, ConsentableType consentableType)

Check if Consentable is ALLOWED

Link copied to clipboard

Check if user saved consent preferences.

Link copied to clipboard

Check if extra Consentable is ALLOWED

Link copied to clipboard

Allow to know if specific extra floating is allowed

Link copied to clipboard

Check if extra Vendor is ALLOWED

Link copied to clipboard

Check if user gave consent for Geolocation purpose

Link copied to clipboard
public List<ExportConsentable> getAllConsentables(ConsentStatus consentStatus)

Return a Map of all consentables ids and status

Link copied to clipboard
public Map<String, Boolean> getAllExtraVendors(ConsentStatus consentStatus)

Return a list of all vendors

Link copied to clipboard
@Deprecated(message = "Don't use it !", replaceWith = @ReplaceWith(imports = {}, expression = "externalIds"), level = DeprecationLevel.WARNING)
public Map<String, Object> getExternalData()

Get external data sent to server

Link copied to clipboard
Link copied to clipboard
public String getUserId()

Return the advertising id used by Appconsent. if isLimitedTrackingEnabled() == false, it will be Google ADID otherwise a random UUID

Link copied to clipboard
Link copied to clipboard

Return true if limited ad tracking is enabled, false otherwise

Link copied to clipboard
Link copied to clipboard

Return true if user is subject to GDPR. It depends on forceApplyGDPR and phone's locale.

Link copied to clipboard
public Unit onCoreReady()
Link copied to clipboard
Link copied to clipboard
public Unit presentNotice(Boolean force)
Link copied to clipboard
public Unit save(AppConsentSaveCallback callback)
public Unit save(Function1<Boolean, Unit> onResult, Function1<Throwable, Unit> onError)

Save current State and send it to server

Link copied to clipboard
public Unit saveExternalIds(AppconsentSaveExternalIdsListener listener)
public Unit saveExternalIds(Function0<Unit> success, Function1<Throwable, Unit> failed)
Link copied to clipboard
public Unit saveFloatingPurposes(Map<String, Boolean> floatingPurposes, AppconsentSaveExternalIdsListener listener)
public Unit saveFloatingPurposes(Map<String, Boolean> floatingPurposes, Function0<Unit> success, Function1<Throwable, Unit> failed)

Send floating purposes to the server

Link copied to clipboard
Link copied to clipboard
public Unit setConsentableConsents(Map<Integer, ConsentStatus> consents, AppConsentSetConsentableConsentsCallback callback)
public Unit setConsentableConsents(Map<Integer, ConsentStatus> consents, Function0<Unit> success, Function1<Throwable, Unit> error)

Set consent by consentable.

Link copied to clipboard
@Deprecated(message = "Don't use it !", replaceWith = @ReplaceWith(imports = {}, expression = "externalIds"), level = DeprecationLevel.WARNING)
public Unit setExternalData(Map<String, Object> map)

Send external data to server

Link copied to clipboard
public Unit setExternalIds(Map<String, String> externalIds)
Link copied to clipboard
public Unit setExtraConsentableConsents(Map<String, ConsentStatus> consents, AppConsentSetConsentableConsentsCallback callback)

Set Consent by extra consentable.

public Unit setExtraConsentableConsents(Map<String, ConsentStatus> consents, Function0<Unit> success, Function1<Throwable, Unit> error)
Link copied to clipboard
Link copied to clipboard
public Unit setPresenterNoticeListener(OnPresentNoticeListener presenterNoticeListener)
Link copied to clipboard
public Unit setXchangeUserData(XChangeUserData xChangeUserData)
Link copied to clipboard
public Boolean stackAllowed(Integer stackId)

Check if Stack is ALLOWED

Link copied to clipboard
Link copied to clipboard
public Boolean vendorAllowed(Integer vendorIabId)

Check if Vendor is ALLOWED