InAppActionRunner

public protocol InAppActionRunner : Sendable

Action runner for in-app experiences. Must be used in order to properly attribute custom events to the message.

  • Declaration

    Swift

    @MainActor
    func run(actionName: String, arguments: ActionArguments) async -> ActionResult

    Parameters

    actionName

    The action name.

    arguments

    The action arguments.

    Return Value

    Action result.

  • Runs actions asynchronously.

    Declaration

    Swift

    @MainActor
    func runAsync(actions: AirshipJSON)

    Parameters

    actions

    The actions payload

  • run(actions:) Asynchronous

    Declaration

    Swift

    @MainActor
    func run(actions: AirshipJSON) async

    Parameters

    actions

    The actions payload