invoke

operator fun invoke(onClick: (InteractionContext) -> Boolean): ClickInteraction<Nothing>

Create the ClickInteraction for the map surface itself.

When several map ClickInteractions are registered - the callbacks will be triggered from last to first.

Parameters

onClick

callback triggered when map surface is clicked.