Skip to main content

AttachmentAction

An attachment action, for example send, shuffle.

public struct AttachmentAction: Codable, Hashable 

Inheritance

Codable, Hashable

Initializers

init(name:value:style:type:text:)

Init an attachment action.

public init(
name: String,
value: String,
style: ActionStyle,
type: ActionType,
text: String
)

Parameters

  • name: a name.
  • value: a value.
  • style: a style.
  • type: a type.
  • text: a text.

Properties

name

A name.

public let name: String

value

A value of an action.

public let value: String

style

A style, for example primary button.

public let style: ActionStyle

type

A type, for example button.

public let type: ActionType

text

A text.

public let text: String

isCancel

Check if the action is cancel button.

public var isCancel: Bool 

Did you find this page helpful?