class UI::LiveActivityUpdateIntent

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

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def identifier : String #

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

[View source]
def is_enabled : Bool #

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

[View source]
def subtitle : String | Nil #

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

[View source]
def system_image : String | Nil #

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

[View source]
def title : String | Nil #

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

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

[View source]
def user_info : Hash(String, String) #

[View source]
def user_info=(user_info : Hash(String, String)) #

[View source]