Typescript Library Declarations (DOM)
Interface NavigatorBadge
Available only in secure contexts.
interface
NavigatorBadge
{
clearAppBadge
(
)
:
Promise
<
void
>
;
setAppBadge
(
contents
?:
number
)
:
Promise
<
void
>
;
}
Hierarchy
NavigatorBadge (
view full
)
Navigator
Index
Methods
clear
App
Badge
set
App
Badge
Methods
clear
App
Badge
clear
App
Badge
(
)
:
Promise
<
void
>
MDN Reference
Returns
Promise
<
void
>
set
App
Badge
set
App
Badge
(
contents
?
)
:
Promise
<
void
>
MDN Reference
Parameters
Optional
contents
:
number
Returns
Promise
<
void
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Methods
clear
App
Badge
set
App
Badge
Typescript Library Declarations (DOM)
Available only in secure contexts.