skrypton-api / com.waicool20.skrypton.jni.objects / SKryptonWebProfile

SKryptonWebProfile

class SKryptonWebProfile : NativeInterface

A class representing a profile used by the backing web engine.

Constructors

<init>

SKryptonWebProfile(storageName: String)

Main constructor.

Properties

cachePath

var cachePath: Path

Path used for caches.

handle

val handle: CPointer

Native pointer

httpAcceptLanguage

var httpAcceptLanguage: String

Value of the Accept-Language HTTP request-header field.

httpCacheMaxSize

var httpCacheMaxSize: Int

Maximum size of the HTTP cache, 0 if auto-managed by the web engine.

httpCacheType

var httpCacheType: HttpCacheType

Type of HTTP cache used.

httpUserAgent

var httpUserAgent: String

User-Agent used by the web engine.

isOffTheRecord

val isOffTheRecord: Boolean

Whether or not the profile is incognito.

persistentCookiesPolicy

var persistentCookiesPolicy: PersistentCookiesPolicy

The policy for persisting cookies.

persistentStoragePath

var persistentStoragePath: Path

Path used to store persistent data. (Includes persistent cookies, HTML5 local storage, and visited links)

spellCheckEnabled

var spellCheckEnabled: Boolean

Whether or not the spell checker is enabled.

spellCheckLanguages

var spellCheckLanguages: Array<String>

List of languages used by the spell checker.

storageName

val storageName: String

The storage name for the profile, used for giving each profile a separate sub-directory to store persistent data and cache.

Functions

clearAllVisitedLinks

fun clearAllVisitedLinks(): Unit

Clears all links from the visited links database.

clearHttpCache

fun clearHttpCache(): Unit

Clears the profile's cache entries.

clearVisitedLinks

fun clearVisitedLinks(urls: List<String>): Unit

Removes urls from the visited links database.

close

fun close(): Unit

Doesn't do anything, dispose the web view using this profile instead.

visitedLinksContainsUrl

fun visitedLinksContainsUrl(url: String): Boolean

Checks if the given url is in the visited links database.

Inherited Functions

dispose

fun dispose(): Unit

Disposes this object, usually same action as close

Companion Object Properties

defaults

val defaults: SKryptonWebProfile

Profile instance that is used by default.