class UI::NotificationCategory

Defined in:

ui/notifications.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(identifier : String, actions : Array(NotificationAction) = [] of NotificationAction, intent_identifiers : Array(String) = [] of String, options : Array(String) = [] of String, is_enabled : Bool = true) #

[View source]

Instance Method Detail

def actions : Array(NotificationAction) #

[View source]
def actions=(actions : Array(NotificationAction)) #

[View source]
def add_action(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) : NotificationAction #

[View source]
def add_action(action : NotificationAction) : NotificationAction #

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

[View source]
def add_option(option : String) : String #

[View source]
def identifier : String #

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

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

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

[View source]
def is_enabled : Bool #

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

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

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

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

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

[View source]