Global feed

This component shows the global feed.

Features

Feature

Description

Global feed

Scroll vertically to see a list of posts from the global feed

Usage

Create a Fragment

You can use either of these two methods:

  1. build - the posts will be ranked in chronological order. Below is the sample code.

    AmityGlobalFeedFragment.newInstance().build()

  2. <newCustomPostRankingmethod> - the posts will be ranked according to a score-sorting mechanism. Refer to Custom Post Ranking for more information about this feature. You can retrieve your global feed sorted by ranking score with this code.

    let viewController = AmityGlobalFeedViewController.makeCustomPostRanking()

Last updated