PROTOCOL

Action

public protocol Action: Codable, Equatable, Sendable

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

var 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

var title: Message?

The title of the action.

Methods

isEqualTo(_:)

func isEqualTo(_ other: any Action) -> Bool

Returns a Bool value that indicates whether the receiver and a given object are equal.

Parameters

Name Description
other The object to compare with.