class
UI::LiveActivityUpdateIntent
- UI::LiveActivityUpdateIntent
- Reference
- Object
Overview
Metadata for an ActivityKit-style update intent.
This is export-only. It keeps the intent that would be handed off to a host or build step without pretending to render anything in-app.
Defined in:
ui/live_activities.crConstructors
Instance Method Summary
- #identifier : String
- #identifier=(identifier : String)
- #is_enabled : Bool
- #is_enabled=(is_enabled : Bool)
- #subtitle : String | Nil
- #subtitle=(subtitle : String | Nil)
- #system_image : String | Nil
- #system_image=(system_image : String | Nil)
- #title : String | Nil
- #title=(title : String | Nil)
- #to_payload(json : JSON::Builder) : Nil
- #user_info : Hash(String, String)
- #user_info=(user_info : Hash(String, String))
Constructor Detail
def self.new(identifier : String, title : String | Nil = nil, subtitle : String | Nil = nil, system_image : String | Nil = nil, user_info : Hash(String, String) = {} of String => String, is_enabled : Bool = true)
#