Defining a News Feed Category

Instances of the Braze News Feed can be configured to only receive cards from a certain “category”. This allows for effective integration of multiple News Feed streams within a single application. For more information on this feature see Braze Academy.

News Feed Categories can be defined by calling the following methods as you load the News Feed:

1
2
3
4
5
6
[newsFeed setCategories:ABKCardCategoryAll];
[newsFeed setCategories:ABKCardCategoryAnnouncements];
[newsFeed setCategories:ABKCardCategoryAdvertising];
[newsFeed setCategories:ABKCardCategorySocial];
[newsFeed setCategories:ABKCardCategoryNews];
[newsFeed setCategories:ABKCardCategoryNoCategory];

You can also populate a feed with a combination of categories as in the following example:

1
[newsFeed setCategories:ABKCardCategoryAnnouncements|ABKCardCategoryAdvertising];
WAS THIS PAGE HELPFUL?