class
UI::AppShortcuts
- UI::AppShortcuts
- Reference
- Object
Overview
App-shell metadata container for App Shortcuts.
The model is intentionally export-oriented. Host code can collect one or more shortcuts here and serialize the declaration payload into a build step, Intents bundle, or other platform integration layer.
Defined in:
ui/app_shortcuts.crConstructors
Instance Method Summary
- #add_shortcut(title : String, identifier : String | Nil = nil, subtitle : String | Nil = nil, summary : String | Nil = nil, icon : String | Nil = nil, phrases : Array(String) | Nil = nil, parameters : Array(AppShortcutParameter) | Nil = nil, is_enabled : Bool = true, is_discoverable : Bool = true, &block : AppShortcut -> Nil) : AppShortcut
- #add_shortcut(title : String, identifier : String | Nil = nil, subtitle : String | Nil = nil, summary : String | Nil = nil, icon : String | Nil = nil, phrases : Array(String) | Nil = nil, parameters : Array(AppShortcutParameter) | Nil = nil, is_enabled : Bool = true, is_discoverable : Bool = true) : AppShortcut
- #add_shortcut(shortcut : AppShortcut) : AppShortcut
- #application_name : String
- #application_name=(application_name : String)
- #bundle_identifier : String | Nil
- #bundle_identifier=(bundle_identifier : String | Nil)
- #clear : Nil
- #export_app_intents_scaffold : String
- #find_shortcut(identifier : String) : AppShortcut | Nil
- #remove_shortcut(identifier : String) : Bool
- #shortcuts : Array(AppShortcut)
- #shortcuts=(shortcuts : Array(AppShortcut))
- #to_payload : String
Constructor Detail
def self.new(application_name : String, bundle_identifier : String | Nil = nil, shortcuts : Array(AppShortcut) | Nil = nil)
#
Instance Method Detail
def add_shortcut(title : String, identifier : String | Nil = nil, subtitle : String | Nil = nil, summary : String | Nil = nil, icon : String | Nil = nil, phrases : Array(String) | Nil = nil, parameters : Array(AppShortcutParameter) | Nil = nil, is_enabled : Bool = true, is_discoverable : Bool = true, &block : AppShortcut -> Nil) : AppShortcut
#
def add_shortcut(title : String, identifier : String | Nil = nil, subtitle : String | Nil = nil, summary : String | Nil = nil, icon : String | Nil = nil, phrases : Array(String) | Nil = nil, parameters : Array(AppShortcutParameter) | Nil = nil, is_enabled : Bool = true, is_discoverable : Bool = true) : AppShortcut
#