Can we fire an event when ever there is Incoming and Outgoing call in iphone?

后端 未结 3 1741
情话喂你
情话喂你 2020-12-18 06:22

Can I fire an event when ever there is Incoming and Outgoing call ends on iphone? Axample of an event is calling a webservice .

3条回答
  •  隐瞒了意图╮
    2020-12-18 06:33

    No but you do get callbacks into the app when those events happen.

        -(void)applicationWillResignActive:(UIApplication *)application{
            //our app is going to loose focus since thier is an incoming call
            [self pauseApp];
        }
    
        -(void)applicationDidBecomeActive:(UIApplication *)application{
                //the user declined the call and is returning to our app
                [self resumeApp];
        }
    

提交回复
热议问题