---
title: "init(appURL:itemURLs:passThruParams:launchFlags:asyncRefCon:)"
framework: coreservices
role: symbol
role_heading: Initializer
path: coreservices/lslaunchurlspec/1446360-init
---

# init(appURL:itemURLs:passThruParams:launchFlags:asyncRefCon:)

Create a launch URL with the provided parameters.

## Declaration

```swift
init(appURL: Unmanaged<CFURL>?, itemURLs: Unmanaged<CFArray>?, passThruParams: UnsafePointer<AEDesc>?, launchFlags: LSLaunchFlags, asyncRefCon: UnsafeMutableRawPointer?)
```

## Parameters

- `appURL`: The URL of the application to launch.
- `itemURLs`: An array of URLs for the items to open.
- `passThruParams`: Optional parameters passed to the application without parsing.
- `launchFlags`: Flags specifying the launch behavior.
- `asyncRefCon`: A pointer to an arbitrary application-defined value notifying you of an application’s launch or termination.

## See Also

### Creating a Launch URL

- [init()](coreservices/lslaunchurlspec/1444528-init.md)

### Related Documentation

- [LSLaunchURLSpec](coreservices/lslaunchurlspec.md)
