ConsentHost

interface ConsentHost(source)

Host abstraction for consent dialogs.

UI layers should provide an implementation so domain and data layers do not depend on concrete Activity types directly.

Properties

Link copied to clipboard
abstract val activity: Activity
Link copied to clipboard

Whether the host is on screen and can legally host a consent form.

Link copied to clipboard

Whether the activity can still serve as the context for a UMP request. Reject finishing or destroyed activities because UMP retains the host through its asynchronous work.