Langue

Notification.CallStyle.ForScreeningCall Méthode

Définition

Créez un CallStyle pour un appel en cours d’écran.

[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

Paramètres

person
Person

Personne : la personne affichée en tant qu’appelant. La personne doit également avoir un nom non vide associé à celui-ci. Cette valeur ne peut pas être null.

hangUpIntent
PendingIntent

PendingIntent : l’intention à envoyer lorsque l’utilisateur appuie sur l’action de blocage. Cette valeur ne peut pas être null.

answerIntent
PendingIntent

PendingIntent : l’intention à envoyer lorsque l’utilisateur appuie sur l’action de réponse. Cette valeur ne peut pas être null.

Retours

Cette instance Android.App.Notification.CallStyle, autorisant les appels à être chaînés.

Attributs

Remarques

Créez un CallStyle pour un appel en cours d’écran. Cette notification aura un blocage et une action de réponse, permettra une action personnalisée unique et aura un texte de contenu par défaut pour un appel en cours d’écran.

Référence Android pour android.app.Notification.CallStyle.forScreeningCall.

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à