Connection.OnReject Method

Definition

Overloads

OnReject()

Notifies this Connection, which is in #STATE_RINGING, of a request to reject.

OnReject(Int32)

Notifies this Connection, which is in #STATE_RINGING, of a request to reject.

OnReject(String)

Notifies this Connection, which is in #STATE_RINGING, of a request to reject with a message.

OnReject()

Notifies this Connection, which is in #STATE_RINGING, of a request to reject.

[Android.Runtime.Register("onReject", "()V", "GetOnRejectHandler", ApiSince=23)]
public virtual void OnReject ();
[<Android.Runtime.Register("onReject", "()V", "GetOnRejectHandler", ApiSince=23)>]
abstract member OnReject : unit -> unit
override this.OnReject : unit -> unit
Attributes

Remarks

Notifies this Connection, which is in #STATE_RINGING, of a request to reject.

For managed ConnectionServices, this will be called when the user rejects a call via the default dialer's InCallService.

Although a self-managed ConnectionService provides its own incoming call UI, the Telecom framework may request that the call is rejected in the following circumstances: <ul> <li>The user chooses to reject an incoming call via a Bluetooth device.</li> <li>A car mode InCallService is in use which has declared TelecomManager#METADATA_INCLUDE_SELF_MANAGED_CALLS in its manifest. Such an InCallService will be able to see calls from self-managed ConnectionServices, and will be able to display an incoming call UI on their behalf.</li> </ul>

Java documentation for android.telecom.Connection.onReject().

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

OnReject(Int32)

Notifies this Connection, which is in #STATE_RINGING, of a request to reject.

[Android.Runtime.Register("onReject", "(I)V", "GetOnReject_IHandler", ApiSince=30)]
public virtual void OnReject (int rejectReason);
[<Android.Runtime.Register("onReject", "(I)V", "GetOnReject_IHandler", ApiSince=30)>]
abstract member OnReject : int -> unit
override this.OnReject : int -> unit

Parameters

rejectReason
Int32

the reason the user provided for rejecting the call.

Attributes

Remarks

Notifies this Connection, which is in #STATE_RINGING, of a request to reject.

For managed ConnectionServices, this will be called when the user rejects a call via the default dialer's InCallService using Call#reject(int).

Java documentation for android.telecom.Connection.onReject(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

OnReject(String)

Notifies this Connection, which is in #STATE_RINGING, of a request to reject with a message.

[Android.Runtime.Register("onReject", "(Ljava/lang/String;)V", "GetOnReject_Ljava_lang_String_Handler", ApiSince=24)]
public virtual void OnReject (string? replyMessage);
[<Android.Runtime.Register("onReject", "(Ljava/lang/String;)V", "GetOnReject_Ljava_lang_String_Handler", ApiSince=24)>]
abstract member OnReject : string -> unit
override this.OnReject : string -> unit

Parameters

replyMessage
String
Attributes

Remarks

Notifies this Connection, which is in #STATE_RINGING, of a request to reject with a message.

Java documentation for android.telecom.Connection.onReject(java.lang.String).

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