getStoriesCount

suspend fun getStoriesCount(categoryIds: List<String>): Int

Retrieves the count of stories for the specified categories.

This method checks if the SDK is initialized. If it is not initialized, it returns 0. It also checks if the provided list of category IDs is empty, returning 0 in that case as well. If both conditions are met, it fetches the stories count from singleStoryDataSource.

Return

The count of stories for the specified categories. Returns 0 if the SDK is not initialized or if the categoryIds list is empty.

Parameters

categoryIds

A list of category IDs for which the stories count is to be fetched. This list must not be empty for a valid count to be returned.