/* * CTCallCenter.h * CFTelephony * * Copyright 2010 Apple, Inc. All rights reserved. * */ #ifdef __OBJC__ #import #import @class CTCall; NS_ASSUME_NONNULL_BEGIN CORETELEPHONY_CLASS_DEPRECATED(4_0, 10_0, "Replaced by CXCallObserver from CallKit.framework") @interface CTCallCenter : NSObject /* * currentCalls * * Discussion: * An array containing CTCall objects for all calls that are currently * in progress. If no calls are active, this will be nil. * */ @property(readonly, retain, nullable) NSSet *currentCalls __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_NA, __MAC_NA, __IPHONE_4_0, __IPHONE_10_0, "Replaced by "); /* * callEventHandler * * Discussion: * A block that will be dispatched on the default priority global dispatch * queue when a new call event occurs. Set this property to a block * that is defined in your application to handle call events. */ @property(nonatomic, copy, nullable) void (^callEventHandler)(CTCall*) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_NA, __MAC_NA, __IPHONE_4_0, __IPHONE_10_0, "Replaced by "); @end NS_ASSUME_NONNULL_END #endif // __OBJC__