Package apple.callkit.protocol
Interface CXProviderDelegate
-
public interface CXProviderDelegate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidproviderDidActivateAudioSession(CXProvider provider, AVAudioSession audioSession)Called when the provider's audio session activation state changes.default voidproviderDidBegin(CXProvider provider)Called when the provider has been fully created and is ready to send actions and receive updatesdefault voidproviderDidDeactivateAudioSession(CXProvider provider, AVAudioSession audioSession)voidproviderDidReset(CXProvider provider)Called when the provider has been reset.default booleanproviderExecuteTransaction(CXProvider provider, CXTransaction transaction)Called whenever a new transaction should be executed.default voidproviderPerformAnswerCallAction(CXProvider provider, CXAnswerCallAction action)default voidproviderPerformEndCallAction(CXProvider provider, CXEndCallAction action)default voidproviderPerformPlayDTMFCallAction(CXProvider provider, CXPlayDTMFCallAction action)default voidproviderPerformSetGroupCallAction(CXProvider provider, CXSetGroupCallAction action)default voidproviderPerformSetHeldCallAction(CXProvider provider, CXSetHeldCallAction action)default voidproviderPerformSetMutedCallAction(CXProvider provider, CXSetMutedCallAction action)default voidproviderPerformStartCallAction(CXProvider provider, CXStartCallAction action)If provider:executeTransaction:error: returned NO, each perform*CallAction method is called sequentially for each action in the transactiondefault voidproviderTimedOutPerformingAction(CXProvider provider, CXAction action)Called when an action was not performed in time and has been inherently failed.
-
-
-
Method Detail
-
providerDidActivateAudioSession
default void providerDidActivateAudioSession(CXProvider provider, AVAudioSession audioSession)
Called when the provider's audio session activation state changes.
-
providerDidDeactivateAudioSession
default void providerDidDeactivateAudioSession(CXProvider provider, AVAudioSession audioSession)
-
providerExecuteTransaction
default boolean providerExecuteTransaction(CXProvider provider, CXTransaction transaction)
Called whenever a new transaction should be executed. Return whether or not the transaction was handled: - NO: the transaction was not handled indicating that the perform*CallAction methods should be called sequentially for each action in the transaction - YES: the transaction was handled and the perform*CallAction methods should not be called sequentially If the method is not implemented, NO is assumed.
-
providerPerformAnswerCallAction
default void providerPerformAnswerCallAction(CXProvider provider, CXAnswerCallAction action)
-
providerPerformEndCallAction
default void providerPerformEndCallAction(CXProvider provider, CXEndCallAction action)
-
providerPerformPlayDTMFCallAction
default void providerPerformPlayDTMFCallAction(CXProvider provider, CXPlayDTMFCallAction action)
-
providerPerformSetGroupCallAction
default void providerPerformSetGroupCallAction(CXProvider provider, CXSetGroupCallAction action)
-
providerPerformSetHeldCallAction
default void providerPerformSetHeldCallAction(CXProvider provider, CXSetHeldCallAction action)
-
providerPerformSetMutedCallAction
default void providerPerformSetMutedCallAction(CXProvider provider, CXSetMutedCallAction action)
-
providerPerformStartCallAction
default void providerPerformStartCallAction(CXProvider provider, CXStartCallAction action)
If provider:executeTransaction:error: returned NO, each perform*CallAction method is called sequentially for each action in the transaction
-
providerTimedOutPerformingAction
default void providerTimedOutPerformingAction(CXProvider provider, CXAction action)
Called when an action was not performed in time and has been inherently failed. Depending on the action, this timeout may also force the call to end. An action that has already timed out should not be fulfilled or failed by the provider delegate
-
providerDidBegin
default void providerDidBegin(CXProvider provider)
Called when the provider has been fully created and is ready to send actions and receive updates
-
providerDidReset
void providerDidReset(CXProvider provider)
Called when the provider has been reset. Delegates must respond to this callback by cleaning up all internal call state (disconnecting communication channels, releasing network resources, etc.). This callback can be treated as a request to end all calls without the need to respond to any actions
-
-