StreamLayerDemo

This object allows uses demo features of sdk for their host application. Remember to call io.streamlayer.sdk.StreamLayer.initializeApp before using it.

Types

Link copied to clipboard
data class Stream(val eventId: Long, val leagueId: String, val title: String?, val subtitle: String?, val description: String?, val stream: String, val logoUrl: String?, val smallLogoUrl: String?, val previewUrl: String?, val horizontalPreviewUrl: String?, val time: String, val live: Boolean, val schedule: List<StreamLayerDemo.Stream.Program>?, val slateUrl: String?)
Link copied to clipboard
data class User(val id: String, val name: String? = null, val publicName: String? = null, val avatar: String? = null, val isAnonymous: Boolean = false)

Functions

Link copied to clipboard
suspend fun getDemoStreams(date: String): List<StreamLayerDemo.Stream>
Link copied to clipboard
Link copied to clipboard
suspend fun phoneAuth(phoneNumber: String, code: String): Pair<StreamLayerDemo.User, String>
Link copied to clipboard
suspend fun sendCode(phoneNumber: String): Boolean
Link copied to clipboard
suspend fun updatePublicUserName(name: String): StreamLayerDemo.User
Link copied to clipboard
Link copied to clipboard
suspend fun updateUserName(name: String): StreamLayerDemo.User