主题
IosDeviceInfo 继承自: DeviceInfo
iOS/iPadOS 运行时环境的设备信息快照。
在 iOS 上由 get_device_info 返回。
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
available_ram_size | int | required | Current unallocated RAM size of the device in megabytes. |
free_disk_size | int | required | Free disk size in bytes. |
is_ios_app_on_mac | bool | required | Indicates whether the process is an iPhone or iPad app running on a Mac. More info: https://developer.apple.com/documentation/foundation/nsprocessinfo/3608556-iosapponmac |
is_physical_device | bool | required | False if the application is running in a simulator, True otherwise. |
localized_model | str | required | Localized name of the device model. More info: https://developer.apple.com/documentation/uikit/uidevice/1620029-localizedmodel |
model | str | required | Device model according to OS. More info: https://developer.apple.com/documentation/uikit/uidevice/1620044-model |
model_name | str | required | Commercial or user-known model name. For example: "iPhone 16 Pro", "iPad Pro 11-Inch 3" |
name | str | required | The device name. Note: - On iOS < 16 returns user-assigned device name. - On iOS >= 16 returns a generic device name if project has no entitlement to get user-assigned device name. More info: https://developer.apple.com/documentation/uikit/uidevice/1620015-name |
physical_ram_size | int | required | Total physical RAM size of the device in megabytes. |
system_name | str | required | The name of the current operating system. More info: https://developer.apple.com/documentation/uikit/uidevice/1620054-systemname |
system_version | str | required | The current operating system version. More info: https://developer.apple.com/documentation/uikit/uidevice/1620043-systemversion |
total_disk_size | int | required | Total disk size in bytes. |
utsname | IosUtsname | required | Operating system information derived from sys/utsname.h. |
identifier_for_vendor | Optional[str] | None | Unique UUID value identifying the current device. More info: https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor |
locales | list[Locale] | required | The full system-reported supported locales of the device. This establishes the language and formatting conventions that application should, if possible, use to render their user interface. The list is ordered in order of priority, with lower-indexed locales being preferred over higher-indexed ones. The first element is the primary locale. The on_locale_change event is called whenever this value changes. |