showIfNeeded

fun showIfNeeded(activity: Activity)

Presents the consent screen ONLY if it is required by the used CMP (i.e. no user consent has been set yet).

Parameters

activity

The Activity from which the consent screen will be shown.