Global variables
unlocker
:
unlocker.move_x
: offset in the x direction of the unlocking member
unlocker.move_y
: offset in the y direction of the unlocking member
unlocker.move_dist
: unlocking member to move a distance
unlocker.state
: unlocking member state: 0 normal, 1 pressed, 2 reached
touch
:
touch_x
: current x coordinate of the touch point
touch_y
touch_begin_x
: The initial x coordinate of the screen when pressed
touch_begin_y
touch_begin_time
: Time the screen is pressed
time
:
time
current time, long
time_sys
: system time in milliseconds
year
: Year
month
: month (ranging from 0 to 11,0 for January, 1 February, and so on)
date
: date
day_of_week
: week (1 for Sunday, 2 for Monday, and so on)
hour12
: current hour (12-hour)
hour24
: 24-hour system
minute
: minute
second
: seconds
ampm
: afternoon 0: am 1: pm
time_format
: 0: 12h 1: 24h
lunar calender
:
year_lunar
Lunar Year
year_lunar1864
used to calculate the attribution
month_lunar
lunar month starting from 1 meter
month_lunar_leap
check , returns 0 or 1
months
date_lunar
lunar calendar dates starting from 1 meter
battery
:
battery_level
: current amount of power, from 1 to 100
Normal charging battery_state
: 0 1 2 3 low battery is fully charged
screen
:
screen_width
: screen width
screen_height
: screen height
raw_screen_width
: physical width (this indicates that the current screen resolution of the device, not the root of the impact screenWidth)
raw_screen_height
: physical height
image
:
image.actual_w
: picture the actual width
image.actual_h
:
image.bmp_width
: width of image files (not crop, zoom effects, only to find the specified image based on src, and detects the width of the file)
image.bmp_height
:
music
:
music_control.music_state
: 0 1 Play Pause
others
:
sms_unread_count
: number of unread messages
call_missed_count
: missed call number
next_alarm_time
: an alarm clock next time
intercept_sys_touch
: whether intercepted after touch event, to avoid being caught in another View, for example, free desktop widget can prevent the desktop scrolling and enter edit mode when a touch operation on widget
frame_rate
: current screen frame rate
volume_type
:0 Call Volume 1 System Volume 2 phone ring tones, SMS tones 3 music player volume alarm volume 4 5 6 notification volume call volume Bluetooth connection when the seven systems mandatory in some countries the volume of 8 DTMF Volume 9 TTS Volume 10 FM volume
ring_mode
: 0 silent, 1 vibrate, 2 normal
wifi_state
: 0 disabled, 1 enabled, 2 problem, 3 half (intermediate)
bluetooth_state
: 0 off, 1 on, 2 half
data_state
: 0 off, 1 on
usb_mode
: 0 disconnected, 1 charge only, 2 storage, 3 intermediate