共用方式為


Call.Reject Method

Definition

Overloads

Reject(Int32)

Instructs the ConnectionService providing this #STATE_RINGING call that the user has chosen to reject the call and has indicated a reason why the call is being rejected.

Reject(Boolean, String)

Instructs this #STATE_RINGINGCall to reject.

Reject(Int32)

Instructs the ConnectionService providing this #STATE_RINGING call that the user has chosen to reject the call and has indicated a reason why the call is being rejected.

[Android.Runtime.Register("reject", "(I)V", "", ApiSince=30)]
public void Reject (int rejectReason);
[<Android.Runtime.Register("reject", "(I)V", "", ApiSince=30)>]
member this.Reject : int -> unit

Parameters

rejectReason
Int32

the reason the call is being rejected.

Attributes

Remarks

Instructs the ConnectionService providing this #STATE_RINGING call that the user has chosen to reject the call and has indicated a reason why the call is being rejected.

Java documentation for android.telecom.Call.reject(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

Reject(Boolean, String)

Instructs this #STATE_RINGINGCall to reject.

[Android.Runtime.Register("reject", "(ZLjava/lang/String;)V", "", ApiSince=23)]
public void Reject (bool rejectWithMessage, string? textMessage);
[<Android.Runtime.Register("reject", "(ZLjava/lang/String;)V", "", ApiSince=23)>]
member this.Reject : bool * string -> unit

Parameters

rejectWithMessage
Boolean

Whether to reject with a text message.

textMessage
String

An optional text message with which to respond.

Attributes

Remarks

Instructs this #STATE_RINGINGCall to reject.

Java documentation for android.telecom.Call.reject(boolean, 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