---
title: LSLaunchFlags
framework: coreservices
role: symbol
role_heading: Structure
path: coreservices/lslaunchflags
---

# LSLaunchFlags

The specification for launching an app.

## Declaration

```swift
struct LSLaunchFlags
```

## Overview

Overview They are passed in a launch specification structure (LSLaunchFSRefSpec to the LSOpenFromRefSpec function or LSLaunchURLSpec to the LSOpenFromURLSpec function), to control the manner in which apps are launched.

## Topics

### Creating Application Launch Flags

- [init(rawValue:)](coreservices/lslaunchflags/1449893-init.md)

### Constants

- [defaults](coreservices/lslaunchflags/1443121-defaults.md)
- [andPrint](coreservices/lslaunchflags/1442495-andprint.md)
- [andDisplayErrors](coreservices/lslaunchflags/1443557-anddisplayerrors.md)
- [dontAddToRecents](coreservices/lslaunchflags/1442580-dontaddtorecents.md)
- [dontSwitch](coreservices/lslaunchflags/1442057-dontswitch.md)
- [async](coreservices/lslaunchflags/1445037-async.md)
- [newInstance](coreservices/lslaunchflags/1443359-newinstance.md)
- [andHide](coreservices/lslaunchflags/1444620-andhide.md)
- [andHideOthers](coreservices/lslaunchflags/1448911-andhideothers.md)

## Relationships

### Conforms To

- [OptionSet](swift/optionset.md)
- [Sendable](swift/sendable.md)
