ToastParams():setBackgroundColor()
Définit la couleur d'arrière-plan du toast.
Signature
setBackgroundColor(hexColor: string): ToastParams
Paramètres
| Paramètre | Type | Description |
|---|---|---|
| hexColor | string | Couleur hexadécimale, par exemple #1E1E2E |
Renvoie
ToastParams, ce qui permet de chaîner les appels.
Exemple
Utils:toast("Saved", ToastParams():setBackgroundColor("#2E7D32"):setDuration(2000))