Package-level declarations

Types

Link copied to clipboard
typealias AlertCallback = () -> Unit
Link copied to clipboard
typealias BiometricAuthenticateCallback = (userAuthenticated: Boolean) -> Unit
Link copied to clipboard
typealias BiometricRequestAccessCallback = (accessGranted: Boolean) -> Unit
Link copied to clipboard
typealias BiometricUpdateTokenCallback = (tokenUpdated: Boolean) -> Unit
Link copied to clipboard
Link copied to clipboard
typealias ClosePopupCallback = (id: String) -> Unit
Link copied to clipboard
typealias ConfirmCallback = (confirmed: Boolean) -> Unit
Link copied to clipboard
external interface ContactRequestState
Link copied to clipboard
sealed interface EventHandler
Link copied to clipboard
Link copied to clipboard
typealias LocationRequestedCallback = (location: LocationData?) -> Unit
Link copied to clipboard
typealias NoParamsEventHandler = WebApp.() -> Unit
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 StoryShareParams
Link copied to clipboard
external interface StoryWidgetLink
Link copied to clipboard
typealias TrackingStartedCallback = (started: Boolean) -> Unit
Link copied to clipboard
typealias TrackingStoppedCallback = (started: Boolean) -> Unit
Link copied to clipboard
external interface WriteAccessRequestState

Properties

Link copied to clipboard
const val BG_COLOR: String
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun conditionalAction(sendDataAction: () -> String, answerWebAppQuery: (String) -> Unit, condition: () -> Boolean = { webApp.initDataUnsafe.queryId == null })
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
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
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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)