Package-level declarations

Types

Link copied to clipboard
typealias AlertCallback = () -> Unit
Link copied to clipboard
external interface BackButton
Link copied to clipboard
external class BottomButton
Link copied to clipboard
data class BottomButtonParams(val text: String? = null, val color: String? = null, val textColor: String? = null, val isActive: Boolean? = null, val isVisible: Boolean? = null)
Link copied to clipboard
sealed interface Color
Link copied to clipboard
Link copied to clipboard
typealias ConfirmCallback = (confirmed: Boolean) -> Unit
Link copied to clipboard
Link copied to clipboard
typealias EventHandler = WebApp.() -> Unit
Link copied to clipboard
sealed class EventType
Link copied to clipboard
typealias HEXColor = String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external interface OpenLinkParams
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external interface RequestStatus
Link copied to clipboard
external interface SettingsButton
Link copied to clipboard
external interface Telegram
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external interface ThemeParams
Link copied to clipboard
external interface ViewportChangedData
Link copied to clipboard
external class WebApp
Link copied to clipboard
external interface WebAppChat
Link copied to clipboard
external interface WebAppInitData
Link copied to clipboard
external interface WebAppUser
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun handleResult(onSendData: () -> String?, onAnswerWebAppQuery: (WebAppQueryId) -> Unit)
Link copied to clipboard
Link copied to clipboard
fun WebApp.onBackButtonClicked(eventHandler: EventHandler): () -> Unit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun WebApp.onMainButtonClicked(eventHandler: EventHandler): () -> Unit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun WebApp.onThemeChanged(eventHandler: EventHandler): () -> Unit
Link copied to clipboard
fun OpenLinkParams(tryInstantView: Boolean): OpenLinkParams
Link copied to clipboard
inline fun sendDataOrWorkWithQueryId(onSendData: () -> String?, onAnswerWebAppQuery: (WebAppQueryId) -> Unit)
Link copied to clipboard
Link copied to clipboard
fun WebApp.showPopup(message: String, title: String?, buttons: Array<PopupButton>, callback: ClosePopupCallback? = null)
fun WebApp.showPopup(message: String, title: String?, firstButton: PopupButton, vararg otherButtons: PopupButton, callback: ClosePopupCallback? = null)