setAction

open fun setAction(@Nullable action: Action)

Sets the action to the annotation.

Parameters

action

Action to be executed when the annotation is tapped, null to remove action.