withShowConsentPrompt

Returns a PresentmentSource that delegates all operations to this instance except showConsentPrompt, which is handled by showConsentPromptFn.

Return

a new PresentmentSource overriding showConsentPrompt.

Parameters

showConsentPromptFn

the function to use for showing the consent prompt.