Partager via


Classe ACSCall

Déclaration

@interface ACSCall : NSObject;

Descriptif

Décrit un appel

Méthodes

addParticipant

Ajoutez des participants à l’appel avec des IRM.

-(ACSRemoteParticipant* _Nullable)addParticipant:(id<CommunicationIdentifier> _Nonnull)participant withError:(NSError*_Nullable*_Nonnull) error __attribute__((swift_error(nonnull_error)));

Ajoutez des participants à l’appel avec des numéros de téléphone.

-(ACSRemoteParticipant* _Nullable)addParticipant:(PhoneNumberIdentifier* _Nonnull) participant options:(ACSAddPhoneNumberOptions* _Nullable)options withError:(NSError*_Nullable*_Nonnull) error __attribute__((swift_error(nonnull_error)));

feature

Extensions de fonctionnalités pour l’appel.

-(id _Nonnull)feature: (Class _Nonnull)featureClass;

startAudio

Démarrer le flux audio

-(void)startAudio:(ACSCallAudioStream *)stream withCompletionHandler:(void (^)(NSError *error))completionHandler;

Paramètres

  • stream -
  • completionHandler - Un bloc à appeler de manière asynchrone une fois l’opération terminée.

Retours

  • void

stopAudio

Arrêter le flux audio

-(void)stopAudio:(ACSCallAudioStream *)stream withCompletionHandler:(void (^)(NSError *error))completionHandler;

Paramètres

  • stream -
  • completionHandler - Un bloc à appeler de manière asynchrone une fois l’opération terminée.

Retours

  • void

Muet

Coupez le microphone local.

-(void)muteWithCompletionHandler:(void (^)(NSError *error))completionHandler DEPRECATED_MSG_ATTRIBUTE("Use muteOutgoingAudio instead");

Paramètres

  • completionHandler - Un bloc à appeler de manière asynchrone une fois l’opération terminée.

Retours

  • void

Réactiver le son

Réactiver le microphone local.

-(void)unmuteWithCompletionHandler:(void (^)(NSError *error))completionHandler DEPRECATED_MSG_ATTRIBUTE("Use unmuteOutgoingAudio instead");

Paramètres

  • completionHandler - Un bloc à appeler de manière asynchrone une fois l’opération terminée.

Retours

  • void

muteIncomingAudio

Couper le haut-parleur.

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

Paramètres

  • completionHandler - Un bloc à appeler de manière asynchrone une fois l’opération terminée.

Retours

  • void

unmuteIncomingAudio

Haut-parleur UnMute.

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

Paramètres

  • completionHandler - Un bloc à appeler de manière asynchrone une fois l’opération terminée.

Retours

  • void

réactiver le sonAudio sortant

Désactiver le microphone (Unmute microphone).

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

Paramètres

  • completionHandler - Un bloc à appeler de manière asynchrone une fois l’opération terminée.

Retours

  • void

muetSortantAudio

Couper le microphone.

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

Paramètres

  • completionHandler - Un bloc à appeler de manière asynchrone une fois l’opération terminée.

Retours

  • void

sendDtmf

Envoyer la tonalité DTMF

-(void)sendDtmf:(ACSDtmfTone)tone withCompletionHandler:(void (^)(NSError *error))completionHandler;

Paramètres

  • tone -
  • completionHandler - Un bloc à appeler de manière asynchrone une fois l’opération terminée.

Retours

  • void

startVidéo

Commencer à partager le flux vidéo de l’appel

-(void)startVideo:(ACSOutgoingVideoStream *)stream withCompletionHandler:(void (^)(NSError *error))completionHandler;

Paramètres

  • stream - Flux vidéo local à partager
  • completionHandler - Un bloc à appeler de manière asynchrone une fois l’opération terminée.

Retours

  • void

stopVidéo

Arrêter le partage du flux vidéo de l’appel

-(void)stopVideo:(ACSOutgoingVideoStream *)stream withCompletionHandler:(void (^)(NSError *error))completionHandler;

