Отсканируй на iPhone, чтобы установить
This will get the information of your device and shows it for you. Some of the options aren’t out yet so don’t blame me if I didn’t tell you.
Что нового
Версия 1.0
First release
Что делает
Действий: 14-
Choose from MenuOptions
-
Choose from MenuCurrent Version
-
Get Device Details
-
Show NotificationThe Current Version of your iOS is ….
-
Choose from MenuCheck for updates
-
Choose from MenuDevice Model
-
Get Device Details
-
Show NotificationThe device model is ….
-
Choose from MenuDevice Hostname
-
Get Device Details
-
Show NotificationYour Hostname is ….
-
Choose from MenuDevice Name
-
Get Device Details
-
Show NotificationYour Device’s name is ….
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/device'
#define color green
#define glyph uploadArrow
menu "Options" {
item "Current Version":
const SystemVersion = getDeviceDetail("System Version")
showNotification("The Current Version of your iOS is {SystemVersion}.", SystemVersion)
item "Check for updates":
item "Device Model":
const DeviceModel = getDeviceDetail("Device Model")
showNotification("The device model is {DeviceModel}.", DeviceModel)
item "Device Hostname":
getDeviceDetail("Device Hostname")
showNotification("Your Hostname is {}.")
item "Device Name":
const DeviceName = getDeviceDetail("Device Name")
showNotification("Your Device’s name is {DeviceName}.", DeviceName)
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от emopetrobot
Вам также может понравиться
Реклама