setContents

open fun setContents(@Nullable contents: String)

Sets text contents of the annotation. This is usually the displayed text for annotations that display text or accessibility label for annotations that don't.

Parameters

contents

Contents string or null to clear the field.