getFormFactor
Returns information about the kind of device the user is using.
Syntax
context.client.getFormFactor()
Available for
Model-driven and canvas apps
Return Value
Type: Number
| Value | Form Factor |
|---|---|
| 0 | Unknown |
| 1 | Desktop |
| 2 | Tablet |
| 3 | Phone |
Related topics
Client
Power Apps component framework API reference
Power Apps component framework overview