Global Data Variables

Global variables store the meta-information about the elements common to all apps. It is a tree-list view of the variables and their respective values.

Current User

VariablesValues

id

The ID value of the user who is currently logged in. This is the User ID stored in the Appizap backend.

name

Name of the current user set in the profile.

avatarUrl

The URL reference to the profile pic of the current user.

email

Email address of the logged-in user

ip

The public IP value of the machine, the user logged-in.

groups

The list of group-names where the user is included. groupId - the ID of the group stored in the backend. groupName - the name of the group.

extra

The string message or information that the developers imprint for reference and implementation.

localStorage

VariablesValues

values

Represents the values set using localStorage methods using JavaScript. localStorage.setItem("Time now:", Date.now());

screenInfo

VariablesValues

width

Width value of the current device in px

height

Height value of the current device in px

deviceType

The type of the device being used. Mobile/Tablet/Desktop.

isMobile

true/false Indicates if the current device is a mobile device.

isTablet

true/false Indicates if the current device is a tablet device.

isDesktop

true/false Indicates if the current device is a desktop device.

theme

VariablesValues

id

Shows the ID value of the theme currently used.

name

Shows the Name of the theme.

allThemes

Shows the list of themes available on the platform and their corresponding ID/Names.

url

VariablesValues

href

The URL value of the current session from the browser.

hash

query

Last updated