31 lines
2.0 KiB
Markdown
31 lines
2.0 KiB
Markdown
<!--- Hugo front matter used to generate the website version of this page:
|
|
--->
|
|
|
|
# iOS
|
|
|
|
<!-- toc -->
|
|
|
|
- [iOS Lifecycle Event Attributes](#ios-lifecycle-event-attributes)
|
|
|
|
<!-- tocstop -->
|
|
|
|
## iOS Lifecycle Event Attributes
|
|
|
|
<!-- semconv registry.ios.lifecycle.events(omit_requirement_level) -->
|
|
| Attribute | Type | Description | Examples | Stability |
|
|
|---|---|---|---|---|
|
|
| `ios.state` | string | This attribute represents the state the application has transitioned into at the occurrence of the event. [1] | `active` |  |
|
|
|
|
**[1]:** The iOS lifecycle states are defined in the [UIApplicationDelegate documentation](https://developer.apple.com/documentation/uikit/uiapplicationdelegate#1656902), and from which the `OS terminology` column values are derived.
|
|
|
|
`ios.state` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|
|
|
|
| Value | Description | Stability |
|
|
|---|---|---|
|
|
| `active` | The app has become `active`. Associated with UIKit notification `applicationDidBecomeActive`. |  |
|
|
| `inactive` | The app is now `inactive`. Associated with UIKit notification `applicationWillResignActive`. |  |
|
|
| `background` | The app is now in the background. This value is associated with UIKit notification `applicationDidEnterBackground`. |  |
|
|
| `foreground` | The app is now in the foreground. This value is associated with UIKit notification `applicationWillEnterForeground`. |  |
|
|
| `terminate` | The app is about to terminate. Associated with UIKit notification `applicationWillTerminate`. |  |
|
|
<!-- endsemconv -->
|