BrowserActionItem

Added in 1.2.0
Deprecated in 1.2.0

public 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(
    @NonNull String title,
    @NonNull PendingIntent action,
    @DrawableRes int iconId
)

Constructor for BrowserActionItem with icon, string and action provided.

Public constructors

BrowserActionItem

Added in 1.2.0
Deprecated in 1.2.0
public BrowserActionItem(@NonNull String title, @NonNull PendingIntent action)

Constructor for BrowserActionItem with only string and action provided.

Parameters
@NonNull String title

The icon shown for a custom item.

@NonNull PendingIntent action

The string shown for a custom item.

BrowserActionItem

Added in 1.2.0
Deprecated in 1.2.0
public BrowserActionItem(
    @NonNull String title,
    @NonNull PendingIntent action,
    @DrawableRes int iconId
)

Constructor for BrowserActionItem with icon, string and action provided.

Parameters
@NonNull String title

The string shown for a custom item.

@NonNull PendingIntent action

The PendingIntent executed when a custom item is selected

@DrawableRes int iconId

The resource id of the icon shown for a custom item.

Public methods

getAction

Added in 1.2.0
Deprecated in 1.2.0
public @NonNull PendingIntent getAction()
Returns
@NonNull PendingIntent

The action of a custom item.

getIconId

Added in 1.2.0
Deprecated in 1.2.0
public int getIconId()
Returns
int

The resource id of the icon.

getTitle

Added in 1.2.0
Deprecated in 1.2.0
public @NonNull String getTitle()
Returns
@NonNull String

The title of a custom item.