Appearance
系统变量清单 #
| 对象名 | 汉字描述(属性) | 系统变量名 | 例 |
| 时间 | 年 | GL.year | |
| 月 | GL.month | ||
| 日期 | GL.date | ||
| 星期 | GL.day_of_week | ||
| 12小时制 | GL.hour12 | ||
| 24小时制 | GL.hour24 | ||
| 分钟 | GL.minute | ||
| 秒钟 | GL.second | ||
| 0:上午,1:下午 | GL.ampm | ||
| 0:12小时制,1:24小时制 | GL.time_format | ||
| 系统时间毫秒数 | GL.time_sys | ||
| 当前时间,long | GL.time | ||
| 农历年份 | GL.year_lunar | ||
| 农历月份 | GL.month_lunar | ||
| 是否润月 | GL.month_lunar_leap | ||
| 农历日期 | GL.date_lunar | ||
| 天气 | 城市唯一标识 | PD.weather.weatherData.city_id | 39.959_116.298 |
| 实时天气信息发布时间(time mills) | PD.weather.weatherData.publish_time | 1.50814E+12 | |
| 城市/街道名称 | PD.weather.weatherData.city_name | 安宁庄南路 | |
| 天气现象(实时) | PD.weather.weatherData.description | 多云 | |
| 实时天气类型 | PD.weather.weatherData.weather_type | ||
| 气温(实时) | PD.weather.weatherData.temperature | 18℃ | |
| 气温(预报) | PD.weather.weatherData.temperature_range | 8℃~18℃ | |
| AQI等级 | PD.weather.weatherData.aqilevel | 90 | |
| 湿度 | PD.weather.weatherData.humidity | 68% | |
| 日出时间 | PD.weather.weatherData.sunrise | 80760000 | |
| 日落时间 | PD.weather.weatherData.sunset | 34440000 | |
| 风向,风力 | PD.weather.weatherData.wind | 东南风,2级 | |
| 日期偏移量 | PD.weather.weatherData.day | 1 | |
| 气压 | PD.weather.weatherData.pressure | 1016hPa | |
| 预报天气信息发布时间(time mills) | PD.weather.weatherData.timestamp | 1.50806E+12 | |
| 最高温(预报) | PD.weather.weatherData.tmphighs | 17 | |
| 最低温(预报) | PD.weather.weatherData.tmplows | 7 | |
| 天气类型(预报) | PD.weather.weatherData.forecast_type | ||
| 天气现象(预报) | PD.weather.weatherData.weathernamesfrom | 多云 | |
| 实际天气数据发布时间 | PD.weather.hourlyData.publish_time | ||
| 未来23小时的时间戳 | PD.weather.hourlyData.date_time | ||
| 未来23小时的温度 | PD.weather.hourlyData.temperature | 27 | |
| 未来23小时的天气类型 | PD.weather.hourlyData.weather_type | 0 | |
| 月相 | PD.weather.moonPhase.moonphase | 56 | |
| pm25 | PD.weather.aqi.pm25 | ||
| no2 | PD.weather.aqi.no2 | ||
| pm10 | PD.weather.aqi.pm10 | ||
| so2 | PD.weather.aqi.so2 | ||
| 作息 | 作息管理设置状态,0关闭;1开启 | PD.deskclock.bedtimeProvider.bedtime_state | |
| 入睡时间的小时 | PD.deskclock.bedtimeProvider.sleep_hour | ||
| 入睡时间的分 | PD.deskclock.bedtimeProvider.sleep_minute | ||
| 起床时间的小时 | PD.deskclock.bedtimeProvider.wake_hour | ||
| 起床时间的分 | PD.deskclock.bedtimeProvider.wake_minute | ||
| 重复周期 | PD.deskclock.bedtimeProvider.repeat_type | ||
| 闹钟 | 备注 | PD.deskclock.alarm.message | |
| 开关 | PD.deskclock.alarm.enabled | ||
| 时 | PD.deskclock.alarm.hour | ||
| 分 | PD.deskclock.alarm.minutes | ||
| 响铃时间 | PD.deskclock.alarm.alarmtime | ||
| 重复方式 | PD.deskclock.alarm.daysofweek | ||
| 日程 | 标题 | PD.calendar.events.title | |
| 地点,没有则为null | PD.calendar.events.eventLocation | ||
| 提醒开始时间 | PD.calendar.events.dtstart | ||
| 提醒结束时间 | PD.calendar.events.dtend | ||
| 全天事件 | PD.calendar.events.allDay | ||
| 事件的最后时间, 空表示无限 | PD.calendar.events.lastDate | ||
| 类型 | PD.calendar.events.hasExtendedProperties | ||
| 运动健康 | 步数 | PD.health.steps.steps | |
| 目标步数 | PD.health.steps.goal | ||
| 距离 | PD.health.steps.distance | ||
| 消耗卡路里 | PD.health.steps.energy | ||
| 运动中高强度时长 | PD.health.steps.strength_duration | ||
| 运动是否达标 | PD.health.steps.summary | ||
| 手机健康 | 体检分数 | PD.securityCenter.scan.scanScore | |
| 是否安全 | PD.securityCenter.scan.scanSafe | ||
| 扫描出的垃圾大小 | PD.securityCenter.clean.garbageSize | ||
| 手机总存储 | PD.securityCenter.clean.totalSpace | ||
| 手机剩余存储 | PD.securityCenter.clean.availableSpace | ||
| 垃圾清理安装状态 | PD.securityCenter.clean.cleanerInstalledState | ||
| 内存当前占用 | PD.securityCenter.memory.memoryOccupied | ||
| 内存可清理 | PD.securityCenter.memory.memoryCleanable | ||
| 手机剩余存储 | PD.securityCenter.memory.lastCleanedMemorySize | ||
| 电量 | 剩余充电时间,ms为单位 | PD.securityCenter.power.leftChargeTime | |
| 手机预计可用时长,ms为单位 | PD.securityCenter.power.enduranceTime | ||
| 用户当前省电模式开启情况: | PD.securityCenter.power.powerSaveModeStatus | ||
| 是否是快速充电 | PD.securityCenter.power.quickChargeStatus | ||
| 是否正在充电: | PD.securityCenter.power.chargestate | ||
| 穿戴设备电量,连接状态为真实电量,如果未连接,为null | PD.securityCenter.wearableInfo.wearableBattery | ||
| 穿戴设备类型 | PD.securityCenter.wearableInfo.wearableType | ||
| 耳机电量 | PD.securityCenter.wearableInfo.headsetBattery | ||
| 手机电量 | BD.batteryChanged.level | ||
| 数据流量 | 套餐类型 | PD.dataflow.datausage.package_type | |
| 总套餐量 | PD.dataflow.datausage.total_limit | ||
| 本月使用量 | PD.dataflow.datausage.month_used | ||
| 今日使用量 | PD.dataflow.datausage.today_used | ||
| 剩余话费 | PD.dataflow.datausage.bill_value | ||
| 上次矫正时间戳 | PD.dataflow.datausage.traffic_time | ||
| 其他 | 音乐当前播放状态 | GL.musicName.music_state | |
| 播放源是否是系统默认音乐APP | GL.musicName.music_state | ||
| 是否开启深色模式且支持调暗壁纸 | GL.darkmode_wallpaper | ||
| 是否开启深色模式 | GL.darkmode | ||
| 未读短信数 | GL.sms_unread_count | ||
| 未接电话数 | GL.call_missed_count | ||
| 下一个闹钟时间 | GL.next_alarm_time | ||
| 现在音量 | GL.volume_level | ||
| 调节之前的音量 | GL.volume_level_old |