Partager via


ACSCallAgent, classe

Déclaration

@interface ACSCallAgent : NSObject;

Description

Agent d’appel créé par la méthode de fabrique CallClient createCallAgent Il assume la responsabilité de la gestion des appels pour le compte de l’utilisateur authentifié

Méthodes

Disposer

Libère toutes les ressources détenues par CallAgent. CallAgent doit être détruit/nullifié après la suppression. Ferme cette ressource. Cela est projeté sur java.lang.AutoCloseable.close() dans la projection Java.

-(void)dispose;

unregisterPushNotification

Annulez l’inscription de tous les appareils précédemment inscrits de la réception des notifications Push d’appels entrants.

-(void)unregisterPushNotificationWithCompletionHandler:(void (^)(NSError *error))completionHandler;

Paramètres

  • completionHandler - Bloc à appeler de façon asynchrone une fois l’opération terminée.

Retours

  • void

startCall

Démarre un appel

-(void)startCall:(NSArray<id<CommunicationIdentifier>>* _Nonnull)participants
            options:(ACSStartCallOptions* _Nullable)options
withCompletionHandler:(void (^ _Nonnull)(ACSCall* _Nullable call, NSError* _Nullable error))completionHandler

Paramètres

  • participants - Collection de participants avec laquelle commencer l’appel.
  • options- Instance d’options d’appel de démarrage.
  • completionHandler - Bloc à appeler de façon asynchrone une fois l’opération terminée.

joinWithMeetingLocator

Participe à une réunion de groupe.

-(void)joinWithMeetingLocator:(ACSJoinMeetingLocator* _Nonnull)meetingLocator
              joinCallOptions:(ACSJoinCallOptions* _Nullable)joinCallOptions
withCompletionHandler:(void (^ _Nonnull)(ACSCall* _Nullable call, NSError* _Nullable error))completionHandler;

Paramètres

  • meetingLocator - ID ou lien de réunion pour rejoindre une réunion de groupe.
  • joinCallOptions - Options de participation à la réunion de groupe.
  • completionHandler - Bloc à appeler de façon asynchrone une fois l’opération terminée.

registerPushNotifications

Inscrire des appareils pour recevoir des notifications Push d’appel entrantes.

-(void)registerPushNotifications: (NSData* _Nonnull)deviceToken withCompletionHandler:(void (^ _Nonnull)(NSError* _Nullable error))completionHandler;

Paramètres

  • deviceToken - Appareils à inscrire pour la notification Push.
  • completionHandler - Bloc à appeler de façon asynchrone une fois l’opération terminée.

handlePushNotification

Gère les informations de notification Push.

-(void)handlePushNotification:(ACSPushNotificationInfo* _Nonnull)notification withCompletionHandler:(void (^_Nonnull)(NSError* _Nullable error))completionHandler;

Paramètres

  • notification - Charge utile de la notification Push.
  • completionHandler - Bloc à appeler de façon asynchrone une fois l’opération terminée.

Propriétés

délégué

Objet que vous fournissez pour recevoir des événements de ce instance ACSCallAgent.

@property(nonatomic, assign) id<ACSCallAgentDelegate> delegate;

calls

Retourne la liste de tous les appels actifs.

@property (copy, nonnull, readonly) NSArray<ACSCall *> * calls;