Contents

foreground(_:)

Creates and returns a foreground mode with a specified behavior.

Declaration

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

Parameters

  • foregroundMode:

    The specific foreground behavior; for example, ForegroundMode.immediate to immediately bring the app into the foreground and then perform the app intent’s action.

Return Value

A set of options that describes the specified foreground behavior.