Notification.ProgressStyle.Segment.SetSemanticStyle(Int32) 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.
Applique la sémantique au segment.
[Android.Runtime.Register("setSemanticStyle", "(I)Landroid/app/Notification$ProgressStyle$Segment;", "", ApiSince=37)]
public Android.App.Notification.ProgressStyle.Segment SetSemanticStyle(int semanticStyle);
[<Android.Runtime.Register("setSemanticStyle", "(I)Landroid/app/Notification$ProgressStyle$Segment;", "", ApiSince=37)>]
member this.SetSemanticStyle : int -> Android.App.Notification.ProgressStyle.Segment
Paramètres
- semanticStyle
- Int32
La valeur est l’une des valeurs suivantes : Notification.SEMANTIC_STYLE_UNSPECIFIED ; Notification.SEMANTIC_STYLE_INFO ; Notification.SEMANTIC_STYLE_SAFE ; Notification.SEMANTIC_STYLE_CAUTION ; Notification.SEMANTIC_STYLE_DANGER
Retours
- Attributs
Remarques
Applique la sémantique au segment. Lorsque la notification est promue, cette valeur est utilisée pour styler (par exemple, couleur) le segment.
Si une application spécifie à la fois la couleur et le style sémantique, la couleur remplace le style.
Référence Android pour android.app.Notification.ProgressStyle.Segment.setSemanticStyle.
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.