public static void setUserConsent ( boolean value ) { boolean hadUserConsent = hasUserConsent ( ) ; WonderPushConfiguration . setUserConsent ( value ) ; boolean nowHasUserConsent = hasUserConsent ( ) ; if ( sIsInitialized && hadUserConsent != nowHasUserConsent ) { hasUserConsentChanged ( nowHasUserConsent ) ; } }
Provides or withdraws user consent .