class UI::AppShortcutParameter

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, prompt : String | Nil = nil, type : String | Nil = nil, default_value : String | Nil = nil, is_required : Bool = true) #

[View source]

Instance Method Detail

def app_intents_parameter_name : String #

[View source]
def app_intents_value_type : String #

[View source]
def default_value : String | Nil #

[View source]
def default_value=(default_value : String | Nil) #

[View source]
def export_app_intents_scaffold(indent : String = " ") : String #

[View source]
def is_required : Bool #

[View source]
def is_required=(is_required : Bool) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def prompt : String | Nil #

[View source]
def prompt=(prompt : String | Nil) #

[View source]
def to_payload(json : JSON::Builder) : Nil #

[View source]
def type : String | Nil #

[View source]
def type=(type : String | Nil) #

[View source]