Skip to content

Latest commit

 

History

History
75 lines (64 loc) · 11 KB

CallKit.md

File metadata and controls

75 lines (64 loc) · 11 KB

CallKit

Symbols: 83.8% of Apple's iOS API (227 of 271, exact) · Rows: 4: 3 ✅ 1 ❌ · iOS: 10.0+

Area: App extensions & system integration · Apple: CallKit · Issues: area:system

How isim implements it

  • Adapted: the shell draws the call UI (isim/runtime/shell_calls.inc), with a synthesized ringtone. There is no telephony.

API

API / feature Status iOS Notes
Calls (CallKit) ✅ ≤17 adapted: isim has no telephony; the app's calls get the system call UI drawn by the shell. CXProvider (reportNewIncomingCall + async, reportCall(with:updated:), reportCall(with:endedAt:reason:), reportOutgoingCall(…startedConnectingAt:) / (…connectedAt:), invalidate, configuration: name, ringtone, video, call groups) and CXProviderDelegate (every action, provider(_:execute:), didActivate / didDeactivate of the audio session); an incoming call shows as a banner while the device is in use (in the Dynamic Island's black) or full screen with "slide to answer" on the Lock Screen, with the ringtone (silent in Silent Mode); answered, the call screen: speaker (AVAudioSession route override), mute, hold (supportsHolding), keypad (DTMF with supportsDTMF), the app's button, End; Home hides it behind the green call indicator (the Dynamic Island's phone and duration). CXCallController requests are checked like iOS (CXErrorCodeRequestTransactionError: empty transaction, unknown call, call exists, maximum call groups, no provider) and performed by the app's provider; CXCallObserver sees the app's calls (not other apps'); calls keep the app running in the background. Stub: Call Directory extensions are never run (reloadExtension fails with extensionDisabled, status disabled, like iOS before the user turns one on). Not drawn: video calls (the video button is shown, no video UI), call merging. Tested (HelloCalls: test_calls, OS matrix)
Objective-C interface (CallKit.framework): CXProvider (setDelegate:queue: with any dispatch queue), CXProviderDelegate, CXProviderConfiguration, CXCallUpdate, CXHandle, the actions, CXTransaction, CXCallController (initWithQueue:), CXCallObserver, CXCall, the error domains and codes, Call Directory (stub) ✅ ≤17 adapted: headers over the Swift overlay's classes (Apple's Objective-C names); a delegate on a queue other than the main queue gets each call on that queue. Tested (HelloServicesObjC: a VoIP push reports an incoming call answered from the call screen, an outgoing call, a refused request, tests/ui/test_services_objc.py)
Types not yet in isim (iOS 17 and earlier) ❌ ≤17 not implemented, found by the 2026-10 sweep: CXErrorCodeNotificationServiceExtensionError.Code (1 type; with its members under "Not yet in isim")
Live Translation (CXSetTranslatingCallAction, CXTranslationEngine, CXProviderConfiguration.supportsAudioTranslation) ✅ 26.0 adapted: a provider that supports audio translation gets a Live Translation button on the call screen (call-translate; the person's language and, by isim's default, Spanish: iOS asks), and the app can ask through CXCallController; the delegate's provider(_:perform:) fulfills it with fulfill(using:), and the call screen shows the two languages. Without supportsAudioTranslation the request fails with invalidAction. isim does not translate the audio (its calls carry none). Objective-C: initWithCallUUID:isTranslating:localLanguage:remoteLanguage:, fulfillUsingTranslationEngine:, provider:performSetTranslatingCallAction:. Tested (HelloCalls, tests/ui/test_calls.py test_live_translation)

Not yet in isim

44 symbols Apple documents for iOS that isim does not have (exact; Apple snapshot 2026-10-14). Each links to Apple's documentation.

List