doc/articles/features/windows-applicationmodel-calls.md
[!TIP] This article covers Uno-specific information for
PhoneCallManager. For a full description of the feature and instructions on using it, see PhoneCallManager Class.
Windows.ApplicationModel.Calls.PhoneCallManager allows apps to present a phone call UI to the user to allow them to initiate a call.IsCallActive and IsCallIncoming properties.CallStateChanged event is raised when a call is incoming, accepted or dropped.| Feature | Windows | Android | iOS | Web (WASM) | macOS | Linux (Skia) | Win 7 (Skia) |
|---|---|---|---|---|---|---|---|
ShowPhoneCallUI | ✔ | ✔ | ✔ | ✔ | ✖ | ✖ | ✖ |
ShowPhoneCallSettingsUI | ✔ | ✔ | ✖ | ✖ | ✖ | ✖ | ✖ |
CallStateChanged | ✔ | ✔ | ✔ | ✖ | ✖ | ✖ | ✖ |
IsCallActive | ✔ | ✔ | ✔ | ✖ | ✖ | ✖ | ✖ |
IsCallActive | ✔ | ✔ | ✔ | ✖ | ✖ | ✖ | ✖ |
PhoneCallManager.ShowPhoneCallUI("123456789", "Jon Doe");
PhoneCallManager.CallStateChanged += PhoneCallManager_CallStateChanged;
private void PhoneCallManager_CallStateChanged(object sender, object e)
{
var isCallActive = PhoneCallManager.IsCallActive;
var isCallIncoming = PhoneCallManager.IsCallIncoming;
}
For the ShowPhoneCallUI method, the second parameter (displayName) is not utilized on non-Windows targets - only the phone number is displayed to the user.