TelecomManager.AcceptRingingCall Method

Definition

Overloads

AcceptRingingCall()

If there is a ringing incoming call, this method accepts the call on behalf of the user.

AcceptRingingCall(Int32)

If there is a ringing incoming call, this method accepts the call on behalf of the user, with the specified video state.

AcceptRingingCall()

If there is a ringing incoming call, this method accepts the call on behalf of the user.

[Android.Runtime.Register("acceptRingingCall", "()V", "GetAcceptRingingCallHandler", ApiSince=26)]
public virtual void AcceptRingingCall ();
[<Android.Runtime.Register("acceptRingingCall", "()V", "GetAcceptRingingCallHandler", ApiSince=26)>]
abstract member AcceptRingingCall : unit -> unit
override this.AcceptRingingCall : unit -> unit
Attributes

Remarks

If there is a ringing incoming call, this method accepts the call on behalf of the user.

If the incoming call is a video call, the call will be answered with the same video state as the incoming call requests. This means, for example, that an incoming call requesting VideoProfile#STATE_BIDIRECTIONAL will be answered, accepting that state.

This member is deprecated. Companion apps for wearable devices should use the InCallService API instead.

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

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

AcceptRingingCall(Int32)

If there is a ringing incoming call, this method accepts the call on behalf of the user, with the specified video state.

[Android.Runtime.Register("acceptRingingCall", "(I)V", "GetAcceptRingingCall_IHandler", ApiSince=26)]
public virtual void AcceptRingingCall (int videoState);
[<Android.Runtime.Register("acceptRingingCall", "(I)V", "GetAcceptRingingCall_IHandler", ApiSince=26)>]
abstract member AcceptRingingCall : int -> unit
override this.AcceptRingingCall : int -> unit

Parameters

videoState
Int32

The desired video state to answer the call with.

Attributes

Remarks

If there is a ringing incoming call, this method accepts the call on behalf of the user, with the specified video state.

This member is deprecated. Companion apps for wearable devices should use the InCallService API instead.

Java documentation for android.telecom.TelecomManager.acceptRingingCall(int).

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