AppDelgeate
class, function didFinishLaunchingWithOptions
before starting any UIViewController
. setup
method takes the following parameters:OguryChoiceManagerConfig
needed to pass versions of frameworks that should be used in SDK. If you don't set config.tcfVersion
then TCF version 2 will be used.ask
method in the viewDidLoad
of your ViewController
.ask
method synchronizes the consent signal and makes it available through the SDK methods.ask
method as follows:ask
method takes the following parameters:ViewController
completionBlock
to listen to changes of the consent signal. This completion block provides two parameters :response
error
ask
method must be called at each launch of your application to be sure to have an up-to-date consent status.ask
method to have the user consent for the first ad impression. edit
method 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.edit
method takes the following parameters:ViewController
completionBlock
to listen to changes of the consent signal. This completion block provides two parameters :response
error
reponse
parameter of completion block, you can get the answer of the user through an Answer
object. The Answer
has one of the following values:FULL_APPROVAL
PARTIAL_APPROVAL
REFUSAL
NO_ANSWER
ask
or an edit
, the completion block provides an error
parameter. This parameter contains the cause of the failure.‌OGYConsentErrorNoInternetConnection
OGYConsentErrorTypeNoSuchAssetKey
OGYConsentErrorTypeBundleNotMatching
OGYConsentErrorTypeServerError
OGYConsentErrorTypeInternalSDKError
OGYConsentErrorTypeRegionRestricted
OGYConsentErrorTypeSdkAskNotCalled
ask
method has not been called.OGYConsentErrorTypeSdkTimeOut
OGYConsentErrorTypeFormError
OGYConsentErrorTypeParsingError
OGYConsentErrorTypeFairChoiceFetchProduct
OGYConsentErrorTypeEditDisabledUserHasPaid
OGYConsentErrorTypeIOSUserRestricted
OGYConsentErrorTypeUserGeoRestricted