Contains miscellaneous platform interaction utilities. More...
Import Statement: | import ArcGIS.AppFramework.Platform 1.0 |
Properties
- stayAwake : bool
- systemTheme : SystemTheme
Signals
- stayAwakeError(StayAwakeErrorStatus status)
Methods
- openSettings()
- openSettings(object options)
Detailed Description
The Platform component provides a global object with useful utility functions for working with platform-specific functions.
This component is a singleton, and does not need to be instantiated.
Enumerations
StayAwakeErrorStatus enumeration
Enum describing the error status of the process of keeping the device active. Informs the stayAwakeError signal.
Name | Value |
---|---|
Platform.StayAwakeSuccess | 0 |
Platform.StayAwakeFailed | 1 |
Platform.StayAwakeApplicationHidden | 2 |
Platform.StayAwakePlatformNotSupported | 3 |
Property Documentation
If set to true, the app will continuously prevent the device from going to sleep.
This functionality is not available on Linux.
This property will only work when the app is running in the foreground. Because of this, it's recommended to set this property to false before the app is minimized or closed.
[read-only] systemTheme : SystemTheme |
Contains the currently used system theme.
Signal Documentation
Signal emitted when the process of keeping the device active encounters an error. Informed by the StayAwakeErrorStatus enum.
Note: The corresponding handler is onStayAwakeError
.
Method Documentation
(BETA) Open app permission settings to manage permission access levels. This method is supported only on Android and iOS.
(BETA) Open app permission settings to manage permission access levels. This method is supported only on Android and iOS.
The options parameter
This parameter is reserved for future use.