Badge

Badge instances are created by the Viewer when calling the method viewer.addBadge().

badge.setImage(blob)

Sets the image of the badge.

badge.setOnClick(onClick)

Sets the onClick callback of the badge.

badge.remove()

Removes the badge.