Creates a voice control state.
- iOS 12.0+
A string that your app uses to identify the state. You can activate the state by calling
activate, passing in the
Voice Control State(with Identifier:)
An array of title variants for the voice control state. When the system displays the title, it selects the title that best fits the available screen space, so arrange the titles from most to least preferred. Also, localize each title for display to the user, and be sure to include at least one title in the array.
An image, no bigger than 150 pt x 150 pt, that the voice control template displays when it's in this state. For an animated image, the system enforces a minimum cycle duration of 0.3 seconds, and a maximum cycle duration of 5 seconds.
A Boolean value that indicates whether animation for
imagerepeats indefinitely. Set to
trueto repeat the animation, or
falseto show the animation only once.
A newly initialized voice control state.