getFormFactor
Returns information about the kind of device the user is using.
Syntax
context.client.getFormFactor()
Available for
Model-driven apps, canvas apps, & portals.
Return Value
Type: Number
Value | Form Factor |
---|---|
0 | Unknown |
1 | Desktop |
2 | Tablet |
3 | Phone |
Related articles
Client
Power Apps component framework API reference
Power Apps component framework overview
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for