Call Information
This topic introduces the functionalities and implementation methods related to call information of 'Linkus SDK for iOS'.
Handle VoIP push notifications
- (void)receiveIncomingPushWithPayload:(NSDictionary *)dictionaryPayload;
Handle missed calls
- (BOOL)didReceiveRemoteNotification:(NSDictionary *)userInfo;
Query information of the current call
- (YLSSipCall *)currentSipCall;
Query information of all the calls
- (NSArray<YLSSipCall *> *)currentSipCalls;
Query SIP registration status
- (BOOL)sipRegister;
Query recording availability
- (BOOL)enableRecord;
Query users' recording permissions
- (BOOL)adminRecord;
Set incoming call delegate
- (void)setIncomingCallDelegate:(id<YLSCallManagerDelegate>)delegate;
Add delegate
- (void)addDelegate:(id<YLSCallManagerDelegate>)delegate;
- (void)addDelegate:(id<YLSCallStatusManagerDelegate>)delegate;
Remove delegate
- (void)removeDelegate:(id<YLSCallManagerDelegate>)delegate;
SDK notification callbacks
/**
* Incoming call callback
*/
- (void)callManager:(YLSCallManager *)callManager contact:(void (^)(id<YLSContactProtocol> (^block)(NSString *number)))contact completion:(void (^)(void (^controllerBlock)(void),void (^errorBlock)(NSError *error)))completion;
/**
* Call status change callback
*/
- (void)callManager:(YLSCallManager *)callManager callInfoStatus:(NSMutableArray<YLSSipCall *> *)currenCallArr;
/**
* SIP error code callback
*/
- (void)callManager:(YLSCallManager *)callManager callFaild:(NSError *)error;
/**
* Call recording status callback
*/
- (void)callManagerRecordType:(YLSCallManager *)callManager;
/**
* Current call quality callback
*/
- (void)callManager:(YLSCallManager *)callManager callQuality:(BOOL)quality;
/**
* Call waiting callback
*/
- (BOOL)callWaitingSupport;