WaitAction

public struct WaitAction

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.

  • Create an ad hoc WaitAction.

    Declaration

    Swift

    public init(seconds: Int)

    Parameters

    seconds

    the time in seconds to wait before fetching the the next Action.

  • Create an WaitAction from an ID and given attributes.

    Declaration

    Swift

    public init?(id: String, attributes: AnyObject?)

    Parameters

    id

    unique ID for this Action

    attributes

    attributes of this Action