saveFloatingPurposes

public abstract Unit saveFloatingPurposes(Map<String, Boolean> floatingPurposes, Function0<Unit> success, Function1<Throwable, Unit> failed)

Send and save your floatingpurposes on the server.

Parameters

floatingPurposes

The map containing the id of all the consents you wish to save, along with their respective status as Boolean.

success

The callback that lets you know if everything went well.

failed

The callback that lets you know if an error has occurred.