# Global Data Variables

<figure><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2F7I5PMCLZGVWCH28U7FkV%2Fimage.png?alt=media&#x26;token=d86ee33c-2732-4305-9a77-d59917be9696" alt=""><figcaption></figcaption></figure>

#### current User

| Variables | Values                                                                                                                                                                             |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 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    | <p>The list of group-names where the user is included.<br><code>groupId</code> - the ID of the group stored in the backend.<br><code>groupName</code> - the name of the group.</p> |
| extra     | The string message or information that the developers imprint for reference and implementation.                                                                                    |

#### localStorage

| Variables | Values                                                                                                                                                    |
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| values    | <p>Represents the values set using <code>localStorage</code> methods using JavaScript.<br><br><em>localStorage.setItem("Time now:", Date.now());</em></p> |

#### screenInfo

| Variables  | Values                                                                                 |
| ---------- | -------------------------------------------------------------------------------------- |
| width      | Width value of the current device in px                                                |
| height     | Height value of the current device in px                                               |
| deviceType | <p>The type of the device being used.<br><code>Mobile/Tablet/Desktop</code>.</p>       |
| isMobile   | <p><code>true/false</code><br>Indicates if the current device is a mobile device.</p>  |
| isTablet   | <p><code>true/false</code><br>Indicates if the current device is a tablet device.</p>  |
| isDesktop  | <p><code>true/false</code><br>Indicates if the current device is a desktop device.</p> |

#### theme

| Variables | Values                                                                               |
| --------- | ------------------------------------------------------------------------------------ |
| 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

| Variables | Values                                                                                                                                                                                                               |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| href      | The URL value of the current session from the browser.                                                                                                                                                               |
| hash      | <p>Shows the list of Hash parameters being passed through the URL.<br>For example - when an event is defined and the action is set to open another app, the parameters can be passed using key-value pairs.<br></p>  |
| query     | <p>Shows the list of Query parameters being passed through the URL.<br>For example - when an event is defined and the action is set to open another app, the parameters can be passed using key-value pairs.<br></p> |
