supportsAnnounce property

bool get supportsAnnounce

Whether the platform supports accessibility announcement API, i.e. SemanticsService.announce.

Some platforms do not support or discourage the use of announcement. Using SemanticsService.announce on those platform may be ignored. Consider using other way to convey message to the user. For example, Android discourages the uses of direct message announcement, and rather encourages using other semantic properties such as SemanticsProperties.liveRegion to convey message to the user.

Returns false on platforms where announcements are deprecated or unsupported by the underlying platform.

Returns true on platforms where such announcements are generally supported without discouragement. (iOS, web etc)

Implementation

// This index check is inverted (== 0 vs != 0); far more platforms support
// "announce" than discourage it.
bool get supportsAnnounce => _kNoAnnounceIndex & _index == 0;