Mit dem iPhone scannen, um zu installieren
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.
Neue Funktionen
Version 1.0
First release
Was er macht
14 Aktionen-
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 ….
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#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)
}
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von emopetrobot
Das gefällt dir vielleicht auch
Werbung