cpr.core.App
A class that defines how to define how to create app instances.
Index
| Name |
Type |
Description |
| focuscyclic |
Boolean |
Whether to return from the last focus to the beginning. |
| id |
String |
Your app's id |
| title |
String |
Get the title of your app. |
| uuid |
String |
Your app's unique ID |
Constructor
Create a new app.
| name |
type |
description |
| appId
|
String |
ID of the app. |
| delegate
|
AppDelegate |
Delegators that manage the lifecycle of the app. |
Properties
| type
|
Boolean |
| get
|
Whether to return from the last focus to the beginning.
|
| set
|
Sets whether to return from the last focus to the beginning.
|
| type
|
String |
| readonly
|
Your app's id
|
| type
|
String |
| get
|
Get the title of your app.
|
| set
|
Set the title of your app.
|
| type
|
String |
| readonly
|
Your app's unique ID
|
Methods
Returns the "appcache" setting value set in the defaults.js file.
The default value is true.
Find the loaded app. If not loaded, null code> is returned.
| name |
type |
description |
| appID
|
#app |
ID of the app to find (URI) |
Load the app.
| name |
type |
description |
| appURI
|
#app |
Your app's id |
| doneHandleroptional
|
(loadedApp: cpr.core.App)=>Void |
Callback function to pass app as parameter |
| return
|
Promise<cpr.core.App> |
|
Add hooks to personalize the process of loading and initializing your app.
| name |
type |
description |
| hook
|
AppHook |
App hook to add. |
Remove the app hook.
| name |
type |
description |
| hook
|
AppHook |
App hook to uninstall. |
Bind to the attribute.
| name |
type |
description |
| name
|
String |
The name of the attribute. |
Create a new app instance.
Returns the bind property information for the control.
| name |
type |
description |
| name
|
String |
The name of the attribute being bound. |
When the app runs, it gets the minimum size information it needs.
Returns whether an instance of the app exists.
Make sure it is a bindable property.
| name |
type |
description |
| name
|
String |
Attribute name |
| return
|
Boolean |
Confirmation. |
Specifies the minimum size required for the app instance to function.
| name |
type |
description |
| width
|
Number |
Minimum width. Negative numbers indicate no constraint. |
| height
|
Number |
Minimum height. Negative numbers indicate no constraint. |
Specifies the minimum size required for the app instance to function.
| name |
type |
description |
| size
|
Dimension |
Minimum size |
Unbind that property.
| name |
type |
description |
| name
|
String |
Attribute name to unbind. |
Unload the app. If there are instances running, it will not work and will throw an exception.