Class Platform
Utility methods and properties related to the Target Platform.
Inherited Members
Namespace: Unity.AppUI.Core
Assembly: solution.dll
Syntax
public static class PlatformFields
| Name | Description | 
|---|---|
| baseDpi | The base DPI value used in PanelSettings. | 
Properties
| Name | Description | 
|---|---|
| isTouchGestureSupported | Whether the current platform supports touch gestures. | 
| magnificationGesture | The magnification gesture data. | 
| magnificationGestureChangedThisFrame | Whether the magnification gesture has changed this frame. | 
| mainScreenScale | The main screen scale factor.
 | 
| panGesture | The pan gesture data. | 
| panGestureChangedThisFrame | Whether the pan gesture has changed this frame. | 
| referenceDpi | The DPI value that should be used in UI-Toolkit PanelSettings referenceDpi. This value is the value of dpi divided by the main screen scale factor. | 
| systemTheme | The current system theme. | 
Methods
| Name | Description | 
|---|---|
| RunHapticFeedback(HapticFeedbackType) | Run a haptic feedback on the current platform. | 
Events
| Name | Description | 
|---|---|
| magnificationGestureChanged | Event triggered when a magnification gesture is received. | 
| panGestureChanged | Event triggered when a pan gesture is received. | 
| systemThemeChanged | Event triggered when the system theme changes. |