Preparing search index...
The search index is not available
GamePush SDK Typed Documentation
GamePush SDK Typed Documentation
Events
Class Events
Hierarchy (
view full
)
EventEmitter
<
EventsEvents
>
Events
Index
Constructors
constructor
Properties
#events
List
#player
Events
List
#sync
Manager
_events
gp
Accessors
active
List
list
Methods
#get
Event
Info
get
Event
has
is
Joined
join
off
on
once
Constructors
constructor
new
Events
(
gp
,
syncManager
,
events
)
:
Events
Parameters
gp
:
CoreSDK
syncManager
:
SyncManager
events
:
Event
[]
Returns
Events
Properties
Private
#events
List
#events
List
:
Event
[]
= []
Private
#player
Events
List
#player
Events
List
:
PlayerEvent
[]
= []
Private
#sync
Manager
#sync
Manager
:
SyncManager
Private
_events
_events
:
EventLite
= ...
Private
gp
gp
:
CoreSDK
Accessors
active
List
get
activeList
(
)
:
PlayerEvent
[]
Returns
PlayerEvent
[]
list
get
list
(
)
:
Event
[]
Returns
Event
[]
Methods
Private
#get
Event
Info
#get
Event
Info
(
eventId
)
:
PlayerEventInfo
Parameters
eventId
:
string
|
number
Returns
PlayerEventInfo
get
Event
get
Event
(
idOrTag
)
:
EventInfo
Parameters
idOrTag
:
string
|
number
Returns
EventInfo
has
has
(
eventId
)
:
boolean
Parameters
eventId
:
string
|
number
Returns
boolean
is
Joined
is
Joined
(
eventId
)
:
boolean
Parameters
eventId
:
string
|
number
Returns
boolean
join
join
(
input
)
:
Promise
<
PlayerEventInfo
>
Parameters
input
:
{
id
?:
number
;
tag
?:
string
;
}
Optional
id
?:
number
Optional
tag
?:
string
Returns
Promise
<
PlayerEventInfo
>
off
off
<
ET
>
(
type
,
handler
)
:
void
Type Parameters
ET
extends
keyof
EventsEvents
Parameters
type
:
ET
handler
:
(
(
event
,
...
args
)
=>
void
)
(
event
,
...
args
)
:
void
Parameters
event
:
EventsEvents
[
ET
]
Rest
...
args
:
any
Returns
void
Returns
void
on
on
<
ET
>
(
type
,
handler
)
:
void
Type Parameters
ET
extends
keyof
EventsEvents
Parameters
type
:
ET
handler
:
(
(
event
,
...
args
)
=>
void
)
(
event
,
...
args
)
:
void
Parameters
event
:
EventsEvents
[
ET
]
Rest
...
args
:
any
Returns
void
Returns
void
once
once
<
ET
>
(
type
,
handler
)
:
void
Type Parameters
ET
extends
keyof
EventsEvents
Parameters
type
:
ET
handler
:
(
(
event
,
...
args
)
=>
void
)
(
event
,
...
args
)
:
void
Parameters
event
:
EventsEvents
[
ET
]
Rest
...
args
:
any
Returns
void
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Alpha
Beta
Theme
OS
Light
Dark
On This Page
constructor
#events
List
#player
Events
List
#sync
Manager
_events
gp
active
List
list
#get
Event
Info
get
Event
has
is
Joined
join
off
on
once
GamePush SDK Typed Documentation
Loading...