Channel Hashtags Feed
Displays feed based on the provided hashtag filter expression.
Hashtag filter expression is an s-expression used to provide feeds filtered by hashtags with specified criteria.Queries are specified with boolean predicates on what hashtags are there on the video. For instance,
(and sport food)
(or sport food)
(and sport (or food comedy)
) sport
are all valid expressions. Non-UTF-8 characters are not allowed. If using boolean predicates, the expression needs to be wrapped with parenthesis.Kotlin
Java
val viewOptions = viewOptions {
baseOptions {
feedResource(
FeedResource.Sku("Encoded channel id", "Encoded playlist id"),
)
}
layoutOptions {
feedLayout(
FeedLayout.HORIZONTAL
)
}
}
val videoFeedView = findViewById<FwVideoFeedView>(R.id.videoFeedView)
videoFeedView.init(viewOptions)
private static final String HASHTAG_FILTER_EXPRESSION = "(or food art cats pets beauty fashion travel)";
BaseOption baseOption = new BaseOption.Builder()
.feedResource(new FeedResource.ChannelHashtag("Encoded channel id", HASHTAG_FILTER_EXPRESSION))
.build();
ViewOptions viewOptions = new ViewOptions.Builder()
.baseOption(baseOption)
.build();
FwVideoFeedView videoFeedView = findViewById(R.id.videoFeedView);
videoFeedView.init(viewOptions);
Last modified 3mo ago