class UI::NotificationAction

Defined in:

ui/notifications.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(identifier : String, title : String, kind : String = "default", options : Array(String) = [] of String, text_input_button_title : String | Nil = nil, text_input_placeholder : String | Nil = nil, is_enabled : Bool = true) #

[View source]

Instance Method Detail

def add_option(option : String) : String #

[View source]
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 kind : String #

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

[View source]
def options : Array(String) #

[View source]
def options=(options : Array(String)) #

[View source]
def text_input_button_title : String | Nil #

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

[View source]
def text_input_placeholder : String | Nil #

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

[View source]
def title : String #

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

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

[View source]
def to_swift_scaffold(indent : Int32 = 12) : String #

[View source]