class
UI::AppShortcutParameter
- UI::AppShortcutParameter
- Reference
- Object
Overview
Metadata for one App Shortcut declaration.
The visible presentation of App Shortcuts belongs to Apple's system surfaces. This model keeps the intent in Crystal so host code can export a practical metadata payload for AppIntents / shortcut registration without pretending the capability is a drawable UI::View.
Defined in:
ui/app_shortcuts.crConstructors
Instance Method Summary
- #app_intents_parameter_name : String
- #app_intents_value_type : String
- #default_value : String | Nil
- #default_value=(default_value : String | Nil)
- #export_app_intents_scaffold(indent : String = " ") : String
- #is_required : Bool
- #is_required=(is_required : Bool)
- #name : String
- #name=(name : String)
- #prompt : String | Nil
- #prompt=(prompt : String | Nil)
- #to_payload(json : JSON::Builder) : Nil
- #type : String | Nil
- #type=(type : String | Nil)
Constructor Detail
def self.new(name : String, prompt : String | Nil = nil, type : String | Nil = nil, default_value : String | Nil = nil, is_required : Bool = true)
#