mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
43 lines
1.4 KiB
Swift
43 lines
1.4 KiB
Swift
//
|
|
// ShortcutsProvider.swift
|
|
// Meshtastic
|
|
//
|
|
// Created by Benjamin Faershtein on 8/24/24.
|
|
//
|
|
|
|
import Foundation
|
|
import AppIntents
|
|
|
|
struct ShortcutsProvider: AppShortcutsProvider {
|
|
static var appShortcuts: [AppShortcut] {
|
|
AppShortcut(intent: ShutDownNodeIntent(),
|
|
phrases: ["Shut down \(.applicationName) node",
|
|
"Shut down my \(.applicationName) node",
|
|
"Turn off \(.applicationName) node",
|
|
"Power down \(.applicationName) node",
|
|
"Deactivate \(.applicationName) node"],
|
|
shortTitle: "Shut Down",
|
|
systemImageName: "power")
|
|
|
|
AppShortcut(intent: RestartNodeIntent(),
|
|
phrases: ["Restart \(.applicationName) node",
|
|
"Restart my \(.applicationName) node",
|
|
"Reboot \(.applicationName) node",
|
|
"Reboot my \(.applicationName) node"],
|
|
shortTitle: "Restart",
|
|
systemImageName: "arrow.circlepath")
|
|
|
|
AppShortcut(intent: MessageChannelIntent(),
|
|
phrases: ["Message a \(.applicationName) channel",
|
|
"Send a \(.applicationName) group message"],
|
|
shortTitle: "Group Message",
|
|
systemImageName: "message")
|
|
AppShortcut(intent: DisconnectNodeIntent(),
|
|
phrases: ["Disconnect \(.applicationName) node",
|
|
"Disconnect my \(.applicationName) node",
|
|
"Disconnect from \(.applicationName)",
|
|
"Disconnect \(.applicationName)"],
|
|
shortTitle: "Disconnect",
|
|
systemImageName: "antenna.radiowaves.left.and.right.slash")
|
|
}
|
|
}
|