Lingua

Notification.CallStyle.ForScreeningCall Method

Definition

Create a CallStyle for a call that is being screened.

[Android.Runtime.Register("forScreeningCall", "(Landroid/app/Person;Landroid/app/PendingIntent;Landroid/app/PendingIntent;)Landroid/app/Notification$CallStyle;", "", ApiSince=31)]
public static Android.App.Notification.CallStyle ForScreeningCall(Android.App.Person person, Android.App.PendingIntent hangUpIntent, Android.App.PendingIntent answerIntent);
[<Android.Runtime.Register("forScreeningCall", "(Landroid/app/Person;Landroid/app/PendingIntent;Landroid/app/PendingIntent;)Landroid/app/Notification$CallStyle;", "", ApiSince=31)>]
static member ForScreeningCall : Android.App.Person * Android.App.PendingIntent * Android.App.PendingIntent -> Android.App.Notification.CallStyle

Parameters

person
Person

Person: the person displayed as the caller. The person also needs to have a non-empty name associated with it. This value cannot be null.

hangUpIntent
PendingIntent

PendingIntent: the intent to be sent when the user taps the hang up action. This value cannot be null.

answerIntent
PendingIntent

PendingIntent: the intent to be sent when the user taps the answer action. This value cannot be null.

Returns

This Android.App.Notification.CallStyle instance, allowing calls to be chained.

Attributes

Remarks

Create a CallStyle for a call that is being screened. This notification will have a hang up and an answer action, will allow a single custom action, and will have a default content text for a call that is being screened.

Android reference for android.app.Notification.CallStyle.forScreeningCall.

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