App Control API

API Reference

API for controlling the applications. This API should only be made available to privileged users.

Binding

You can use a definition .adef file to bind your client-side app and component to the server-side App Control service.

This code sample shows how to bind an app to this service:

bindings
{
myExe.myComp.le_appCtrl -> <root>.le_appCtrl
}

See Application Definition .adef for details.

Start App

Use le_appCtrl_StartApp() (const char * appName) to start an app.

The code sample shows how to use the App Control service to start an app:

le_result_t result = le_appCtrl_Start("myApp");

where myApp is the name of the app.

Stop App

Use le_appCtrl_Stop() to stop an app.

This code sample shows how to use the App Control service to stop an app.

le_result_t result = le_appCtrl_Stop("myApp");

where myApp is the name of the app.