Language

CallScreeningService.CallResponse.Builder.SetSilenceCall(Boolean) Method

Definition

Sets whether ringing should be silenced for the incoming call.

[Android.Runtime.Register("setSilenceCall", "(Z)Landroid/telecom/CallScreeningService$CallResponse$Builder;", "GetSetSilenceCall_ZHandler", ApiSince=29)]
public virtual Android.Telecom.CallScreeningService.CallResponse.Builder SetSilenceCall(bool shouldSilenceCall);
[<Android.Runtime.Register("setSilenceCall", "(Z)Landroid/telecom/CallScreeningService$CallResponse$Builder;", "GetSetSilenceCall_ZHandler", ApiSince=29)>]
abstract member SetSilenceCall : bool -> Android.Telecom.CallScreeningService.CallResponse.Builder
override this.SetSilenceCall : bool -> Android.Telecom.CallScreeningService.CallResponse.Builder

Parameters

shouldSilenceCall
Boolean

Returns

Attributes

Remarks

Sets whether ringing should be silenced for the incoming call. When set to true, the Telecom framework will not play a ringtone for the call. The call will, however, still be sent to the default dialer app if it is not blocked. A CallScreeningService can use this to ensure a potential nuisance call is still surfaced to the user, but in a less intrusive manner. Setting this to true only makes sense when the call has not been disallowed using setDisallowCall(boolean).

Android reference for android.telecom.CallScreeningService.CallResponse.Builder.setSilenceCall.

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