Activity Feeds V3 is in closed alpha — do not use it in production (just yet).

Pins

Overview

Sometimes you’ll want to pin your favorite activity to a feed. You can pin an activity like this:

val activity = client.activity(
    activityId = "activity_123",
    fid = FeedId(group = "user", id = "john")
)
// Pin an activity
activity.pin()

// Unpin an activity
activity.unpin()

When you read a feed pinned activities are automatically returned:

feed.getOrCreate()
feed.state.pinnedActivities.collect { pinData ->
    println(pinData)
}
© Getstream.io, Inc. All Rights Reserved.