Package com.appsamurai.storyly

Types

Story
Link copied to clipboard
data class Story(id: Int, title: String, index: Int, seen: Boolean, media: StoryMedia)
This data class represents a story inside a story group.
StoryComponent
Link copied to clipboard
open class StoryComponent(type: StoryComponentType)
This parent class represents the interactive components which users are interacted with.
StoryComponentType
Link copied to clipboard
enum StoryComponentType : Enum<StoryComponentType>
This enum class represents the type of the interactive components.
StoryEmojiComponent
Link copied to clipboard
data class StoryEmojiComponent(emojiCodes: List<String>, selectedEmojiIndex: Int, customPayload: String?) : StoryComponent
This data class represents the Emoji component.
StoryGroup
Link copied to clipboard
data class StoryGroup(id: Int, title: String, iconUrl: String, index: Int, seen: Boolean, stories: List<Story>)
This data class represents a story group in the StorylyView.
StoryGroupSize
Link copied to clipboard
enum StoryGroupSize : Enum<StoryGroupSize>
This enum class represents available story group sizes that be can set for customization
StorylyDynamicSegmentationCallback
Link copied to clipboard
interface StorylyDynamicSegmentationCallback
This interface is used to target story groups with your own filtering function
StorylyInit
Link copied to clipboard
data class StorylyInit @JvmOverloads() constructor(storylyId: String, segmentation: StorylySegmentation)
This class triggers initialization of Storyly
StorylyListener
Link copied to clipboard
interface StorylyListener
This interface represents StorylyListener which notifies application when an event occurs in StorylyView.
StorylySegmentation
Link copied to clipboard
class StorylySegmentation @JvmOverloads() constructor(segments: Set<String>?, isDynamicSegmentationEnabled: Boolean, dynamicSegmentationCallback: StorylyDynamicSegmentationCallback)
This class is used in Storyly initialization if you are planning to target labeled story groups which are set in dashboard
StorylyView
Link copied to clipboard
class StorylyView @JvmOverloads() constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : FrameLayout
This class is the main view of Storyly.
StoryMedia
Link copied to clipboard
data class StoryMedia(type: StoryType, url: String, actionUrlList: List<String>?)
This data class represents the media of a story.
StoryPollComponent
Link copied to clipboard
data class StoryPollComponent(title: String, options: List<String>, selectedOptionIndex: Int, customPayload: String?) : StoryComponent
This data class represents the Poll component.
StoryQuizComponent
Link copied to clipboard
data class StoryQuizComponent(title: String, options: List<String>, rightAnswerIndex: Int?, selectedOptionIndex: Int, customPayload: String?) : StoryComponent
This data class represents the Quiz component.
StoryRatingComponent
Link copied to clipboard
data class StoryRatingComponent(emojiCode: String, rating: Int, customPayload: String?) : StoryComponent
This data class represents the Rating component.
StoryType
Link copied to clipboard
enum StoryType : Enum<StoryType>
This enum class represents the type of a story content