BrowserActionItem

Added in 1.2.0
Deprecated in 1.2.0

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.

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

Constructor for BrowserActionItem with icon, string and action provided.

Public constructors

BrowserActionItem

Added in 1.2.0
Deprecated in 1.2.0
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

Added in 1.2.0
Deprecated in 1.2.0
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.

Public functions

getAction

Added in 1.2.0
Deprecated in 1.2.0
fun getAction(): PendingIntent
Returns
PendingIntent

The action of a custom item.

getIconId

Added in 1.2.0
Deprecated in 1.2.0
fun getIconId(): Int
Returns
Int

The resource id of the icon.

getTitle

Added in 1.2.0
Deprecated in 1.2.0
fun getTitle(): String
Returns
String

The title of a custom item.