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
| Case | Associated Values | Behavior |
|---|---|---|
ids | [ContentType: [String]]Where ContentType is either .players or .teams | Filters 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. |
labels | labelsFilter: BlazeWidgetLabel: The label used as the content source. An array of BlazeWidgetLabel to define the sorting priority for the labels | Filters 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 (
idsorlabels) can be used at a time in a filtered request. - When using
ids, at least one of the keys (.playersor.teams) must be provided.
Convenience initializers:
-
init(playerIds:teamIds:): Creates anidscase using arrays of player and team IDs. -
init(labelsFilter:labelsPriority:): Creates alabelscase using a label filter and an array of label priorities.
Updated 4 months ago
Did this page help you?
