requestTransaction(with:completion:)
Requests that the transaction that contains the specified actions be asynchronously performed by the telephony provider.
Declaration
func requestTransaction(with actions: [CXAction], completion: @escaping @Sendable ((any Error)?) -> Void)func requestTransaction(with actions: [CXAction]) async throwsParameters
- actions:
The telephony actions.
- completion:
Code to be executed after the transaction is completed. The callback is executed on the queue specified when the call controller was initialized.
- transaction
The requested transaction.
- error
If an error occurred, an error object indicating how the transaction failed, otherwise
nil.