Notification.Action.Builder.SetSemanticAction(SemanticAction) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit la SémantiqueAction pour cette action.
[Android.Runtime.Register("setSemanticAction", "(I)Landroid/app/Notification$Action$Builder;", "", ApiSince=28)]
public Android.App.Notification.Action.Builder SetSemanticAction(Android.App.SemanticAction semanticAction);
[<Android.Runtime.Register("setSemanticAction", "(I)Landroid/app/Notification$Action$Builder;", "", ApiSince=28)>]
member this.SetSemanticAction : Android.App.SemanticAction -> Android.App.Notification.Action.Builder
Paramètres
- semanticAction
- SemanticAction
int : sémantique définie dans l’action avec des préfixes SEMANTIC_ACTION_. La valeur est l’une des valeurs suivantes : Notification.Action.SEMANTIC_ACTION_NONE Notification.Action.SEMANTIC_ACTION_REPLY Notification.Action.SEMANTIC_ACTION_MARK_AS_READ Notification.Action.SEMANTIC_ACTION_MARK_AS_UNREAD Notification.Action.SEMANTIC_ACTION_DELETE Notification.Action.SEMANTIC_ACTION_ARCHIVE Notification.Action.SEMANTIC_ACTION_MUTE Notification.Action.SEMANTIC_ACTION_UNMUTE Notification.Action.SEMANTIC_ACTION_THUMBS_UP Notification.Action.SEMANTIC_ ACTION_THUMBS_DOWN Notification.Action.SEMANTIC_ACTION_CALL Notification.Action.SEMANTIC_ACTION_PLAY Notification.Action.SEMANTIC_ACTION_PAUSE Notification.Action.SEMANTIC_ACTION_STOP
Retours
Cette instance Android.App.Notification.Action.Builder, autorisant les appels à être chaînés.
- Attributs
Remarques
Définit la SémantiqueAction pour cette action. Une SemanticAction indique ce que fait PendingIntent d’une action (par exemple, répondre, marquer comme lus, supprimer, etc.).
Référence Android pour android.app.Notification.Action.Builder.setSemanticAction.
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.