# BrowserActionsIntent

Artifact: [androidx.browser:browser](https://developer.android.com/jetpack/androidx/releases/browser) [View Source](https://cs.android.com/search?q=file:androidx/browser/browseractions/BrowserActionsIntent.java+class:androidx.browser.browseractions.BrowserActionsIntent) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

*** ** * ** ***


```
class BrowserActionsIntent
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> Browser Actions are deprecated as of release 1.2.0.

Class holding the `https://developer.android.com/reference/android/content/Intent.html` and start bundle for a Browser Actions Activity.

**Note:** The constants below are public for the browser implementation's benefit. You are strongly encouraged to use `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent.Builder`.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent.Builder` **This class is deprecated.** Deprecated in Java |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#ACTION_BROWSER_ACTIONS_OPEN() = "androidx.browser.browseractions.browser_action_open"` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#EXTRA_APP_ID() = "androidx.browser.browseractions.APP_ID"` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#EXTRA_MENU_ITEMS() = "androidx.browser.browseractions.extra.MENU_ITEMS"` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#EXTRA_SELECTED_ACTION_PENDING_INTENT() = "androidx.browser.browseractions.extra.SELECTED_ACTION_PENDING_INTENT"` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#EXTRA_TYPE() = "androidx.browser.browseractions.extra.TYPE"` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#ITEM_COPY() = 3` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#ITEM_DOWNLOAD() = 2` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#ITEM_INVALID_ITEM() = -1` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#ITEM_OPEN_IN_INCOGNITO() = 1` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#ITEM_OPEN_IN_NEW_TAB() = 0` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#ITEM_SHARE() = 4` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#KEY_ACTION() = "androidx.browser.browseractions.ACTION"` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#KEY_ICON_ID() = "androidx.browser.browseractions.ICON_ID"` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#KEY_TITLE() = "androidx.browser.browseractions.TITLE"` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#MAX_CUSTOM_ITEMS() = 5` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#URL_TYPE_AUDIO() = 3` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#URL_TYPE_FILE() = 4` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#URL_TYPE_IMAGE() = 1` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#URL_TYPE_NONE() = 0` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#URL_TYPE_PLUGIN() = 5` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#URL_TYPE_VIDEO() = 2` **This property is deprecated.** Deprecated in Java |

| ### Public functions |
|---|---|
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `[getCreatorPackageName](https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#getCreatorPackageName(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html)` **This function is deprecated.** This return value of this method cannot be trusted, it is kept around for compatibility. <br /> |
| `https://developer.android.com/reference/android/content/Intent.html` | `[getIntent](https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#getIntent())()` **This function is deprecated.** Deprecated in Java |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `[getUntrustedCreatorPackageName](https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#getUntrustedCreatorPackageName(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html)` **This function is deprecated.** Deprecated in Java |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[launchIntent](https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#launchIntent(android.content.Context,android.content.Intent))(context: https://developer.android.com/reference/android/content/Context.html, intent: https://developer.android.com/reference/android/content/Intent.html)` **This function is deprecated.** Deprecated in Java |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[openBrowserAction](https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#openBrowserAction(android.content.Context,android.net.Uri))(context: https://developer.android.com/reference/android/content/Context.html, uri: https://developer.android.com/reference/android/net/Uri.html)` **This function is deprecated.** Deprecated in Java |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[openBrowserAction](https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#openBrowserAction(android.content.Context,android.net.Uri,int,java.util.ArrayList<androidx.browser.browseractions.BrowserActionItem>,android.app.PendingIntent))( context: https://developer.android.com/reference/android/content/Context.html, uri: https://developer.android.com/reference/android/net/Uri.html, type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, items: https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionItem!>, pendingIntent: https://developer.android.com/reference/android/app/PendingIntent.html )` **This function is deprecated.** Deprecated in Java |
| `java-static (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionItem!>` | `[parseBrowserActionItems](https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#parseBrowserActionItems(java.util.ArrayList<android.os.Bundle>))(bundles: https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/android/os/Bundle.html!>)` **This function is deprecated.** Deprecated in Java |

## Constants

### ACTION_BROWSER_ACTIONS_OPEN

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val ACTION_BROWSER_ACTIONS_OPEN = "androidx.browser.browseractions.browser_action_open": String!
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

Indicates that the user explicitly opted out of Browser Actions in the calling application.

### EXTRA_APP_ID

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val EXTRA_APP_ID = "androidx.browser.browseractions.APP_ID": String!
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

Extra that specifies `https://developer.android.com/reference/android/app/PendingIntent.html` indicating which Application sends the `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent`.

**Note:** The PendingIntent is self-reported and untrusted, sending application can modify it to use PendingIntent from other apps. This would return the package name from the app who creates the PendintIntent.

### EXTRA_MENU_ITEMS

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val EXTRA_MENU_ITEMS = "androidx.browser.browseractions.extra.MENU_ITEMS": String!
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

Extra that specifies Listused for adding custom items to the Browser Actions menu.

### EXTRA_SELECTED_ACTION_PENDING_INTENT

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val EXTRA_SELECTED_ACTION_PENDING_INTENT = "androidx.browser.browseractions.extra.SELECTED_ACTION_PENDING_INTENT": String!
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

Extra that specifies the PendingIntent to be launched when a browser specified menu item is selected. The id of the chosen item will be notified through the data of its Intent.

### EXTRA_TYPE

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val EXTRA_TYPE = "androidx.browser.browseractions.extra.TYPE": String!
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

Extra that specifies the type of url for the Browser Actions menu.

### ITEM_COPY

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val ITEM_COPY = 3: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

### ITEM_DOWNLOAD

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val ITEM_DOWNLOAD = 2: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

### ITEM_INVALID_ITEM

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val ITEM_INVALID_ITEM = -1: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

### ITEM_OPEN_IN_INCOGNITO

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val ITEM_OPEN_IN_INCOGNITO = 1: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

### ITEM_OPEN_IN_NEW_TAB

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val ITEM_OPEN_IN_NEW_TAB = 0: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

### ITEM_SHARE

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val ITEM_SHARE = 4: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

### KEY_ACTION

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val KEY_ACTION = "androidx.browser.browseractions.ACTION": String!
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

Extra PendingIntent to be launched when a custom item is selected in the Browser Actions menu.

### KEY_ICON_ID

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val KEY_ICON_ID = "androidx.browser.browseractions.ICON_ID": String!
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

Extra resource id that specifies the icon of a custom item shown in the Browser Actions menu.

### KEY_TITLE

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val KEY_TITLE = "androidx.browser.browseractions.TITLE": String!
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

Extra string that specifies the title of a custom item shown in the Browser Actions menu.

### MAX_CUSTOM_ITEMS

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val MAX_CUSTOM_ITEMS = 5: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

The maximum allowed number of custom items.

### URL_TYPE_AUDIO

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val URL_TYPE_AUDIO = 3: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

### URL_TYPE_FILE

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val URL_TYPE_FILE = 4: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

### URL_TYPE_IMAGE

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val URL_TYPE_IMAGE = 1: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

### URL_TYPE_NONE

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val URL_TYPE_NONE = 0: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

### URL_TYPE_PLUGIN

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val URL_TYPE_PLUGIN = 5: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

### URL_TYPE_VIDEO

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val URL_TYPE_VIDEO = 2: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

## Public functions

### getCreatorPackageName

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
java-static fun [getCreatorPackageName](https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#getCreatorPackageName(android.content.Intent))(intent: Intent): String?
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This return value of this method cannot be trusted, it is kept around for compatibility. Use `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#getUntrustedCreatorPackageName(android.content.Intent)`, or an alternative method if you rely on the return value.

### getIntent

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
fun [getIntent](https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#getIntent())(): Intent
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Gets the Intent of `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent`.

| Returns |
|---|---|
| `https://developer.android.com/reference/android/content/Intent.html` | the Intent of `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent`. |

### getUntrustedCreatorPackageName

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
java-static fun [getUntrustedCreatorPackageName](https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#getUntrustedCreatorPackageName(android.content.Intent))(intent: Intent): String?
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Get the package name of the creator application.

**Note:** This is self-reported and could be untrusted. Intent sender can modify it to return the package name from a different application.

| Parameters |
|---|---|
| `intent: https://developer.android.com/reference/android/content/Intent.html` | The `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent`. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | The creator package name. |

### launchIntent

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
java-static fun [launchIntent](https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#launchIntent(android.content.Context,android.content.Intent))(context: Context, intent: Intent): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Launch an Intent to open a Browser Actions menu. It first checks if any Browser Actions provider is available to create the menu. If the default Browser supports Browser Actions, menu will be opened by the default Browser, otherwise show a intent picker. If not provider, a Browser Actions menu is opened locally from support library.

| Parameters |
|---|---|
| `context: https://developer.android.com/reference/android/content/Context.html` | The context requesting for a Browser Actions menu. |
| `intent: https://developer.android.com/reference/android/content/Intent.html` | The `https://developer.android.com/reference/android/content/Intent.html` holds the setting for Browser Actions menu. |

### openBrowserAction

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
java-static fun [openBrowserAction](https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#openBrowserAction(android.content.Context,android.net.Uri))(context: Context, uri: Uri): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Construct a BrowserActionsIntent with default settings and launch it to open a Browser Actions menu.

| Parameters |
|---|---|
| `context: https://developer.android.com/reference/android/content/Context.html` | The context requesting for a Browser Actions menu. |
| `uri: https://developer.android.com/reference/android/net/Uri.html` | The url for Browser Actions menu. |

### openBrowserAction

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
java-static fun [openBrowserAction](https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#openBrowserAction(android.content.Context,android.net.Uri,int,java.util.ArrayList<androidx.browser.browseractions.BrowserActionItem>,android.app.PendingIntent))(
    context: Context,
    uri: Uri,
    type: Int,
    items: ArrayList<BrowserActionItem!>,
    pendingIntent: PendingIntent
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Construct a BrowserActionsIntent with custom settings and launch it to open a Browser Actions menu.

| Parameters |
|---|---|
| `context: https://developer.android.com/reference/android/content/Context.html` | The context requesting for a Browser Actions menu. |
| `uri: https://developer.android.com/reference/android/net/Uri.html` | The url for Browser Actions menu. |
| `type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The type of the url for context menu to be opened. |
| `items: https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionItem!>` | List of custom items to be added to Browser Actions menu. |
| `pendingIntent: https://developer.android.com/reference/android/app/PendingIntent.html` | The PendingIntent to be launched when a browser specified menu item is selected. |

### parseBrowserActionItems

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
java-static fun [parseBrowserActionItems](https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent#parseBrowserActionItems(java.util.ArrayList<android.os.Bundle>))(bundles: ArrayList<Bundle!>): (Mutable)List<BrowserActionItem!>
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Gets custom item list for browser action menu.

| Parameters |
|---|---|
| `bundles: https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/android/os/Bundle.html!>` | Data for custom items from `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionsIntent`. |

| Returns |
|---|---|
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionItem!>` | List of `https://developer.android.com/reference/kotlin/androidx/browser/browseractions/BrowserActionItem` |