final func reportNewIncomingConversation(uuid: UUID, update: Conversation.Update) async throws
Informs the system that there's a new incoming Conversation, and the device should begin to ring and present
the incoming Conversation UI.
- parameter uuid: The `UUID` used to identify the created Conversation.
- parameter update: Optional fields used to configure the Conversation to an initial state.
final func reportConversationEvent(_ event: Conversation.Event, for conversation: Conversation)
Informs the system that some event has occurred and to update the given `Conversation` as needed.
- parameter event: The `Event` to be processed by the system.
- parameter conversation: The `Conversation` to which the `Event` applies.
final func pendingConversationActions(of conversationActionClass: ConversationAction.Type, for conversation: Conversation) -> [ConversationAction]
Returns all pending `ConversationAction`s of the specified class for the specified call identifier that are incomplete.
- parameter conversationActionClass: The desired `ConversationAction` subclass of actions to return.
- parameter conversation: The desired `Conversation` for returned actions.
- returns: An array of call actions of the specified class for the specified `Conversation`.
method · iOS 17.4+
invalidate
TypeScript
invalidate(): void
Swift declaration
final func invalidate()
Invalidates the manager, ends all `Conversation`s, and fails all pending `ConversationAction`s.
Creates a new `ConversationManager` with the given `ConversationManager.Configuration`.
- parameter configuration: A collection of options used to configure the `ConversationManager`.
get · iOS 17.4+
configuration
TypeScript
get configuration(): ConversationManager_Configuration
Swift declaration
final let configuration: ConversationManager.Configuration
The configuration of the manager.
get · iOS 17.4+
conversations
TypeScript
get conversations(): Array<Conversation>
Swift declaration
final var conversations: [Conversation] { get }
get · iOS 17.4+
pendingActions
TypeScript
get pendingActions(): Array<ConversationAction>
Swift declaration
final var pendingActions: [ConversationAction] { get }
`ConversationAction`s that have not yet been fulfilled.
final class func reportNewIncomingVoIPPushPayload(_ payload: [AnyHashable : Any]) async throws
Reports a new incoming call after your notification service extension decrypts a VoIP call request.
- parameter payload: A dictionary containing additional data about the incoming call. All keys and values in the dictionary must implement the `NSSecureCoding` protocol.
- throws: When the system disallows a `Conversation`, an error is thrown that contains information about why it disallowed the `Conversation`.