CLASS

Action

Contents

public class Action: Codable, Equatable

Possible actions a user or the client may choose to take to continue the flow. If only one action is available and the action does not require user input, a client can elect to follow it automatically.

Actions requiring user interaction may not be hidden or skipped by the client.

Properties

kind

public let kind: ActionKind

The kind of the action, which specializes its meaning, allowing clients that support a certain kind to provide an improved user experience.

title

public let title: Message?

The title of the action.

Methods

init(from:)

public required init(from decoder: Decoder) throws

Parameters

Name Description
decoder The decoder to read data from.

encode(to:)

public func encode(to encoder: Encoder) throws

Parameters

Name Description
encoder The encoder to write data to.

==(::)

public static func == (lhs: Action, rhs: Action) -> Bool

Parameters

Name Description
lhs A value to compare.
rhs Another value to compare.