foreground(_:)
Creates and returns a foreground mode with a specified behavior.
Declaration
static func foreground(_ foregroundMode: IntentModes.ForegroundMode) -> IntentModesParameters
- foregroundMode:
The specific foreground behavior; for example,
ForegroundMode.immediateto 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.