Contents

foreground(_:)

Creates and returns a foreground mode with a specified behavior.

Declaration

static func foreground(_ foregroundMode: IntentModes.ForegroundMode) -> IntentModes

Parameters

  • foregroundMode:

    The foreground behavior to apply to the app intent. For example, specify Immediate to bring the app to the foreground before running the app intent.

Return Value

A set of options that describes the foreground behavior.