Paramètres

  • stream - Flux vidéo local pour arrêter le partage
  • completionHandler - Un bloc à appeler de manière asynchrone une fois l’opération terminée.

Retours

  • void

Raccrocher

Raccrocher un appel

-(void)hangUp:(ACSHangUpOptions *)options withCompletionHandler:(void (^)(NSError *error))completionHandler;

Paramètres

  • options - Options de raccrochage d’appel
  • completionHandler - Un bloc à appeler de manière asynchrone une fois l’opération terminée.

Retours

  • void

removeParticipant

Supprimer un participant d’un appel

-(void)removeParticipant:(ACSRemoteParticipant *)participant withCompletionHandler:(void (^)(NSError *error))completionHandler;

Paramètres

  • participant -
  • completionHandler - Un bloc à appeler de manière asynchrone une fois l’opération terminée.

Retours

  • void

tenir

Mettre cet appel en attente

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

Paramètres

  • completionHandler - Un bloc à appeler de manière asynchrone une fois l’opération terminée.

Retours

  • void

reprendre

Reprendre cet appel

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

Paramètres

  • completionHandler - Un bloc à appeler de manière asynchrone une fois l’opération terminée.

Retours

  • void

Propriétés

déléguer

Objet que vous fournissez pour recevoir des événements de cette instance ACSCall.

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

à distanceParticipants

Obtenez la liste des participants distants à l’appel en cours. En cas d’appels avec des participants de cent personnes ou plus, seuls les participants actifs dans les médias sont présents dans cette collection.

@property (copy, nonnull, readonly) NSArray<ACSRemoteParticipant *> * remoteParticipants;

pièce d'identité

Id de l’appel

@property (retain, nonnull, readonly) NSString * id;

état

État actuel de l’appel

@property (readonly) ACSCallState state;

callEndReason

Contenant un code/sous-code indiquant la fin d’un appel

@property (retain, nonnull, readonly) ACSCallEndReason * callEndReason;

direction

Sortant ou entrant selon la direction de l’appel

@property (readonly) ACSCallDirection direction;

isMuted

Que le microphone local soit coupé ou non.

@property (readonly) BOOL isMuted DEPRECATED_MSG_ATTRIBUTE("Use isOutgoingAudioMuted instead");

isOutgoingAudioMuted

Que le microphone local soit coupé ou non.

@property (readonly) BOOL isOutgoingAudioMuted;

isIncomingAudioMuted

Que le haut-parleur local soit coupé ou non.

@property (readonly) BOOL isIncomingAudioMuted;

callerInfo

L’identité de l’appelant

@property (retain, nonnull, readonly) ACSCallerInfo * callerInfo;

callLobby

Obtenez le lobby de réunion Teams.

@property (retain, nonnull, readonly) ACSCallLobby * callLobby;

activeIncomingAudioStream

Flux audio entrant actuellement actif dans l’appel

@property (retain, nonnull, readonly) ACSIncomingAudioStream * activeIncomingAudioStream;

activeSortantAudioStream

Flux audio sortant actuellement actif dans l’appel

@property (retain, nonnull, readonly) ACSOutgoingAudioStream * activeOutgoingAudioStream;

callParticipantRole

Rôle du participant à l’appel

@property (readonly) ACSCallParticipantRole callParticipantRole;

localVideoStreams

Obtenez la liste des flux vidéo locaux de l’appel en cours.

@property (copy, nonnull, readonly) NSArray<ACSLocalVideoStream *> * localVideoStreams DEPRECATED_MSG_ATTRIBUTE("Use outgoingVideoStreams instead");

sortantVideoStreams

Obtenez une liste des flux sortants dans l’appel en cours.

@property (copy, nonnull, readonly) NSArray<ACSOutgoingVideoStream *> * outgoingVideoStreams;

totalParticipantCount

Nombre total de participants actifs dans l’appel en cours

@property (readonly) int totalParticipantCount;

liveOutgoingAudioFilters

Obtenir les filtres audio sortants configurables actuels

@property (retain, nonnull, readonly) ACSLiveOutgoingAudioFilters * liveOutgoingAudioFilters;