Class SPXMeeting
Declaration
@class SPXMeeting : NSObject;
Description
Performs meeting management including add and remove participants.
Methods
init:
Initializes a new instance of meeting using the specified speech configuration.
- (instancetype _Nullable)init:(SPXSpeechConfiguration * _Nonnull)speechConfiguration
Parameters
speechConfiguration
- speech configuration.
Returns
a meeting instance.
init:meetingId:
Initializes a new instance of meeting using the specified speech configuration and meeting id.
- (instancetype _Nullable)init:(SPXSpeechConfiguration * _Nonnull)speechConfiguration
meetingId:(NSString * _Nonnull)meetingId
Parameters
speechConfiguration
- speech configuration.meetingId
- a unqiue identification of your meeting.
Returns
a meeting instance.
init:meetingId:error:
Initializes a new instance of meeting using the specified speech configuration and meeting id.
- (instancetype _Nullable)init:(SPXSpeechConfiguration * _Nonnull)speechConfiguration
meetingId:(NSString * _Nonnull)meetingId error:(NSError * _Nullable * _Nullable)outError
Parameters
speechConfiguration
- speech configuration.meetingId
- a unqiue identification of your meeting.outError
- error information.
Returns
a meeting instance.
startMeetingAsync:
Starts a meeting, and provides asynchronous callback with the information is meeting started successfully or not.
- (void)startMeetingAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
Parameters
completedHandler
- the block function to be called when async operation has been completed.
startMeetingAsync:error:
Starts a meeting, and provides asynchronous callback with the information is meeting started successfully or not.
- (BOOL)startMeetingAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
error:(NSError * _Nullable * _Nullable)outError
Parameters
completedHandler
- the block function to be called when async operation has been completed.outError
- error information.
endMeetingAsync:
Ends a meeting, and provides asynchronous callback with the information is meeting ended successfully or not.
- (void)endMeetingAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
Parameters
completedHandler
- the block function to be called when async operation has been completed.
endMeetingAsync:error:
Ends a meeting, and provides asynchronous callback with the information is meeting ended successfully or not.
- (BOOL)endMeetingAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
error:(NSError * _Nullable * _Nullable)outError
Parameters
completedHandler
- the block function to be called when async operation has been completed.outError
- error information.
deleteMeetingAsync:
Deletes a meeting, and provides asynchronous callback with the information is meeting deletion completed. After deleted, no one will be able to join the meeting.
- (void)deleteMeetingAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
Parameters
completedHandler
- the block function to be called when async operation has been completed.
deleteMeetingAsync:error:
Deletes a meeting, and provides asynchronous callback with the information is meeting deletion completed. After deleted, no one will be able to join the meeting.
- (BOOL)deleteMeetingAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
error:(NSError * _Nullable * _Nullable)outError
Parameters
completedHandler
- the block function to be called when async operation has been completed.outError
- error information.
lockMeetingAsync:
Locks a meeting, and provides asynchronous callback with the information is meeting locking completed. After locked, new participants are prevented from joining the meeting.
- (void)lockMeetingAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
Parameters
completedHandler
- the block function to be called when async operation has been completed.
lockMeetingAsync:error:
Locks a meeting, and provides asynchronous callback with the information is meeting locking completed. After locked, new participants are prevented from joining the meeting.
- (BOOL)lockMeetingAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
error:(NSError * _Nullable * _Nullable)outError
Parameters
completedHandler
- the block function to be called when async operation has been completed.outError
- error information.
unlockMeetingAsync:
Unlocks a meeting, and provides asynchronous callback with the information is meeting unlocking completed.
- (void)unlockMeetingAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
Parameters
completedHandler
- the block function to be called when async operation has been completed.
unlockMeetingAsync:error:
Unlocks a meeting, and provides asynchronous callback with the information is meeting unlocking completed.
- (BOOL)unlockMeetingAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
error:(NSError * _Nullable * _Nullable)outError
Parameters
completedHandler
- the block function to be called when async operation has been completed.outError
- error information.
muteAllParticipantsAsync:
Mute all other participants in the meeting. After this no other participants will have their speech recognitions broadcast, nor be able to send text messages.
- (void)muteAllParticipantsAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
Parameters
completedHandler
- the block function to be called when async operation has been completed.
muteAllParticipantsAsync:error:
Mute all other participants in the meeting. After this no other participants will have their speech recognitions broadcast, nor be able to send text messages.
- (BOOL)muteAllParticipantsAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
error:(NSError * _Nullable * _Nullable)outError
Parameters
completedHandler
- the block function to be called when async operation has been completed.outError
- error information.
unmuteAllParticipantsAsync:
Unmute all other participants in the meeting.
- (void)unmuteAllParticipantsAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
Parameters
completedHandler
- the block function to be called when async operation has been completed.
unmuteAllParticipantsAsync:error:
Unmute all other participants in the meeting.
- (BOOL)unmuteAllParticipantsAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
error:(NSError * _Nullable * _Nullable)outError
Parameters
completedHandler
- the block function to be called when async operation has been completed.outError
- error information.
muteParticipantAsync:userId:
Mute participant with a given userId in the meeting.
- (void)muteParticipantAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
userId:(NSString * _Nonnull)userId
Parameters
completedHandler
- the block function to be called when async operation has been completed.userId
- A user identifier.
muteParticipantAsync:userId:error:
Mute participant with a given userId in the meeting.
- (BOOL)muteParticipantAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
userId:(NSString * _Nonnull)userId error:(NSError * _Nullable * _Nullable)outError
Parameters
completedHandler
- the block function to be called when async operation has been completed.userId
- A user identifier.outError
- error information.
unmuteParticipantAsync:userId:
Unmute participant with a given userId in the meeting.
- (void)unmuteParticipantAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
userId:(NSString * _Nonnull)userId
Parameters
completedHandler
- the block function to be called when async operation has been completed.userId
- A user identifier.
unmuteParticipantAsync:userId:error:
Unmute participant with a given userId in the meeting.
- (BOOL)unmuteParticipantAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
userId:(NSString * _Nonnull)userId error:(NSError * _Nullable * _Nullable)outError
Parameters
completedHandler
- the block function to be called when async operation has been completed.userId
- A user identifier.outError
- error information.
addParticipantAsync:userId:
Adds a participant from a meeting using a user id.
- (void)addParticipantAsync:(void (^ _Nonnull)(SPXParticipant * _Nullable, NSError * _Nullable))completedHandler
userId:(NSString * _Nonnull)userId
Parameters
completedHandler
- the block function to be called when async operation has been completed.userId
- A user identifier.
addParticipantAsync:userId:error:
Adds a participant from a meeting using a user id.
- (BOOL)addParticipantAsync:(void (^ _Nonnull)(SPXParticipant * _Nullable, NSError * _Nullable))completedHandler
userId:(NSString * _Nonnull)userId error:(NSError * _Nullable * _Nullable)outError
Parameters
completedHandler
- the block function to be called when async operation has been completed.userId
- A user identifier.outError
- error information.
addParticipantAsync:participant:
Adds a participant from a meeting using a Participant object.
- (void)addParticipantAsync:(void (^ _Nonnull)(SPXParticipant * _Nullable, NSError * _Nullable))completedHandler
participant:(SPXParticipant * _Nonnull)participant
Parameters
completedHandler
- the block function to be called when async operation has been completed.participant
- A Participant instance.
addParticipantAsync:participant:error:
Adds a participant from a meeting using a Participant object.
- (BOOL)addParticipantAsync:(void (^ _Nonnull)(SPXParticipant * _Nullable, NSError * _Nullable))completedHandler
participant:(SPXParticipant * _Nonnull)participant
error:(NSError * _Nullable * _Nullable)outError
Parameters
completedHandler
- the block function to be called when async operation has been completed.participant
- A Participant instance.outError
- error information.
addParticipantAsync:user:
Adds a participant from a meeting using a User object.
- (void)addParticipantAsync:(void (^ _Nonnull)(SPXUser * _Nullable, NSError * _Nullable))completedHandler
user:(SPXUser * _Nonnull)user
Parameters
completedHandler
- the block function to be called when async operation has been completed.user
- A User instance.
addParticipantAsync:user:error:
Adds a participant from a meeting using a User object.
- (BOOL)addParticipantAsync:(void (^ _Nonnull)(SPXUser * _Nullable, NSError * _Nullable))completedHandler
user:(SPXUser * _Nonnull)user error:(NSError * _Nullable * _Nullable)outError
Parameters
completedHandler
- the block function to be called when async operation has been completed.user
- A User instance.outError
- error information.
removeParticipantAsync:userId:
Remove a participant from a meeting using a user id.
- (void)removeParticipantAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
userId:(NSString * _Nonnull)userId
Parameters
completedHandler
- the block function to be called when async operation has been completed.userId
- A user identifier.
removeParticipantAsync:userId:error:
Remove a participant from a meeting using a user id.
- (BOOL)removeParticipantAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
userId:(NSString * _Nonnull)userId error:(NSError * _Nullable * _Nullable)outError
Parameters
completedHandler
- the block function to be called when async operation has been completed.userId
- A user identifier.outError
- error information.
removeParticipantAsync:participant:
Remove a participant from a meeting using a Participant object.
- (void)removeParticipantAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
participant:(SPXParticipant * _Nonnull)participant
Parameters
completedHandler
- the block function to be called when async operation has been completed.participant
- A Participant instance.
removeParticipantAsync:participant:error:
Remove a participant from a meeting using a Participant object.
- (BOOL)removeParticipantAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
participant:(SPXParticipant * _Nonnull)participant
error:(NSError * _Nullable * _Nullable)outError
Parameters
completedHandler
- the block function to be called when async operation has been completed.participant
- A Participant instance.outError
- error information.
removeParticipantAsync:user:
Remove a participant from a meeting using a User object.
- (void)removeParticipantAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
user:(SPXUser * _Nonnull)user
Parameters
completedHandler
- the block function to be called when async operation has been completed.user
- A User instance.
removeParticipantAsync:user:error:
Remove a participant from a meeting using a User object.
- (BOOL)removeParticipantAsync:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completedHandler
user:(SPXUser * _Nonnull)user error:(NSError * _Nullable * _Nullable)outError
Parameters
completedHandler
- the block function to be called when async operation has been completed.user
- A User instance.outError
- error information.
Properties
properties
@property (readonly, atomic) id<SPXPropertyCollection> _Nullable properties;
The collection of properties and their values defined for this SPXMeeting.
meetingId
@property (readwrite, copy, nonatomic) NSString * _Nullable meetingId;
The unique identifier for the meeting.
authorizationToken
@property (readwrite, copy, nonatomic) NSString * _Nullable authorizationToken;
The authorization token used to communicate with the service. Note: The caller needs to ensure that the authorization token is valid. Before the authorization token expires, the caller needs to refresh it by calling this setter with a new valid token. Otherwise, the recognizer will encounter errors during recognition.