show

fun show(activity: Activity): Boolean(source)

Shows the reporter over activity.

Returns false without doing anything when it cannot be shown: activity is not a ComponentActivity, it is going away, or a sheet is already up, including one a host composed itself. The shake detector calls this from a sensor callback, so the activity can be in any of those states by the time a gesture lands, and none of them is worth taking an app down for.

Must be called on the main thread, which is where sensor callbacks are delivered.