Method BeginOptOutProcess
BeginOptOutProcess(string)
Begins the process of opting out for the specified legislation.
It sets the consent status for the specified legislation identifier to Forgetting
and saves it in Player
Preferences.
It includes the validation of the specified legislation. It requires CheckGeoIP
method to be called before
calling this method.
In case of PIPL, the opt-in-based legislation, it will do nothing if the consent was not explicitly given
beforehand, as the opting-out process includes sending the ForgetMe event to the backend.
In order to deny the consent immediately, use SetUserConsentStatus(string identifier, bool consentGiven)
If PIPL legislation is required and the specified legislation identifier is not PIPL, or the other
legislation is required, but the specified legislation identifier is PIPL, ConsentCheckException
is thrown.
Declaration
public void BeginOptOutProcess(string identifier)
Parameters
Type | Name | Description |
---|---|---|
string | identifier | The identifier of the legislation. |
Implements
Exceptions
Type | Condition |
---|---|
ConsentCheckException | Thrown if the incorrect legislation was being provided or the required consent flow cannot be determined. |
BeginOptOutProcess()
Begins the process of opting out from the current legislation.
It sets the consent status for the specified legislation identifier to Forgetting
and saves it in Player
Preferences.
In case of PIPL, the opt-in-based legislation, it will do nothing if the consent was not explicitly given
beforehand.
In order to deny the consent immediately, use SetUserConsentStatus(string identifier, bool consentGiven)
Declaration
public void BeginOptOutProcess()