提供了对用户设备状态等信息的访问。
Version GetIOSVersion()
获取系统版本
bool TryGetIOSVersion(out Version iOSVersion)
iOSVersion
bool IsIPhoneNotchScreen()
是否是 iPhone 刘海屏
UIDeviceOrientation GetDeviceOrientation()
获取当前设备的物理朝向
bool IsRunningOnMac()
判断当前 app 是否运行在 Mac 环境下
bool IsRunningOnIpad()
判断当前 app 是否运行在 iPad 环境下
string GetLocaleISOCode()
获取当前设备的ISO地区码(ISO 3166-1 alpha-2)
string GetLanguageISOCode()
获取用户系统设置的主要语言的IETF标签(例:zh-Hans-CN) 格式:[language]-[Script]-[REGION]_[sort order]
获取用户系统设置的主要语言的IETF标签(例:zh-Hans-CN)
格式:[language]-[Script]-[REGION]_[sort order]
There was an error while loading. Please reload this page.