---
title: "init(identifier:localizedTitle:availability:handler:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uidocumentbrowseraction/init(identifier:localizedtitle:availability:handler:)"
---

# init(identifier:localizedTitle:availability:handler:)

Instantiates and returns a new browser action item.

## Declaration

```swift
init(identifier: String, localizedTitle: String, availability: UIDocumentBrowserAction.Availability, handler: @escaping ([URL]) -> Void)
```

## Parameters

- `identifier`: A unique identifier for the activity.
- `localizedTitle`: The title that appears in the Edit Menu or navigation bar. This title should be a doc://com.apple.documentation/documentation/Swift/String returned by doc://com.apple.documentation/documentation/Foundation/NSLocalizedString.
- `availability`: A value that defines where the action can appear (in the menu, navigation bar, or both). For a list of valid values, see doc://com.apple.uikit/documentation/UIKit/UIDocumentBrowserAction/Availability-swift.struct.
- `handler`: A block that is called when the user triggers the action. The block takes the following parameter:

## See Also

### Creating and configuring actions

- [image](uikit/uidocumentbrowseraction/image.md)
- [supportedContentTypes](uikit/uidocumentbrowseraction/supportedcontenttypes.md)
- [supportsMultipleItems](uikit/uidocumentbrowseraction/supportsmultipleitems.md)
