@realsee/vr-signals API Documentation - v2.0.0
Preparing search index...
StandardEventManager
Interface StandardEventManager
标准的事件管理器
interface
StandardEventManager
{
addEventListener
(
type
:
string
,
listener
:
null
|
EventListener
|
EventListenerObject
,
options
?:
boolean
|
AddEventListenerOptions
,
)
:
void
;
removeEventListener
(
type
:
string
,
listener
:
null
|
EventListener
|
EventListenerObject
,
options
?:
boolean
|
EventListenerOptions
,
)
:
void
;
addEventListenerWithOptions
(
type
:
string
,
listener
:
null
|
EventListener
|
EventListenerObject
,
options
:
StandardEventOptions
,
)
:
()
=>
void
;
dispatchEvent
(
event
:
Event
)
:
boolean
;
dispatchCustomEvent
<
T
=
any
>
(
type
:
string
,
detail
?:
T
,
options
?:
CustomEventInit
<
T
>
,
)
:
boolean
;
dispatchBuiltInEvent
(
type
:
string
,
options
?:
EventInit
)
:
boolean
;
hasEventListener
(
type
:
string
)
:
boolean
;
getListenerCount
(
type
:
string
)
:
number
;
}
Index
Methods
add
Event
Listener
remove
Event
Listener
add
Event
Listener
With
Options
dispatch
Event
dispatch
Custom
Event
dispatch
Built
In
Event
has
Event
Listener
get
Listener
Count
Methods
add
Event
Listener
addEventListener
(
type
:
string
,
listener
:
null
|
EventListener
|
EventListenerObject
,
options
?:
boolean
|
AddEventListenerOptions
,
)
:
void
Parameters
type
:
string
listener
:
null
|
EventListener
|
EventListenerObject
Optional
options
:
boolean
|
AddEventListenerOptions
Returns
void
remove
Event
Listener
removeEventListener
(
type
:
string
,
listener
:
null
|
EventListener
|
EventListenerObject
,
options
?:
boolean
|
EventListenerOptions
,
)
:
void
Parameters
type
:
string
listener
:
null
|
EventListener
|
EventListenerObject
Optional
options
:
boolean
|
EventListenerOptions
Returns
void
add
Event
Listener
With
Options
addEventListenerWithOptions
(
type
:
string
,
listener
:
null
|
EventListener
|
EventListenerObject
,
options
:
StandardEventOptions
,
)
:
()
=>
void
Parameters
type
:
string
listener
:
null
|
EventListener
|
EventListenerObject
options
:
StandardEventOptions
Returns
()
=>
void
dispatch
Event
dispatchEvent
(
event
:
Event
)
:
boolean
Parameters
event
:
Event
Returns
boolean
dispatch
Custom
Event
dispatchCustomEvent
<
T
=
any
>
(
type
:
string
,
detail
?:
T
,
options
?:
CustomEventInit
<
T
>
,
)
:
boolean
Type Parameters
T
=
any
Parameters
type
:
string
Optional
detail
:
T
Optional
options
:
CustomEventInit
<
T
>
Returns
boolean
dispatch
Built
In
Event
dispatchBuiltInEvent
(
type
:
string
,
options
?:
EventInit
)
:
boolean
Parameters
type
:
string
Optional
options
:
EventInit
Returns
boolean
has
Event
Listener
hasEventListener
(
type
:
string
)
:
boolean
Parameters
type
:
string
Returns
boolean
get
Listener
Count
getListenerCount
(
type
:
string
)
:
number
Parameters
type
:
string
Returns
number
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Methods
add
Event
Listener
remove
Event
Listener
add
Event
Listener
With
Options
dispatch
Event
dispatch
Custom
Event
dispatch
Built
In
Event
has
Event
Listener
get
Listener
Count
@realsee/vr-signals API Documentation - v2.0.0
Loading...
标准的事件管理器