BrowserActionItem

open class BrowserActionItem
kotlin.Any
   ↳ androidx.browser.browseractions.BrowserActionItem

A wrapper class holding custom item of Browser Actions menu. The Bitmap is optional for a BrowserActionItem.

Summary

Public constructors
<init>(title: String, action: PendingIntent, iconId: Int)

Constructor for BrowserActionItem with icon, string and action provided.

<init>(title: String, action: PendingIntent)

Constructor for BrowserActionItem with only string and action provided.

Public methods
open String!

open PendingIntent!

open Int

Public constructors

<init>

BrowserActionItem(title: String, action: PendingIntent, iconId: Int)

Constructor for BrowserActionItem with icon, string and action provided.

Parameters
title String: The string shown for a custom item.
action String: The PendingIntent executed when a custom item is selected
iconId String: The resource id of the icon shown for a custom item.

<init>

BrowserActionItem(title: String, action: PendingIntent)

Constructor for BrowserActionItem with only string and action provided.

Parameters
title String: The icon shown for a custom item.
action String: The string shown for a custom item.

Public methods

getTitle

open fun getTitle(): String!
Return
String!: The title of a custom item.

getAction

open fun getAction(): PendingIntent!
Return
PendingIntent!: The action of a custom item.

getIconId

open fun getIconId(): Int
Return
Int: The resource id of the icon.