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 CustomContentAction objects.

Public functions

getId

Added in 1.9.0-rc01
fun getId(): Int
Returns
Int

The unique ID for this action.

getLabel

Added in 1.9.0-rc01
fun getLabel(): String
Returns
String

The user-visible label for this action.

getPendingIntent

Added in 1.9.0-rc01
fun getPendingIntent(): PendingIntent
Returns
PendingIntent

The PendingIntent to be sent when this action is triggered.

getTargetType

Added in 1.9.0-rc01
fun getTargetType(): Int
Returns
Int

The type of content this action applies to.