Skip to main content

Documentation Index

Fetch the complete documentation index at: https://companyname-a7d5b98e-vanity-edits.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Injecting WalletKit into WebView allows integrating the wallet service with a dApp running in a native WebView and handling its events. To do so, enable JavaScript in the WebView and inject TonConnect.
import android.webkit.WebView
import io.ton.walletkit.ITONWalletKit
import io.ton.walletkit.extensions.injectTonConnect

val webView = WebView(context)
webView.settings.javaScriptEnabled = true

webView.injectTonConnect(walletKit)
webView.loadUrl(/* dApp URL */)
After the injection is complete, handle dApp events from a custom events handler.