Package com.appsamurai.storyly

Types

BaseInit
Link copied to clipboard
abstract class BaseInit(storylyId: String, config: STRConfig)
PlayMode
Link copied to clipboard
enum PlayMode : Enum<PlayMode>

This data class represents the preview mode of stories.

ShareType
Link copied to clipboard
enum ShareType : Enum<ShareType>
Story
Link copied to clipboard
data class Story(uniqueId: String, index: Int, title: String, name: String?, seen: Boolean, currentTime: Long?, previewUrl: String?, storyComponentList: List<StoryComponent>?, actionUrl: String?, actionProducts: List<STRProductItem>?)

This data class represents a story inside a story group.

StoryButtonComponent
Link copied to clipboard
data class StoryButtonComponent(id: String, text: String, actionUrl: String?, products: List<STRProductItem>?, customPayload: String?) : StoryComponent

This data class represents the ButtonAction component.

StoryCommentComponent
Link copied to clipboard
data class StoryCommentComponent(id: String, text: String, customPayload: String?) : StoryComponent

This data class represents the Comment component.

StoryComponent
Link copied to clipboard
open class StoryComponent(id: String, type: StoryComponentType, customPayload: String?)

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 components.

StoryEmojiComponent
Link copied to clipboard
data class StoryEmojiComponent(id: String, emojiCodes: List<String>, selectedEmojiIndex: Int, customPayload: String?) : StoryComponent

This data class represents the Emoji component.

StoryGroup
Link copied to clipboard
data class StoryGroup(uniqueId: String, title: String, iconUrl: String?, iconVideoUrl: String?, iconVideoThumbnailUrl: String?, index: Int, seen: Boolean, stories: List<Story>, pinned: Boolean, type: StoryGroupType, style: StoryGroupStyle?, name: String?, nudge: Boolean)

This data class represents a story group in the StorylyView.

StoryGroupAnimation
Link copied to clipboard
enum StoryGroupAnimation : Enum<StoryGroupAnimation>

This enum class represents available animations that can be set for customization.

StoryGroupBadgeStyle
Link copied to clipboard
data class StoryGroupBadgeStyle(text: String?, @ColorInt textColor: Int?, @ColorInt backgroundColor: Int?, endTime: Long?, template: String?)

This class represents a story group's badge style in the StorylyView.

StoryGroupListOrientation
Link copied to clipboard
enum StoryGroupListOrientation : Enum<StoryGroupListOrientation>

This enum class represents orientation of story group list

StoryGroupSize
Link copied to clipboard
enum StoryGroupSize : Enum<StoryGroupSize>

This enum class represents available story group sizes that be can set for customization

StoryGroupStyle
Link copied to clipboard
data class StoryGroupStyle(@ColorInt borderUnseenColors: List<Int>?, @ColorInt textUnseenColor: Int?, badge: StoryGroupBadgeStyle?)

This class represents a story group's style in the StorylyView.

StoryGroupType
Link copied to clipboard
enum StoryGroupType : Enum<StoryGroupType>

This enum class represents the type of the story group.

StoryImageQuizComponent
Link copied to clipboard
data class StoryImageQuizComponent(id: String, title: String?, options: List<String>?, rightAnswerIndex: Int?, selectedOptionIndex: Int, customPayload: String?) : StoryComponent

This data class represents the ImageQuiz component.

StorylyDataSource
Link copied to clipboard
enum StorylyDataSource : Enum<StorylyDataSource>

This enum represents the source of the storyly data

StorylyInit
Link copied to clipboard
data class StorylyInit(storylyId: String, config: StorylyConfig) : BaseInit

This class triggers initialization of Storyly

StorylyLayoutDirection
Link copied to clipboard
enum StorylyLayoutDirection : Enum<StorylyLayoutDirection>

This enum class represents available layout direction that be can set for customization

StorylyListener
Link copied to clipboard
interface StorylyListener

This interface represents StorylyListener which notifies application when an event occurs in StorylyView.

StorylyProductListener
Link copied to clipboard
interface StorylyProductListener

This delegate represents the class which notifies application when an product related event occurs in StorylyView.

StorylyView
Link copied to clipboard
class StorylyView @JvmOverloads constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : FrameLayout

This class is the main view of Storyly.

StoryPollComponent
Link copied to clipboard
data class StoryPollComponent(id: String, title: String, options: List<String>, selectedOptionIndex: Int, customPayload: String?) : StoryComponent

This data class represents the Poll component.

StoryProductCardComponent
Link copied to clipboard
data class StoryProductCardComponent(id: String, text: String?, actionUrl: String?, products: List<STRProductItem>?, customPayload: String?) : StoryComponent

This data class represents the ProductCard component.

StoryProductCatalogComponent
Link copied to clipboard
data class StoryProductCatalogComponent(id: String, actionUrlList: List<String?>?, products: List<STRProductItem>?, customPayload: String?) : StoryComponent

This data class represents the ProductCatalog component.

StoryProductTagComponent
Link copied to clipboard
data class StoryProductTagComponent(id: String, actionUrl: String?, products: List<STRProductItem>?, customPayload: String?) : StoryComponent

This data class represents the ProductTag component.

StoryPromoCodeComponent
Link copied to clipboard
data class StoryPromoCodeComponent(id: String, text: String, customPayload: String?) : StoryComponent

This data class represents the PromoCode component.

StoryQuizComponent
Link copied to clipboard
data class StoryQuizComponent(id: String, 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(id: String, emojiCode: String, rating: Int, customPayload: String?) : StoryComponent

This data class represents the Rating component.

StorySwipeComponent
Link copied to clipboard
data class StorySwipeComponent(id: String, text: String, actionUrl: String?, products: List<STRProductItem>?, customPayload: String?) : StoryComponent

This data class represents the Swipe component.

StoryType
Link copied to clipboard
enum StoryType : Enum<StoryType>

This enum class represents the type of a story content

Properties

ShowFailed_AlreadyShowing
Link copied to clipboard
const val ShowFailed_AlreadyShowing: String
ShowFailed_EmptyData
Link copied to clipboard
const val ShowFailed_EmptyData: String
ShowFailed_InvalidStory
Link copied to clipboard
const val ShowFailed_InvalidStory: String
ShowFailed_InvalidStoryGroup
Link copied to clipboard
const val ShowFailed_InvalidStoryGroup: String