One Logo Pool Ball
ScreenTime · IOS API REFERENCE

STWebHistory

class · iOS 14.0+ · SDK 27.1

class STWebHistory

Members (8)

method · iOS 14.0+

deleteAllHistory

TypeScript
deleteAllHistory(): void
Swift declaration
func deleteAllHistory()
method · iOS 14.0+

deleteHistory

TypeScript
deleteHistoryDuring(interval: _Foundation_DateInterval): void
Swift declaration
func deleteHistory(during interval: DateInterval)
method · iOS 14.0+

deleteHistory

TypeScript
deleteHistoryFor(url: string): void
Swift declaration
func deleteHistory(for url: URL)
method · iOS 18.4+

fetchAllHistory

TypeScript
fetchAllHistory(completionHandler: ((arg0: (Array<string>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func fetchAllHistory() async throws -> Set<URL>
method · iOS 18.4+

fetchHistory

TypeScript
fetchHistory(interval: _Foundation_DateInterval, completionHandler: ((arg0: (Array<string>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func fetchHistory(during interval: DateInterval) async throws -> Set<URL>
init · iOS 14.0+

init

TypeScript
static initBundleIdentifier(bundleIdentifier: string): STWebHistory
Swift declaration
init(bundleIdentifier: String) throws
init · iOS 18.4+

init

TypeScript
static initBundleIdentifierProfileIdentifier(bundleIdentifier: string, profileIdentifier?: (STWebHistory_ProfileIdentifier) | null): STWebHistory
Swift declaration
init(bundleIdentifier: String, profileIdentifier: STWebHistory.ProfileIdentifier?) throws
init · iOS 18.4+

init

TypeScript
static initProfileIdentifier(profileIdentifier?: (STWebHistory_ProfileIdentifier) | null): STWebHistory
Swift declaration
init(profileIdentifier: STWebHistory.ProfileIdentifier?)

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

STWebHistory.init()

inherited init: cannot prove legal (class declares 3 custom initializers)

All ScreenTime types →