Preparing search index...
The search index is not available
GamePush SDK Typed Documentation
GamePush SDK Typed Documentation
Files
Class Files
Hierarchy (
view full
)
EventEmitter
<
FilesEvents
>
Files
Index
Constructors
constructor
Properties
#manager
_events
acl
gp
Accessors
can
Upload
Methods
choose
File
fetch
fetch
More
load
Content
off
on
once
upload
upload
Content
upload
Url
Constructors
constructor
new
Files
(
gp
,
acl
)
:
Files
Parameters
gp
:
CoreSDK
acl
:
PlayerACL
Returns
Files
Properties
Private
#manager
#manager
:
default
<
FileInfo
>
= ...
Private
_events
_events
:
EventLite
= ...
Private
acl
acl
:
PlayerACL
Private
gp
gp
:
CoreSDK
Accessors
can
Upload
get
canUpload
(
)
:
boolean
Returns
boolean
Methods
choose
File
choose
File
(
accept
)
:
Promise
<
FilePickerOutput
>
Parameters
accept
:
string
Returns
Promise
<
FilePickerOutput
>
fetch
fetch
(
query
?
)
:
Promise
<
FetchFilesOutput
<
FileInfo
>
>
Parameters
query
:
FetchFilesInput
= {}
Returns
Promise
<
FetchFilesOutput
<
FileInfo
>
>
fetch
More
fetch
More
(
query
?
)
:
Promise
<
FetchFilesOutput
<
FileInfo
>
>
Parameters
query
:
FetchFilesInput
= {}
Returns
Promise
<
FetchFilesOutput
<
FileInfo
>
>
load
Content
load
Content
(
src
)
:
Promise
<
string
>
Parameters
src
:
string
Returns
Promise
<
string
>
off
off
<
ET
>
(
type
,
handler
)
:
void
Type Parameters
ET
extends
keyof
FilesEvents
Parameters
type
:
ET
handler
:
(
(
event
,
...
args
)
=>
void
)
(
event
,
...
args
)
:
void
Parameters
event
:
FilesEvents
[
ET
]
Rest
...
args
:
any
Returns
void
Returns
void
on
on
<
ET
>
(
type
,
handler
)
:
void
Type Parameters
ET
extends
keyof
FilesEvents
Parameters
type
:
ET
handler
:
(
(
event
,
...
args
)
=>
void
)
(
event
,
...
args
)
:
void
Parameters
event
:
FilesEvents
[
ET
]
Rest
...
args
:
any
Returns
void
Returns
void
once
once
<
ET
>
(
type
,
handler
)
:
void
Type Parameters
ET
extends
keyof
FilesEvents
Parameters
type
:
ET
handler
:
(
(
event
,
...
args
)
=>
void
)
(
event
,
...
args
)
:
void
Parameters
event
:
FilesEvents
[
ET
]
Rest
...
args
:
any
Returns
void
Returns
void
upload
upload
(
query
)
:
Promise
<
FileInfo
>
Parameters
query
:
UploadPlayerFileInput
Returns
Promise
<
FileInfo
>
upload
Content
upload
Content
(
query
)
:
Promise
<
FileInfo
>
Parameters
query
:
Omit
<
UploadPlayerFileInput
,
"file"
>
&
{
content
:
string
;
filename
:
string
;
}
Returns
Promise
<
FileInfo
>
upload
Url
upload
Url
(
query
)
:
Promise
<
FileInfo
>
Parameters
query
:
Omit
<
UploadPlayerFileInput
,
"file"
>
&
{
filename
:
string
;
url
:
string
;
}
Returns
Promise
<
FileInfo
>
Settings
Member Visibility
Protected
Private
Inherited
External
Alpha
Beta
Theme
OS
Light
Dark
On This Page
constructor
#manager
_events
acl
gp
can
Upload
choose
File
fetch
fetch
More
load
Content
off
on
once
upload
upload
Content
upload
Url
GamePush SDK Typed Documentation
Loading...