Search
Preparing search index...
The search index is not available
game-score-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
game-score-sdk
Files
Class Files
Hierarchy
EventEmitter
<
FilesEvents
>
Files
Index
Constructors
constructor
Properties
#manager
_events
Accessors
can
Upload
Methods
choose
File
fetch
fetch
More
load
Content
off
on
once
upload
upload
Content
upload
Url
Constructors
constructor
new
Files
(
gp
:
CoreSDK
, acl
:
PlayerACL
)
:
Files
Parameters
gp:
CoreSDK
acl:
PlayerACL
Returns
Files
Properties
Private
#manager
#manager
:
default
<
FileInfo
>
= ...
Private
_events
_events
:
EventLite
= ...
Accessors
can
Upload
get
canUpload
(
)
:
boolean
Returns
boolean
Methods
choose
File
choose
File
(
accept
:
string
)
:
Promise
<
FilePickerOutput
>
Parameters
accept:
string
Returns
Promise
<
FilePickerOutput
>
fetch
fetch
(
query
?:
FetchFilesInput
)
:
Promise
<
FetchFilesOutput
<
FileInfo
>
>
Parameters
query:
FetchFilesInput
= {}
Returns
Promise
<
FetchFilesOutput
<
FileInfo
>
>
fetch
More
fetch
More
(
query
?:
FetchFilesInput
)
:
Promise
<
FetchFilesOutput
<
FileInfo
>
>
Parameters
query:
FetchFilesInput
= {}
Returns
Promise
<
FetchFilesOutput
<
FileInfo
>
>
load
Content
load
Content
(
src
:
string
)
:
Promise
<
string
>
Parameters
src:
string
Returns
Promise
<
string
>
off
off
<
ET
>
(
type
:
ET
, handler
:
(
(
event
:
FilesEvents
[
ET
]
)
=>
void
)
)
:
void
Type Parameters
ET
extends
keyof
FilesEvents
Parameters
type:
ET
handler:
(
(
event
:
FilesEvents
[
ET
]
)
=>
void
)
(
event
:
FilesEvents
[
ET
]
)
:
void
Parameters
event:
FilesEvents
[
ET
]
Returns
void
Returns
void
on
on
<
ET
>
(
type
:
ET
, handler
:
(
(
event
:
FilesEvents
[
ET
]
)
=>
void
)
)
:
void
Type Parameters
ET
extends
keyof
FilesEvents
Parameters
type:
ET
handler:
(
(
event
:
FilesEvents
[
ET
]
)
=>
void
)
(
event
:
FilesEvents
[
ET
]
)
:
void
Parameters
event:
FilesEvents
[
ET
]
Returns
void
Returns
void
once
once
<
ET
>
(
type
:
ET
, handler
:
(
(
event
:
FilesEvents
[
ET
]
)
=>
void
)
)
:
void
Type Parameters
ET
extends
keyof
FilesEvents
Parameters
type:
ET
handler:
(
(
event
:
FilesEvents
[
ET
]
)
=>
void
)
(
event
:
FilesEvents
[
ET
]
)
:
void
Parameters
event:
FilesEvents
[
ET
]
Returns
void
Returns
void
upload
upload
(
query
:
UploadPlayerFileInput
)
:
Promise
<
FileInfo
>
Parameters
query:
UploadPlayerFileInput
Returns
Promise
<
FileInfo
>
upload
Content
upload
Content
(
query
:
Omit
<
UploadPlayerFileInput
,
"file"
>
&
{
content
:
string
;
filename
:
string
}
)
:
Promise
<
FileInfo
>
Parameters
query:
Omit
<
UploadPlayerFileInput
,
"file"
>
&
{
content
:
string
;
filename
:
string
}
Returns
Promise
<
FileInfo
>
upload
Url
upload
Url
(
query
:
Omit
<
UploadPlayerFileInput
,
"file"
>
&
{
filename
:
string
;
url
:
string
}
)
:
Promise
<
FileInfo
>
Parameters
query:
Omit
<
UploadPlayerFileInput
,
"file"
>
&
{
filename
:
string
;
url
:
string
}
Returns
Promise
<
FileInfo
>
Exports
Files
constructor
#manager
_events
can
Upload
choose
File
fetch
fetch
More
load
Content
off
on
once
upload
upload
Content
upload
Url
Generated using
TypeDoc