BrowserActionItem
class BrowserActionItem
A wrapper class holding custom item of Browser Actions menu. The Bitmap is optional for a BrowserActionItem.
Summary
Public constructors |
|---|
Constructor for BrowserActionItem with only string and action provided. |
Constructor for BrowserActionItem with icon, string and action provided. |
Public constructors
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: PendingIntent |
The string shown for a custom item. |
BrowserActionItem(
title: String,
action: PendingIntent,
iconId: @DrawableRes Int
)
Constructor for BrowserActionItem with icon, string and action provided.
| Parameters | |
|---|---|
title: String |
The string shown for a custom item. |
action: PendingIntent |
The PendingIntent executed when a custom item is selected |
iconId: @DrawableRes Int |
The resource id of the icon shown for a custom item. |