BlazeRestrictedContentParams
BlazeRestrictedContentParams
BlazeRestrictedContentParams describes the item a viewer was refused. It is passed to onContentRestricted. It deliberately uses the same vocabulary as a widget tap (BlazeWidgetItemClickParams), so a host handling a refusal and a host handling a tap read the same field names and get the same values for the same item.
| Property | Type | Description |
|---|---|---|
| contentIndex | Int | The zero-based index of the item in the list the viewer is looking at, ads excluded. Same index a widget tap reports for the item; in a Stories player it counts Stories, not pages. |
| contentId | String | The unique content ID of the refused item. For a Story this is the Story, not the page, since entitlement is decided per Story. |
| extraInfo | Map<String, String> | Content-level metadata for the item. For a Story this is the Story's extra info; for a Moment or a Video, the item's own. Empty when there is none. |
| contentThumbnailUrl | String? | The URL of the item's main thumbnail, null when the item has none. Useful for presenting the refused item while offering a way forward. |
data class BlazeRestrictedContentParams(
val contentIndex: Int,
val contentId: String,
val extraInfo: Map<String, String>,
val contentThumbnailUrl: String?
)Updated 13 days ago
Did this page help you?
