Dynamic Content Feed
Displays dynamic content based on the provided channel id and content parameters.
val dynamicContentParameters = mapOf(
"<cohort key>" to listOf("<cohort value 1>", "<cohort value 2>"),
)
val viewOptions = viewOptions {
baseOptions {
feedResource(
FeedResource.DynamicContent("Encoded channel id", dynamicContentParameters),
)
}
layoutOptions {
feedLayout(
FeedLayout.HORIZONTAL
)
}
}
val videoFeedView = findViewById<FwVideoFeedView>(R.id.videoFeedView)
videoFeedView.init(viewOptions)
Map<String, List<String>> dynamicContentParameters = Map.of(
"<cohort key>", List.of("<cohort value 1>", "<cohort value 2>"),
);
BaseOption baseOption = new BaseOption.Builder()
.feedResource(new FeedResource.DynamicContent("Encoded channel id", dynamicContentParameters))
.build();
LayoutOption layoutOption = new LayoutOption.Builder()
.feedLayout(FeedLayout.HORIZONTAL)
.build();
ViewOptions viewOptions = new ViewOptions.Builder()
.baseOption(baseOption)
.layoutOption(layoutOption)
.build();
FwVideoFeedView videoFeedView = findViewById<FwVideoFeedView>(R.id.videoFeedView)
videoFeedView.init(viewOptions
Last updated