GDPRConsentWasSet

Description

Check if the GDPR consent was previously set. Not required on iOS.

Declaration

public static bool GDPRConsentWasSet()

Return

true - consent was previously set

false - consent was not set yet

Example

public class Test : MonoBehaviour
{
    public void SHowCustomConsentPopup()
    {
        if (!Gley.MobileAds.API.GDPRConsentWasSet())
        {
            //show custom consent popup
        }
        else
        {
            //consent popup is not required
        }
    }
}

Last updated