| | |
| | | NSString * callingStr; |
| | | NSString * hangUpStr; |
| | | NSString * endOfCallStr; |
| | | |
| | | |
| | | NSString * cancelStr; |
| | | NSString * tipMsgStr; |
| | | |
| | | // int openDoorTimeout; |
| | | //å
¨å±åé |
| | | SystemSoundID sound; |
| | |
| | | unlockSuccessfullyStr = @"å¼éæå"; |
| | | callingStr = @"æ¥çµä¸..."; |
| | | endOfCallStr = @"éè¯ç»æ"; |
| | | cancelStr = @"åæ¶"; |
| | | tipMsgStr = @"ç¡®å®å¼éå?"; |
| | | }else{ |
| | | tipStr = @"Prompt"; |
| | | okStr = @"OK"; |
| | |
| | | unlockSuccessfullyStr = @"Unlock successfully"; |
| | | callingStr = @"Incoming call"; |
| | | endOfCallStr = @"End of call"; |
| | | cancelStr = @"Cancel"; |
| | | tipMsgStr = @"Are you sure to unlock?"; |
| | | |
| | | } |
| | | } |
| | |
| | | [_unlockImgBtn setImage:[UIImage imageNamed:@"ic_esvideo_on_unlock_unselect"] forState:UIControlStateNormal]; |
| | | //å¼é |
| | | if(self.hdlLinphoneCallDelegate != NULL){ |
| | | [self.hdlLinphoneCallDelegate onUnlockAction]; |
| | | |
| | | UIAlertController *alertController = [UIAlertController alertControllerWithTitle:tipStr message:tipMsgStr preferredStyle:UIAlertControllerStyleAlert]; |
| | | |
| | | // æ·»å åæ¶æé® |
| | | UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:cancelStr style:UIAlertActionStyleCancel handler:nil]; |
| | | [alertController addAction:cancelAction]; |
| | | |
| | | // æ·»å 确认æé® |
| | | WEAKSELF_AT |
| | | UIAlertAction *confirmAction = [UIAlertAction actionWithTitle:okStr style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { |
| | | |
| | | [weakSelf_AT.hdlLinphoneCallDelegate onUnlockAction]; |
| | | }]; |
| | | [alertController addAction:confirmAction]; |
| | | |
| | | // è·åå½åè§å¾æ§å¶å¨ |
| | | UIViewController *currentViewController = [UIApplication sharedApplication].keyWindow.rootViewController; |
| | | |
| | | // æ¾ç¤ºå¼¹çª |
| | | [self presentViewController:alertController animated:YES completion:nil]; |
| | | |
| | | } |
| | | } |
| | | |