¡@

Home 

2014/10/15 ¤U¤È 10:04:52

iphone Programming Glossary: callstate

iOS 5 - CTCallCenter not working for me

http://stackoverflow.com/questions/11215482/ios-5-ctcallcenter-not-working-for-me

alloc init callCenter setCallEventHandler ^ CTCall call NSDictionary dict NSDictionary dictionaryWithObject call.callState forKey @ callState NSNotificationCenter defaultCenter postNotificationName @ CTCallStateDidChange object nil userInfo dict.. setCallEventHandler ^ CTCall call NSDictionary dict NSDictionary dictionaryWithObject call.callState forKey @ callState NSNotificationCenter defaultCenter postNotificationName @ CTCallStateDidChange object nil userInfo dict NSLog @ state changed.. alloc init NSLog @ registering for call center events callCenter setCallEventHandler ^ CTCall call if call.callState isEqualToString CTCallStateConnected else if call.callState isEqualToString CTCallStateDialing else if call.callState isEqualToString..

CallStateDisconnected only detected for incoming calls, not for calls made from my app

http://stackoverflow.com/questions/13553635/callstatedisconnected-only-detected-for-incoming-calls-not-for-calls-made-from

call anounce that we've had a state change in our call center NSDictionary dict NSDictionary dictionaryWithObject call.callState forKey @ callState BREAKPOINT HERE NSNotificationCenter defaultCenter postNotificationName @ CTCallStateDidChange object.. had a state change in our call center NSDictionary dict NSDictionary dictionaryWithObject call.callState forKey @ callState BREAKPOINT HERE NSNotificationCenter defaultCenter postNotificationName @ CTCallStateDidChange object self userInfo dict.. receive them void ctCallStateDidChange1 NSNotification notification NSString call notification userInfo objectForKey @ callState if call isEqualToString CTCallStateDisconnected NSLog @ Call has been disconnected else if call isEqualToString CTCallStateDialing..

Detecting call state in iOS4

http://stackoverflow.com/questions/3319805/detecting-call-state-in-ios4

a block that will get called when call events happen. In this block you'll be passed a CTCall object and can get the callState . So you can get a notification when a call is initiated or ended and handle it appropriately. You can't get which application.. call. For example CTCallCenter callCenter CTCallCenter alloc init callCenter.callEventHandler ^ CTCall call if call.callState CTCallStateDisconnected handle disconnect EDIT Re reading your question you want these events while you are suspended..

Unhiding a view is very slow in CTCallCenter callEventHandler

http://stackoverflow.com/questions/6274642/unhiding-a-view-is-very-slow-in-ctcallcenter-calleventhandler

of research In my app delegate didFinishLaunching I set up a callEventHandler on CTCallCenter. The idea is that when a callState changes I post a notification with a userInfo dict containing the call.callState. In my view I observe this notification.. CTCallCenter. The idea is that when a callState changes I post a notification with a userInfo dict containing the call.callState. In my view I observe this notification and when the userInfo dict contains a value of CTCallDisconnected I want to unhide.. call anounce that we've had a state change in our call center NSDictionary dict NSDictionary dictionaryWithObject call.callState forKey @ callState NSNotificationCenter defaultCenter postNotificationName @ CTCallStateDidChange object self userInfo dict..