iOS
iOS 属性
此组描述了特定于 iOS 的属性。
Attributes
| 键 | Stability | Value Type | 描述 | Example Values |
|---|---|---|---|---|
ios.app.state | 字符串 | 此属性表示应用程序的状态。[1] | active; inactive; background |
[1] ios.app.state: iOS 生命周期状态在 UIApplicationDelegate 文档 中定义,其中派生了 OS terminology 列的值。
ios.app.state 具有以下一组公认值。如果适用其中一个,则必须使用相应的值;否则,可以使用自定义值。
| 值 | 描述 | Stability |
|---|---|---|
active | 应用程序变为 active。与 UIKit 通知 applicationDidBecomeActive 相关联。 | |
background | 应用程序现在位于后台。此值与 UIKit 通知 applicationDidEnterBackground 相关联。 | |
foreground | 应用程序现在位于前台。此值与 UIKit 通知 applicationWillEnterForeground 相关联。 | |
inactive | 应用程序现在 inactive。与 UIKit 通知 applicationWillResignActive 相关联。 | |
terminate | 应用程序即将终止。与 UIKit 通知 applicationWillTerminate 相关联。 |
已弃用的 iOS 属性
iOS 应用程序正在运行的 iOS 平台。
Attributes
| 键 | Stability | Value Type | 描述 | Example Values |
|---|---|---|---|---|
ios.state | 已替换为 ios.app.state。 | 字符串 | 已弃用。使用 ios.app.state 属性。[2] | active; inactive; background |
[2] ios.state: iOS 生命周期状态在 UIApplicationDelegate 文档 中定义,其中派生了 OS terminology 列的值。
ios.state 具有以下一组公认值。如果适用其中一个,则必须使用相应的值;否则,可以使用自定义值。
| 值 | 描述 | Stability |
|---|---|---|
active | 应用程序变为 active。与 UIKit 通知 applicationDidBecomeActive 相关联。 | |
background | 应用程序现在位于后台。此值与 UIKit 通知 applicationDidEnterBackground 相关联。 | |
foreground | 应用程序现在位于前台。此值与 UIKit 通知 applicationWillEnterForeground 相关联。 | |
inactive | 应用程序现在 inactive。与 UIKit 通知 applicationWillResignActive 相关联。 | |
terminate | 应用程序即将终止。与 UIKit 通知 applicationWillTerminate 相关联。 |