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

This function is deprecated. Deprecated in Java

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

This function is deprecated. Deprecated in Java

Public functions

PendingIntent

This function is deprecated. Deprecated in Java

Int

This function is deprecated. Deprecated in Java

String

This function is deprecated. Deprecated in Java

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.