Share via


TelecomManager.EndCall Method

Definition

Ends the foreground call on the device.

[Android.Runtime.Register("endCall", "()Z", "GetEndCallHandler", ApiSince=28)]
[Android.Runtime.RequiresPermission("android.permission.ANSWER_PHONE_CALLS")]
public virtual bool EndCall ();
[<Android.Runtime.Register("endCall", "()Z", "GetEndCallHandler", ApiSince=28)>]
[<Android.Runtime.RequiresPermission("android.permission.ANSWER_PHONE_CALLS")>]
abstract member EndCall : unit -> bool
override this.EndCall : unit -> bool

Returns

true if there is a call which will be rejected or terminated, false otherwise.

Attributes

Remarks

Ends the foreground call on the device.

If there is a ringing call, calling this method rejects the ringing call. Otherwise the foreground call is ended.

Note: this method CANNOT be used to end ongoing emergency calls and will return false if an attempt is made to end an emergency call.

This member is deprecated. Companion apps for wearable devices should use the InCallService API instead. Apps performing call screening should use the CallScreeningService API instead.

Java documentation for android.telecom.TelecomManager.endCall().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to