Application
Defined in: Application.ts:73
Extends
Application
<R
>
Type Parameters
• D extends DataSchema
= DataSchema
• C extends ActionContext
= ActionContext
• R extends Renderer
= Renderer
Implements
IApplication
<D
,C
,A
>
Constructors
new Application()
new Application<
D
,C
,A
,R
>():Application
<D
,C
,A
,R
>
Defined in: Application.ts:141
Returns
Application
<D
, C
, A
, R
>
Overrides
PIXIPApplication<R>.constructor
Properties
__dill_pixel_method_binding_root
__dill_pixel_method_binding_root:
boolean
=true
Defined in: Application.ts:84
config
config:
Partial
<IApplicationOptions
<D
>>
Defined in: Application.ts:86
Implementation of
manifest
manifest:
undefined
|string
|AssetsManifest
Defined in: Application.ts:89
Implementation of
onPause
onPause:
Signal
<() =>void
>
Defined in: Application.ts:90
Implementation of
onResize
onResize:
Signal
<(size
) =>void
>
Defined in: Application.ts:93
onResume
onResume:
Signal
<() =>void
>
Defined in: Application.ts:91
Implementation of
plugins
plugins:
ImportList
<IPlugin
>
Defined in: Application.ts:87
storageAdapters
storageAdapters:
ImportList
<IStorageAdapter
>
Defined in: Application.ts:88
containerElement
static
containerElement:HTMLElement
Defined in: Application.ts:82
Accessors
actionContext
Get Signature
get actionContext():
C
Defined in: Application.ts:284
Returns
C
Set Signature
set actionContext(
context
):void
Defined in: Application.ts:288
Parameters
context
C
Returns
void
Implementation of
actionsPlugin
Get Signature
get actionsPlugin():
IActionsPlugin
<C
>
Defined in: Application.ts:192
Returns
appName
Get Signature
get appName():
string
Defined in: Application.ts:160
Returns
string
Implementation of
appVersion
Get Signature
get appVersion():
string
|number
Defined in: Application.ts:148
Returns
string
| number
Implementation of
assets
Get Signature
get assets():
IAssetsPlugin
Defined in: Application.ts:231
Returns
Implementation of
audio
Get Signature
get audio():
IAudioManagerPlugin
Defined in: Application.ts:277
Returns
Implementation of
captions
Get Signature
get captions():
ICaptionsPlugin
Defined in: Application.ts:302
Returns
ICaptionsPlugin
center
Get Signature
get center():
Point
Defined in: Application.ts:227
Returns
Point
Implementation of
controls
Get Signature
get controls():
IControls
Defined in: Application.ts:210
Returns
Implementation of
data
Get Signature
get data():
IDataAdapter
<D
>
Defined in: Application.ts:564
Get a storage adapter by id
Returns
IDataAdapter
<D
>
Implementation of
env
Get Signature
get env():
Record
<string
,string
>
Defined in: Application.ts:111
Returns
Record
<string
, string
>
Implementation of
exec
Get Signature
get exec():
ICoreFunctions
Defined in: Application.ts:325
Returns
Implementation of
focus
Get Signature
get focus():
IFocusManagerPlugin
Defined in: Application.ts:259
Returns
Implementation of
func
Get Signature
get func():
ICoreFunctions
Defined in: Application.ts:321
Returns
Implementation of
i18n
Get Signature
get i18n():
Ii18nPlugin
Defined in: Application.ts:173
Returns
Implementation of
input
Get Signature
get input():
IInputPlugin
Defined in: Application.ts:202
Returns
Implementation of
isMobile
Get Signature
get isMobile():
boolean
Defined in: Application.ts:309
Returns
boolean
isTouch
Get Signature
get isTouch():
boolean
Defined in: Application.ts:313
Returns
boolean
keyboard
Get Signature
get keyboard():
IKeyboardPlugin
Defined in: Application.ts:252
Returns
Implementation of
paused
Get Signature
get paused():
boolean
Defined in: Application.ts:116
Returns
boolean
Set Signature
set paused(
paused
):void
Defined in: Application.ts:120
Parameters
paused
boolean
Returns
void
Implementation of
popups
Get Signature
get popups():
IPopupManagerPlugin
Defined in: Application.ts:270
Returns
Implementation of
resizer
Get Signature
get resizer():
IResizerPlugin
Defined in: Application.ts:182
Returns
Implementation of
scenes
Get Signature
get scenes():
ISceneManagerPlugin
Defined in: Application.ts:238
Returns
Implementation of
signal
Get Signature
get signal():
ICoreSignals
Defined in: Application.ts:317
Returns
Implementation of
size
Get Signature
get size():
Size
Defined in: Application.ts:266
Returns
Implementation of
store
Get Signature
get store():
IStore
Defined in: Application.ts:220
Returns
Implementation of
voiceover
Get Signature
get voiceover():
IVoiceOverPlugin
Defined in: Application.ts:292
Returns
IVoiceOverPlugin
webEvents
Get Signature
get webEvents():
IWebEventsPlugin
Defined in: Application.ts:245
Returns
Implementation of
Methods
action()
action<
TActionData
>(action
,data
?):void
Defined in: Application.ts:532
Dispatches an action with optional data alias for sendAction
Type Parameters
• TActionData = any
The type of data to send with the action
Parameters
action
A
The action to dispatch
data?
TActionData
Optional data to send with the action
Returns
void
Example
Implementation of
actions()
actions<
TActionData
>(action
):ActionSignal
<TActionData
>
Defined in: Application.ts:505
Gets an ActionSignal for the specified action type
Type Parameters
• TActionData = any
The type of data associated with the action
Parameters
action
A
The action to get the signal for
Returns
ActionSignal
<TActionData
>
A signal that can be used to listen for the action
Example
Implementation of
destroy()
destroy(
rendererDestroyOptions
?,options
?):void
Defined in: Application.ts:358
Destroy the application This will destroy all plugins and the store
Parameters
rendererDestroyOptions?
RendererDestroyOptions
options?
DestroyOptions
Returns
void
Implementation of
IApplication.destroy
Overrides
PIXIPApplication.destroy
getPlugin()
getPlugin<
T
>(pluginName
,debug
):T
Defined in: Application.ts:448
Type Parameters
• T extends IPlugin
Parameters
pluginName
string
debug
boolean
= false
Returns
T
Implementation of
getStorageAdapter()
getStorageAdapter(
adapterId
):IStorageAdapter
Defined in: Application.ts:555
Get a storage adapter by id
Parameters
adapterId
string
Returns
getUnloadedPlugin()
getUnloadedPlugin(
id
):undefined
|ImportListItem
<IPlugin
>
Defined in: Application.ts:474
Parameters
id
string
Returns
undefined
| ImportListItem
<IPlugin
>
initialize()
initialize(
config
):Promise
<IApplication
<D
,C
,A
>>
Defined in: Application.ts:372
Parameters
config
AppConfig
<D
>
Returns
Promise
<IApplication
<D
, C
, A
>>
Implementation of
isActionActive()
isActionActive(
action
):boolean
Defined in: Application.ts:546
Checks if an action is currently active
Parameters
action
A
The action to check
Returns
boolean
True if the action is active, false otherwise
Example
Implementation of
loadPlugin()
loadPlugin(
listItem
,isDefault
):Promise
<void
>
Defined in: Application.ts:478
Parameters
listItem
isDefault
boolean
= false
Returns
Promise
<void
>
pause()
pause():
void
Defined in: Application.ts:133
Returns
void
Implementation of
postInitialize()
postInitialize():
Promise
<void
>
Defined in: Application.ts:456
Returns
Promise
<void
>
Implementation of
resume()
resume():
void
Defined in: Application.ts:129
Returns
void
Implementation of
sendAction()
sendAction<
TActionData
>(action
,data
?):void
Defined in: Application.ts:518
Dispatches an action with optional data
Type Parameters
• TActionData = any
The type of data to send with the action
Parameters
action
A
The action to dispatch
data?
TActionData
Optional data to send with the action
Returns
void
Example
Implementation of
setContainer()
setContainer(
container
):void
Defined in: Application.ts:366
Parameters
container
HTMLElement
Returns
void
Implementation of
togglePause()
togglePause():
void
Defined in: Application.ts:137
Returns
void
getInstance()
static
getInstance<T
>():T
Defined in: Application.ts:348
Type Parameters
• T extends Application
= Application
Returns
T