CPVoiceControlState class

Visual feedback for one stage of voice interaction, without audio capture.

Constructors

CPVoiceControlState({required String identifier, List<String>? titleVariants, String? image, bool repeats = false, List<CPButton> actionButtons = const []})

Properties

actionButtons → List<CPButton>
Requires iOS 26.4. Older systems reject templates that include buttons. The native host validates the count against its supported maximum.
final
hashCode → int
The hash code for this object.
no setterinherited
identifier → String
final
image → String?
An optional image asset, file URL or remote URL, at most 150 by 150 points. Asset SVGs are rasterized before crossing the platform channel.
final
repeats → bool
Repeats an animated native image. Does not animate a static image or SVG.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
titleVariants → List<String>?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited