BlazeFollowEntity
Represents an entity that can be followed.
- entityId - The unique identifier of the followable entity.
- providerName - Optional. The name of the data provider that sourced this entity (for example,
"stats-perform"), forwarded to User Activity when the follow/unfollow signal is persisted and synced. Not validated by the SDK. - entityType - The category of the entity, as a BlazeFollowedEntityCategory, or
nullwhen unknown. Forwarded to User Activity alongsideproviderName. Starting in v2 (2.0.1),entityTypehas no default value, so pass a value ornull. Until v2, it defaults tonull.- Analytics: starting in v2 (2.0.1), reported as
user.followed_entities[].entity_type(lowercase, omitted whennull) on thestory_start,story_exit,moment_start,moment_exit,video_start,video_end,widget_load, andtab_data_loadevents.
- Analytics: starting in v2 (2.0.1), reported as
data class BlazeFollowEntity(
val entityId: String,
val providerName: String? = null,
val entityType: BlazeFollowedEntityCategory?
)Note: Identity is
entityId-only:providerNameandentityTypeare carried metadata and aren't part of equality or hashing. Content-driven follow taps (from the Moments player) populate them automatically when the source content has them, and they're reported inonFollowEntityClickedandgetFollowedEntities(). Host-seededsetFollowedEntities/insertFollowedEntities/removeFollowedEntitiescalls can supply them explicitly. Passing an entity with a nullproviderNameorentityTypekeeps any value the SDK already knows for that id.
BlazeSDK.followEntitiesManager.insertFollowedEntities(
setOf(BlazeFollowEntity(entityId = "team_456", entityType = BlazeFollowedEntityCategory.TEAM))
)BlazeFollowedEntityCategory
The category of a followed entity. Use it to tell the SDK what kind of entity a BlazeFollowEntity is, and to restrict the followed entities data source to some categories.
enum class BlazeFollowedEntityCategory {
TEAM,
PLAYER,
PROPERTY // for example, a competition or a league
}Note:
BlazeFollowedEntityCategorydescribes what an entity is. BlazeFollowEntityType is a style setting that picks which entity the follow button displays, with fallbacks.
Updated 12 days ago
