pub unsafe trait CXProviderDelegate: NSObjectProtocol {
Show 13 methods
// Provided methods
unsafe fn providerDidReset(&self, provider: &CXProvider)
where Self: Sized + Message { ... }
unsafe fn providerDidBegin(&self, provider: &CXProvider)
where Self: Sized + Message { ... }
unsafe fn provider_executeTransaction(
&self,
provider: &CXProvider,
transaction: &CXTransaction,
) -> bool
where Self: Sized + Message { ... }
unsafe fn provider_performStartCallAction(
&self,
provider: &CXProvider,
action: &CXStartCallAction,
)
where Self: Sized + Message { ... }
unsafe fn provider_performAnswerCallAction(
&self,
provider: &CXProvider,
action: &CXAnswerCallAction,
)
where Self: Sized + Message { ... }
unsafe fn provider_performEndCallAction(
&self,
provider: &CXProvider,
action: &CXEndCallAction,
)
where Self: Sized + Message { ... }
unsafe fn provider_performSetHeldCallAction(
&self,
provider: &CXProvider,
action: &CXSetHeldCallAction,
)
where Self: Sized + Message { ... }
unsafe fn provider_performSetMutedCallAction(
&self,
provider: &CXProvider,
action: &CXSetMutedCallAction,
)
where Self: Sized + Message { ... }
unsafe fn provider_performSetGroupCallAction(
&self,
provider: &CXProvider,
action: &CXSetGroupCallAction,
)
where Self: Sized + Message { ... }
unsafe fn provider_performPlayDTMFCallAction(
&self,
provider: &CXProvider,
action: &CXPlayDTMFCallAction,
)
where Self: Sized + Message { ... }
unsafe fn provider_timedOutPerformingAction(
&self,
provider: &CXProvider,
action: &CXAction,
)
where Self: Sized + Message { ... }
unsafe fn provider_didActivateAudioSession(
&self,
provider: &CXProvider,
audio_session: &AVAudioSession,
)
where Self: Sized + Message { ... }
unsafe fn provider_didDeactivateAudioSession(
&self,
provider: &CXProvider,
audio_session: &AVAudioSession,
)
where Self: Sized + Message { ... }
}CXProvider only.Expand description
Provided Methods§
Sourceunsafe fn providerDidReset(&self, provider: &CXProvider)
unsafe fn providerDidReset(&self, provider: &CXProvider)
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
Sourceunsafe fn providerDidBegin(&self, provider: &CXProvider)
unsafe fn providerDidBegin(&self, provider: &CXProvider)
Called when the provider has been fully created and is ready to send actions and receive updates
Sourceunsafe fn provider_executeTransaction(
&self,
provider: &CXProvider,
transaction: &CXTransaction,
) -> bool
Available on crate feature CXTransaction only.
unsafe fn provider_executeTransaction( &self, provider: &CXProvider, transaction: &CXTransaction, ) -> bool
CXTransaction only.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.
unsafe fn provider_performStartCallAction( &self, provider: &CXProvider, action: &CXStartCallAction, )
CXAction and CXCallAction and CXStartCallAction only.unsafe fn provider_performAnswerCallAction( &self, provider: &CXProvider, action: &CXAnswerCallAction, )
CXAction and CXAnswerCallAction and CXCallAction only.unsafe fn provider_performEndCallAction( &self, provider: &CXProvider, action: &CXEndCallAction, )
CXAction and CXCallAction and CXEndCallAction only.unsafe fn provider_performSetHeldCallAction( &self, provider: &CXProvider, action: &CXSetHeldCallAction, )
CXAction and CXCallAction and CXSetHeldCallAction only.unsafe fn provider_performSetMutedCallAction( &self, provider: &CXProvider, action: &CXSetMutedCallAction, )
CXAction and CXCallAction and CXSetMutedCallAction only.unsafe fn provider_performSetGroupCallAction( &self, provider: &CXProvider, action: &CXSetGroupCallAction, )
CXAction and CXCallAction and CXSetGroupCallAction only.unsafe fn provider_performPlayDTMFCallAction( &self, provider: &CXProvider, action: &CXPlayDTMFCallAction, )
CXAction and CXCallAction and CXPlayDTMFCallAction only.Sourceunsafe fn provider_timedOutPerformingAction(
&self,
provider: &CXProvider,
action: &CXAction,
)
Available on crate feature CXAction only.
unsafe fn provider_timedOutPerformingAction( &self, provider: &CXProvider, action: &CXAction, )
CXAction only.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
Sourceunsafe fn provider_didActivateAudioSession(
&self,
provider: &CXProvider,
audio_session: &AVAudioSession,
)
Available on crate feature objc2-avf-audio only.
unsafe fn provider_didActivateAudioSession( &self, provider: &CXProvider, audio_session: &AVAudioSession, )
objc2-avf-audio only.Called when the provider’s audio session activation state changes.
unsafe fn provider_didDeactivateAudioSession( &self, provider: &CXProvider, audio_session: &AVAudioSession, )
objc2-avf-audio only.