Amity Story Repository
class AmityStoryRepository
Functions
Link copied to clipboard
Link copied to clipboard
fun createImageStory(targetType: AmityStory.TargetType, targetId: String, imageUri: Uri, storyItems: List<AmityStoryItem> = emptyList(), imageDisplayMode: AmityStoryImageDisplayMode = AmityStoryImageDisplayMode.FIT, metadata: JsonObject? = null): Completable
Link copied to clipboard
fun createVideoStory(targetType: AmityStory.TargetType, targetId: String, videoUri: Uri, storyItems: List<AmityStoryItem> = emptyList(), metadata: JsonObject? = null): Completable
Link copied to clipboard
fun getActiveStories(targetType: AmityStory.TargetType, targetId: String, sortOption: AmityStorySortOption = AmityStorySortOption.FIRST_CREATED): Flowable<PagingData<AmityStory>>
Link copied to clipboard
fun getGlobalStoryTargets(queryOption: AmityGlobalStoryTargetsQueryOption): Flowable<PagingData<AmityStoryTarget>>
Link copied to clipboard
fun getStoriesByTargets(targets: List<Pair<AmityStory.TargetType, String>>, sortOption: AmityStorySortOption = AmityStorySortOption.FIRST_CREATED): Flowable<List<AmityStory>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getStoryTargets(targets: List<Pair<AmityStory.TargetType, String>>): Flowable<List<AmityStoryTarget>>
Link copied to clipboard
Link copied to clipboard