From 8227d1cefb20e357250a4a7fe8da32141b6cfc1e Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期二, 24 八月 2021 17:29:10 +0800 Subject: [PATCH] 提交原生sdk工程 --- HDLLinPhoneSDK/HDLLinPhoneSDK/HDLLPOnMonitorViewController.m | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLLPOnMonitorViewController.m b/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLLPOnMonitorViewController.m index f11f591..cdf8a18 100644 --- a/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLLPOnMonitorViewController.m +++ b/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLLPOnMonitorViewController.m @@ -85,9 +85,21 @@ if (self.titleName&&self.titleName.length!=0) { self.titleUILabel.text=self.titleName; } + + [NSNotificationCenter.defaultCenter addObserver:self + selector:@selector(registrationUpdate:) + name:@"LinphoneRegistrationUpdate" + object:nil]; } - +- (void)registrationUpdate:(NSNotification *)notif { + int state = [[notif.userInfo objectForKey:@"state"] intValue]; + if(state==11){//鎸傛柇浜� + NSLog(@"鎸傛柇鎴栧嚭閿欎簡"); + [self showUIAlertViewWithBack:@"鐩戣缁撴潫"]; + + } +} -(void)initLlanguage{ NSString *languageName = [[[NSUserDefaults standardUserDefaults] objectForKey:@"AppleLanguages"] objectAtIndex:0]; -- Gitblit v1.8.0