Preparing search index...
The search index is not available
GamePush SDK Typed Documentation
GamePush SDK Typed Documentation
Leaderboard
Class Leaderboard
Hierarchy (
view full
)
EventEmitter
<
LeaderboardEvents
>
Leaderboard
Index
Constructors
constructor
Properties
_events
gp
Methods
fetch
fetch
Player
Rating
fetch
Player
Rating
Scoped
fetch
Scoped
off
on
once
open
open
Scoped
publish
Record
Constructors
constructor
new
Leaderboard
(
gp
)
:
Leaderboard
Parameters
gp
:
CoreSDK
Returns
Leaderboard
Properties
Private
_events
_events
:
EventLite
= ...
Private
gp
gp
:
CoreSDK
Methods
fetch
fetch
(
searchQuery
?
)
:
Promise
<
RatingData
>
Parameters
searchQuery
:
Omit
<
GetLeaderboardQuery
,
"playerId"
|
"displayFields"
>
= {}
Returns
Promise
<
RatingData
>
fetch
Player
Rating
fetch
Player
Rating
(
searchQuery
?
)
:
Promise
<
PlayerRatingData
>
Parameters
searchQuery
:
Omit
<
GetLeaderboardQuery
,
"displayFields"
|
"limit"
|
"withMe"
>
= {}
Returns
Promise
<
PlayerRatingData
>
fetch
Player
Rating
Scoped
fetch
Player
Rating
Scoped
(
searchQuery
)
:
Promise
<
PlayerRatingData
>
Parameters
searchQuery
:
Omit
<
GetLeaderboardVariantQuery
,
"displayFields"
|
"withMe"
>
Returns
Promise
<
PlayerRatingData
>
fetch
Scoped
fetch
Scoped
(
searchQuery
)
:
Promise
<
RatingData
>
Parameters
searchQuery
:
Omit
<
GetLeaderboardVariantQuery
,
"displayFields"
>
Returns
Promise
<
RatingData
>
off
off
<
ET
>
(
type
,
handler
)
:
void
Type Parameters
ET
extends
keyof
LeaderboardEvents
Parameters
type
:
ET
handler
:
(
(
event
,
...
args
)
=>
void
)
(
event
,
...
args
)
:
void
Parameters
event
:
LeaderboardEvents
[
ET
]
Rest
...
args
:
any
Returns
void
Returns
void
on
on
<
ET
>
(
type
,
handler
)
:
void
Type Parameters
ET
extends
keyof
LeaderboardEvents
Parameters
type
:
ET
handler
:
(
(
event
,
...
args
)
=>
void
)
(
event
,
...
args
)
:
void
Parameters
event
:
LeaderboardEvents
[
ET
]
Rest
...
args
:
any
Returns
void
Returns
void
once
once
<
ET
>
(
type
,
handler
)
:
void
Type Parameters
ET
extends
keyof
LeaderboardEvents
Parameters
type
:
ET
handler
:
(
(
event
,
...
args
)
=>
void
)
(
event
,
...
args
)
:
void
Parameters
event
:
LeaderboardEvents
[
ET
]
Rest
...
args
:
any
Returns
void
Returns
void
open
open
(
searchQuery
?
)
:
Promise
<
void
>
Parameters
searchQuery
:
GetLeaderboardQuery
= ...
Returns
Promise
<
void
>
open
Scoped
open
Scoped
(
searchQuery
)
:
Promise
<
void
>
Parameters
searchQuery
:
GetLeaderboardVariantQuery
Returns
Promise
<
void
>
publish
Record
publish
Record
(
query
)
:
Promise
<
PlayerRecordData
>
Parameters
query
:
PublishRecordQuery
Returns
Promise
<
PlayerRecordData
>
Settings
Member Visibility
Protected
Private
Inherited
External
Alpha
Beta
Theme
OS
Light
Dark
On This Page
constructor
_events
gp
fetch
fetch
Player
Rating
fetch
Player
Rating
Scoped
fetch
Scoped
off
on
once
open
open
Scoped
publish
Record
GamePush SDK Typed Documentation
Loading...