CustomContentAction
@ExperimentalCustomContentAction
class CustomContentAction
Represents a custom action that can be invoked on specific content types (image or link) within a Custom Tab. Instances of this class are created using CustomContentAction.Builder and added to a CustomTabsIntent using addCustomContentAction.
Summary
Nested types |
|---|
|
Builder class for |
Public functions |
|
|---|---|
java-static CustomContentAction |
fromBundle(bundle: Bundle)Creates a |
Int |
getId() |
String |
getLabel() |
PendingIntent |
|
Int |
Public functions
fromBundle
java-static fun fromBundle(bundle: Bundle): CustomContentAction
Creates a CustomContentAction from a Bundle.
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
if the bundle is malformed or missing required fields. |
getLabel
fun getLabel(): String
| Returns | |
|---|---|
String |
The user-visible label for this action. |
getPendingIntent
fun getPendingIntent(): PendingIntent
| Returns | |
|---|---|
PendingIntent |
The |
getTargetType
fun getTargetType(): Int
| Returns | |
|---|---|
Int |
The type of content this action applies to. |