BrowserActionItem
open 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 icon, string and action provided.
|
Constructor for BrowserActionItem with only string and action provided.
|
Public constructors
<init>
BrowserActionItem(@NonNull title: String, @NonNull action: PendingIntent, @DrawableRes 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(@NonNull title: String, @NonNull 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
getIconId
open fun getIconId(): Int
Return |
Int: The resource id of the icon. |
getTitle
@NonNull open fun getTitle(): String
Return |
String: The title of a custom item. |