init(position:visibility:assistantAction:)
Creates a configuration object with the specified position, visibility, and action.
Declaration
init(position: CPListItem.AssistantCellPosition, visibility: CPListItem.AssistantCellVisibility, assistantAction: CPAssistantCellActionType)Parameters
- position:
The position of the assistant cell in the list template. For possible values, see Assistantcellposition.
- visibility:
The visibility of the assistant cell. For possible values, see Assistantcellvisibility.
- assistantAction:
The action that Siri performs when the user selects the assistant cell. For possible values, see Cpassistantcellactiontype.
Discussion
Your app doesn’t receive a callback when the user selects the assistant cell. Instead, you configure an Intents Extension to handle the type of intent you specify in assistantAction; audio apps must support INPlayMediaIntent and communication apps must support INStartCallIntent. The assistant cell is unavailable in all other app categories.