Język

Notification.CallStyle.ForOngoingCall(Person, PendingIntent) Method

Definition

Create a CallStyle for an ongoing call.

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

Parameters

person
Person

Person: the person displayed as being on the other end of the call. 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.

Returns

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

Attributes

Remarks

Create a CallStyle for an ongoing call. This notification will have a hang up action, will allow up to two custom actions, and will have a default content text for an ongoing call.

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

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