Language

Notification.CallStyle.ForIncomingCall Method

Definition

Create a CallStyle for an incoming call.

[Android.Runtime.Register("forIncomingCall", "(Landroid/app/Person;Landroid/app/PendingIntent;Landroid/app/PendingIntent;)Landroid/app/Notification$CallStyle;", "", ApiSince=31)]
public static Android.App.Notification.CallStyle ForIncomingCall(Android.App.Person person, Android.App.PendingIntent declineIntent, Android.App.PendingIntent answerIntent);
[<Android.Runtime.Register("forIncomingCall", "(Landroid/app/Person;Landroid/app/PendingIntent;Landroid/app/PendingIntent;)Landroid/app/Notification$CallStyle;", "", ApiSince=31)>]
static member ForIncomingCall : 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.

declineIntent
PendingIntent

PendingIntent: the intent to be sent when the user taps the decline 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 an incoming call. This notification will have a decline and an answer action, will allow a single custom action, and will have a default content text for an incoming call.

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

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