Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Computes ranges to exclude from link preview detection (mentions and markdown links).
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
internal class LinkPreviewMapperImpl(encryptionAlgorithmMapper: EncryptionAlgorithmMapper = MapperProvider.encryptionAlgorithmMapper()) : LinkPreviewMapper
Link copied to clipboard
Repository for link preview data fetching and parsing.
Link copied to clipboard
internal class LinkPreviewRepositoryImpl(httpClient: <Error class: unknown class>, kaliumFileSystem: KaliumFileSystem, resolveHostAddresses: suspend (String) -> List<String> = ::resolvePreviewHostAddresses) : LinkPreviewRepository
Default implementation of LinkPreviewRepository.
Link copied to clipboard
internal data class OpenGraphData(val title: String?, val type: String = "website", val url: String?, val description: String?, val imageUrls: List<String> = emptyList(), val siteName: String?)
Internal parsed Open Graph data structure.
Link copied to clipboard
Scans HTML head for Open Graph metadata using DOM-based parsing (Ksoup).
Link copied to clipboard
Blocks link previews for URLs from certain hosts (e.g., video/music streaming services). Uses substring matching for simplicity and to catch variations (e.g., youtu.be, youtube.com).
Link copied to clipboard
Detects URLs in text using the AOSP Patterns.WEB_URL regex, ported to commonMain for iOS parity.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
internal fun sanitizePreviewText(input: String?, maxLength: Int, collapseWhitespace: Boolean = true): String?