Action Models

When an InteractionViewController is created and given an intention, the SDK waits for Actions from Talkdesk. These Actions Model map to those Actions.

Actions

When the SDK opens an InteractionViewController Talkdesk will resolve a flow as defined beforehand (eg: gather information about order number before calling back) and will generate Actions that command the SDK to present information or gather information before a possible callback.

  • A VisualAction describes a UI interaction with the user.

    See more

    Declaration

    Swift

    public struct VisualAction
  • A protocol only Action that lets Talkdesk inform that the interaction has ended.

    See more

    Declaration

    Swift

    public struct CloseAction
  • An Error ocurred in the interaction either locally or reported in the server response.

    See more

    Declaration

    Swift

    public struct ErrorAction
  • A Protocol only action that informs the SDK that it should wait for an action as none is currently avaliable.

    The server might not have the response ready. In this case the server instructs us to wait for a few seconds as set in seconds before fetching the next action.

    See more

    Declaration

    Swift

    public struct WaitAction