- (void)handleInterruption:(NSNotification *)noti
{
AVAudioSessionInterruptionType type = [noti.userInfo[AVAudioSessionInterruptionTypeKey] intValue];
if (AVAudioSessionInterruptionTypeBegan == type) {
_appIsInterrupt = YES;
[_livePush pausePush];
NSLog(@"AVAudioSessionInterruptionTypeBegan");
}
if (
iOS App中断处理
最新推荐文章于 2021-02-17 18:13:57 发布
本文详细探讨了iOS应用程序如何优雅地处理中断事件,如电话来电、系统通知等。内容包括中断通知的捕获、后台任务的使用以及如何在中断后恢复应用状态,确保用户体验的连续性。
摘要由CSDN通过智能技术生成