APPLICATION_TYPES

Overview

Constants are defined to represent different application types, each assigned a numeric value. These constants enable applications to identify and handle specific client environments dynamically. The constants include:

  • HEADLESS_CLIENT: Represents a headless client.

  • MOBILE_CLIENT: Represents a mobile client.

  • NG_CLIENT: Represents an NG client.

  • RUNTIME_CLIENT: Represents a runtime client.

  • SMART_CLIENT: Represents a smart client.

  • WEB_CLIENT: Represents a web client.

Key Points

  • Type: All constants are of type Number.

  • Usage: These constants can be used in conditional logic to execute code tailored for the respective application type.

These constants provide a structured approach to managing diverse application environments, ensuring that applications can adapt their behavior based on the client type dynamically and efficiently.

Constants Summarized

Type
Name
Summary

Constant for application type headless_client.

Constant for application type mobile client.

Constant for application type ng client.

Constant for application type runtime_client.

Constant for application type smart_client.

Constant for application type web_client.

Constants Detailed

HEADLESS_CLIENT

Constant for application type headless_client.

Type Number

Sample

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

MOBILE_CLIENT

Constant for application type mobile client.

Type Number

Sample

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

NG_CLIENT

Constant for application type ng client.

Type Number

Sample

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

RUNTIME_CLIENT

Constant for application type runtime_client.

Type Number

Sample

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

SMART_CLIENT

Constant for application type smart_client.

Type Number

Sample

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

WEB_CLIENT

Constant for application type web_client.

Type Number

Sample

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

Last updated

Was this helpful?