Closed attanasio94g closed 6 years ago
added a function to the master branch for this
In general, you should just initialise GDPR in your application (like here in the demo: https://github.com/MFlisar/GDPRDialog/blob/master/app/src/main/java/com/michaelflisar/gdprdialog/demo/app/App.java), no need to check this if you do it like this...
Hello, how do I know if the library is already initialized?
If is not
GDPR.getInstance().getConsentState().getConsent()
cause a crash, and I want do to if the library is initialized launch this code, else initialize the library and after launch the code.I did something like this but maybe there is a better way: