aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/notification/silent/index.md
blob: b621c5e51046fc46b2fb1082dba34b791dda920a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
title: Notification.silent
slug: Web/API/notification/silent
tags:
  - API
  - API Notifications
  - Notifications
  - Propriété
  - Reference
  - Vibration
  - Vibreur
  - silencieuse
  - silent
translation_of: Web/API/Notification/silent
---
{{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{securecontext_header}}

La propriété en lecture seule **`silent`** de l'interface {{domxref ("Notification")}} spécifie si la notification doit être silencieuse, c'est-à-dire qu'aucun son ou vibration ne doit être émis, quels que soient les paramètres de l'appareil. Ceci est comme définis à l'aide de l'option `silent` lors de la création de la notification à l'aide du constructeur {{domxref ("Notification.Notification", "Notification()")}}.

## Syntaxe

    Notification.silent

### Valeur

Un {{domxref("Boolean")}}. `false` est la valeur par défaut; `true` rend la notification silencieuse.

## Spécifications

| Spécification                                                                                | État                                     | Commentaire     |
| -------------------------------------------------------------------------------------------- | ---------------------------------------- | --------------- |
| {{SpecName('Web Notifications','#dom-notification-silent','silent')}} | {{Spec2('Web Notifications')}} | Living standard |

## Compatibilité des navigateurs

{{Compat("api.Notification.silent")}}

## Voir également

- [Utilisation de l'API Notifications](/fr/docs/Web/API/Notifications_API/Using_the_Notifications_API)