Object responsible for handling projects. Projects are snapshots of the current state in the scene, which can be stored
locally or in the cloud and loaded at a later moment
Members
online :boolean
Status about internet connection of the user.
Type:
- boolean
projects :Object
Collection of all user' s projects. Includes projects stored locally and in the cloud.
Type:
- Object
usePublicCloudIndex :boolean
Use the public cloud index for projects or not (default: false). If this is set to false, a user needs to login
through AuthenticationManager#logIn to access cloud projects. Cloud projects will be public only within
the same app id.
Type:
- boolean
Methods
createNewProject(specification) → {Project}
Creates a new project
Parameters:
Name | Type | Description |
---|---|---|
specification |
Object | specification of the project (name, screenshotUrl, info, data) |
Returns:
the created project
- Type
- Project
fetchProjectById() → {Project}
Fetches a specific project from the cloud
Returns:
requested Project if found; null otherwise
- Type
- Project
init()
Downloads projects from the cloud if online and loads projects from local disk.
updateCloudIndex() → {boolean}
Fetches projects from the cloud
Returns:
online status of the user
- Type
- boolean