OgurySdknamespace at the beginning of every script where you interacts with the Ogury SDK.
Startmethod takes the following parameter:
nullif your application is not available on Android.
nullif your application is not available on iOS.
Askmethod synchronizes the consent signal and makes it available through the SDK methods.
Askmethod, to receive the consent status of the user:
Editmethod forces the display of the consent notice and let users update their choices. If an error occurred, nothing is displayed to the user. In this case, you need to handle the error to inform the user.
Editmethod, to receive the consent status of the user:
Editmethod will return an error in the following cases:
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: