Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Déclaration
@interface ACSCallClient : NSObject;
Descriptif
Il s’agit de la classe principale représentant le point d’entrée du SDK Calling.
Méthodes
Init
Crée une nouvelle instance avec une configuration par défaut
-(instancetype)init;
disposer
Libère toutes les ressources détenues par CallClient. CallClient doit être détruit/annulé après l’élimination.
-(void)dispose;
Init
Crée une nouvelle instance avec CallClientOptions.
-(instancetype)init:(ACSCallClientOptions *)options;
Paramètres
options-
createCallAgent
Crée une instance d’agent d’appel.
-(void)createCallAgent:(CommunicationTokenCredential* _Nonnull) userCredential
withCompletionHandler:(void (^ _Nonnull)(ACSCallAgent* _Nullable clientAgent,
NSError * _Nullable error))completionHandler;
Paramètres
-
userCredential- CommunicationUserCredential pour l’authentification. -
clientAgent- Appelez l’agent. -
completionHandler- Un bloc à appeler de manière asynchrone une fois l’opération terminée.
createCallAgentWithOptions
Crée une instance d’agent d’appel avec des options.
-(void)createCallAgentWithOptions:(CommunicationTokenCredential* _Nonnull) userCredential
callAgentOptions:(ACSCallAgentOptions* _Nullable) callAgentOptions
withCompletionHandler:(void (^ _Nonnull)(ACSCallAgent* _Nullable clientAgent,
NSError* _Nullable error))completionHandler;
Paramètres
-
userCredential- CommunicationUserCredential pour l’authentification. -
callAgentOptions- Configurations à passer avec l’agent d’appel. -
clientAgent- Appelez l’agent. -
completionHandler- Un bloc à appeler de manière asynchrone une fois l’opération terminée.
reportIncomingCall
Envoie une notification d’appel entrant.
+(void)reportIncomingCall:(ACSPushNotificationInfo* _Nonnull)payload
callKitOptions:(ACSCallKitOptions* _Nonnull) callKitOptions
withCompletionHandler:(void (^ _Nonnull)(NSError* _Nullable error))completionHandler;
Paramètres
-
payload- Charge utile de la notification push. -
callKitOptions- Options d’appelKit. -
completionHandler- Un bloc à appeler de manière asynchrone une fois l’opération terminée.
getDeviceManagerWithCompletionHandler
-(void)getDeviceManagerWithCompletionHandler:(void (^ _Nonnull)(ACSDeviceManager* _Nullable value,
NSError* _Nullable error))completionHandler;
Paramètres
-
value- Valeur de l’instance du gestionnaire de périphériques. -
completionHandler- Un bloc à appeler de manière asynchrone une fois l’opération terminée.
Propriétés
debugInfo
Récupère la classe DebugInfo, qui est une interface pour les aides de débogage/support, telles que la récupération de fichiers pour le support
@property (retain, nonnull, readonly) ACSCallDebugInfo * debugInfo;
communicationAccréditation
Jeton de communication.
@property (retain, nonnull) CommunicationTokenCredential* communicationCredential;