GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeDataSourcePersonalizedType - iOS

This enum defines two filtering strategies for the Labels data source: by specific content IDs or by label-based expressions. These API options aren't the same as the Concepts term personalization; see Content recommendations.


Associated Values and Behavior

CaseAssociated ValuesBehavior
ids[ContentType: [String]]Where ContentType is either .players or .teamsFilters content based on specific entity IDs. Use when the app knows exactly which players or teams are relevant. Requires at least one valid key (.players or .teams). Supports combining both .players and .teams for more granular filtering.
labelslabelsFilter: BlazeWidgetLabel: The label used as the content source. An array of BlazeWidgetLabel to define the sorting priority for the labelsFilters content using a mandatory filter expression (labelsFilter) and sorts the matching results based on labelsPriority. Both values are required.

ContentType

ContentType is an enum used as a key in the ids dictionary:

  • .players: Use player IDs for filtering.
  • .teams: Use team IDs for filtering.

Limitations

  • Only one case (ids or labels) can be used at a time in a filtered request.
  • When using ids, at least one of the keys (.players or .teams) must be provided.

Convenience initializers:

  • init(playerIds:teamIds:): Creates an ids case using arrays of player and team IDs.

  • init(labelsFilter:labelsPriority:): Creates a labels case using a label filter and an array of label priorities.


Did this page help you?