W3cubDocs
/
Deno
W3cubTools
Cheatsheets
About
Deno.PermissionStatus
class
PermissionStatus
extends
EventTarget
{
onchange
:
(
(
this
:
PermissionStatus
,
ev
:
Event
) =>
any
)
|
null
;
readonly
state
:
PermissionState
;
addEventListener
<
K
extends
keyof
PermissionStatusEventMap
>
(
type
:
K
,
listener
:
(
this
:
PermissionStatus
,
ev
:
PermissionStatusEventMap
[
K
]
) =>
any
,
options?
:
boolean
|
AddEventListenerOptions
,
)
:
void
;
addEventListener
(
type
:
string
,
listener
:
EventListenerOrEventListenerObject
,
options?
:
boolean
|
AddEventListenerOptions
,
)
:
void
;
removeEventListener
<
K
extends
keyof
PermissionStatusEventMap
>
(
type
:
K
,
listener
:
(
this
:
PermissionStatus
,
ev
:
PermissionStatusEventMap
[
K
]
) =>
any
,
options?
:
boolean
|
EventListenerOptions
,
)
:
void
;
removeEventListener
(
type
:
string
,
listener
:
EventListenerOrEventListenerObject
,
options?
:
boolean
|
EventListenerOptions
,
)
:
void
;
}
Extends
EventTarget
Properties
onchange
:
(
(
this
:
PermissionStatus
,
ev
:
Event
) =>
any
)
|
null
state
:
PermissionState
Methods
addEventListener
<
K
extends
keyof
PermissionStatusEventMap
>
(
type
:
K
,
listener
:
(
this
:
PermissionStatus
,
ev
:
PermissionStatusEventMap
[
K
]
) =>
any
,
options?
:
boolean
|
AddEventListenerOptions
)
:
void
addEventListener(
type
:
string
,
listener
:
EventListenerOrEventListenerObject
,
options?
:
boolean
|
AddEventListenerOptions
)
:
void
removeEventListener
<
K
extends
keyof
PermissionStatusEventMap
>
(
type
:
K
,
listener
:
(
this
:
PermissionStatus
,
ev
:
PermissionStatusEventMap
[
K
]
) =>
any
,
options?
:
boolean
|
EventListenerOptions
)
:
void
removeEventListener(
type
:
string
,
listener
:
EventListenerOrEventListenerObject
,
options?
:
boolean
|
EventListenerOptions
)
:
void
© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.PermissionStatus