setAlternativeText

open fun setAlternativeText(alternativeText: String? = null)

Sets an alternative textual description for the picture contents.

It is equivalent to the "alt" attribute for images on websites.

This text will be made available to accessibility tools.

If the picture cannot be described textually, set this property to null.

Parameters

alternativeText

a textual description of the contents