# deviceSerial

## Description

Get the serial number of a device.

## Input / Parameter

N/A

## Output

N/A

## Callback

N/A

## Video

Coming Soon.

## Example

The user wants to display the device serial number in an info dialog.

### Step

| No. | Description                                                                                                                                                                                                       |                                                                                                                                                                                                                                                          |
| --- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1.  | ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-6abcd62ca6d057d976022d2a02307fab6b5bd86e%2FdeviceSerial-step-1.png?alt=media) | Drag a button to a page in the mobile designer. Select the event `click` for the button and drag the `infoDialog` function to the event flow. Fill in the parameters of the function. For the parameter `content`, select the parameter type `function`. |
| 2.  | ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-8c644a9cf3068ed07b6879cdacf9bb76db77c08d%2FdeviceSerial-step-2.png?alt=media) | Drag the `deviceSerial` function to the node in the subflow for the `content` parameter.                                                                                                                                                                 |

### Result

When the button is pressed, the infoDialog will appear to show the serial number of the device.

## Links
