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.

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.

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
}

Last updated

Was this helpful?