Applications are launched in the cloud using rollAppCloud.launch()
.
rollAppCloud.launch("localc", {userId: "1a2b3c4d5e6f"});
With this call application will open in a separate window. User will then be able to interact with the applications and use all of its features.
Avoiding Pop-up Blocker
To prevent pop-up blocker from interfering with application launch this method has to be called from an event handler for click or key press.
More about pop-up blocker from Mozilla developers.
Parameters
Parameter | Description |
---|---|
appAlias | Alias of the application to be launched. The alias also identifies specific build, version or configuration of the application. |
options optional | Optional set of additional options for launching the application. |
onError optional | Called when attempt to the application failed for any reason. |
onSuccess optional | Called after the app was launched successfully. |
Supported options are following:
Option | Description |
---|---|
userId optional | User ID is used to load preserved application settings and to route launch request to the instance of the application, which is already running for this user. |
commandLine optional | A string that is appended to configured application launch command as additional command line parameters. |
slotSize optional | Size of the application slot to be used for launching the application. Supported values are 'xs', 's', 'm', 'l', 'xl'. If the slot size is not specified, the default slot size configured for the application will be used. |