libsdirectory in your application project.
build.gradleof your application and add the following lines, making sure to replace
ogury-sdk-X.X.Xby the name of the downloaded AAR.
Ogury.start()before you use any Ogury's functionalities.
startmethod takes an
OguryConfigurationobject as parameters. The
OguryConfigurationis built from its
Builderwhich takes the following parameters:
askmethod synchronizes the consent signal and makes it available through the SDK methods.
askmethod as follows:
askmethod takes the following parameters:
editmethod takes the following parameters:
editmethod will return an error in the following cases:
OguryConsentListenerinterface to listen to consent signal changes.
OguryConsentListenerexposes the following methods:
onCompletemethod of the
OguryConsentListenerinterface, you can get the answer of the user through the
Answerhas one of the following values:
onErrormethod of the
OguryConsentListeneris called. This method provides an
OguryErrorobject that contains an error code and an error message.
getErrorCode. You can retrieve a more explicit message by calling the
OguryChoiceManagerErrorCodeobject. For example, you can check if error occurred because there is no Internet connection by using
NO_INTERNET_CONNECTIONerror code as following: