Child pages
  • APPLICATION_TYPES
Skip to end of metadata
Go to start of metadata



Constants Summary
Number HEADLESS_CLIENT
Constant for application type headless_client.
Number MOBILE_CLIENT
Constant for application type mobile 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.

Returns

Sample

if (application.getApplicationType() == APPLICATION_TYPES.HEADLESS_CLIENT)
{
	//we are in headless_client
}
 

MOBILE_CLIENT

Constant for application type mobile client.

Returns

Sample

if (application.getApplicationType() == APPLICATION_TYPES.MOBILE_CLIENT)
{
	//we are in mobile client
}
 

RUNTIME_CLIENT

Constant for application type runtime_client.

Returns

Sample

if (application.getApplicationType() == APPLICATION_TYPES.RUNTIME_CLIENT)
{
	//we are in runtime_client
}
 

SMART_CLIENT

Constant for application type smart_client.

Returns

Sample

if (application.getApplicationType() == APPLICATION_TYPES.SMART_CLIENT)
{
	//we are in smart_client
}
 

WEB_CLIENT

Constant for application type web_client.

Returns

Sample

if (application.getApplicationType() == APPLICATION_TYPES.WEB_CLIENT)
{
	//we are in web_client
}
 



  • No labels

4 Comments

  1. Anonymous

    In all examples: APP_TYPES must be: APPLICATION_TYPES
    Else it wont work.

  2. 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.

    1. Anonymous

      Agree - The wiki would be way more useful if we didn't have to dig around in forum to find this info.

      1. 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