Apr 26, 2024 12:15 Returns Supported Clients Sample Returns Supported Clients Sample Returns Supported Clients Sample Returns Supported Clients Sample Returns Supported Clients Sample Returns Supported Clients SampleSupported Clients
SmartClient
WebClient
NGClient
MobileClient
Constants Summary
Number
HEADLESS_CLIENT
Constant for application type headless_client.
Number
MOBILE_CLIENT
Constant for application type mobile client.
Number
NG_CLIENT
Constant for application type ng client.
Number
RUNTIME_CLIENT
Constant for application type runtime_client.
Number
SMART_CLIENT
Constant for application type smart_client.
Number
WEB_CLIENT
Constant for application type web_client.
Constants Details
HEADLESS_CLIENT
Constant for application type headless_client.
if (application.getApplicationType() == APPLICATION_TYPES.HEADLESS_CLIENT)
{
//we are in headless_client
}
MOBILE_CLIENT
Constant for application type mobile client.
if (application.getApplicationType() == APPLICATION_TYPES.MOBILE_CLIENT)
{
//we are in mobile client
}
NG_CLIENT
Constant for application type ng client.
if (application.getApplicationType() == APPLICATION_TYPES.NG_CLIENT)
{
//we are in mobile client
}
RUNTIME_CLIENT
Constant for application type runtime_client.
if (application.getApplicationType() == APPLICATION_TYPES.RUNTIME_CLIENT)
{
//we are in runtime_client
}
SMART_CLIENT
Constant for application type smart_client.
if (application.getApplicationType() == APPLICATION_TYPES.SMART_CLIENT)
{
//we are in smart_client
}
WEB_CLIENT
Constant for application type web_client.
if (application.getApplicationType() == APPLICATION_TYPES.WEB_CLIENT)
{
//we are in web_client
}
4 Comments
Anonymous
In all examples: APP_TYPES must be: APPLICATION_TYPES
Else it wont work.
Anonymous
Can the numeric value off these constant also be mentioned?
Some off the example/solution code seems to be using these values.
Makes it a lot easier to learn these constants.
Anonymous
Agree - The wiki would be way more useful if we didn't have to dig around in forum to find this info.
Anonymous
modes are: (refer to pdf doc of v4, much more comprehensive than the wiki so far)
1 Servoy Server
2 Servoy Client
3 Servoy Developer
4 Servoy Headless Client
5 Servoy Web Client
6 Servoy Runtime