One Logo Pool Ball
AppIntents · IOS API REFERENCE

AssistantSchemas.BrowserEnum

protocol · iOS 16.0+ · SDK 27.1

protocol BrowserEnum : AssistantSchemas.Model

Assistant schema conformance for types you use for web browsing functionality.

Members (1)

get · iOS 16.0+

clearHistoryTimeFrame

Swift declaration
var clearHistoryTimeFrame: some AssistantSchemas.Enum { get }

The time frame for clearing the browser history ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app enum implementation. The following example shows an app enum that conforms to the `.browser.clearHistoryTimeFrame` schema: ```swift @AppEnum(schema: .browser.clearHistoryTimeFrame) enum ClearHistoryTimeFrame: AppEnum { case today case lastFourHours case todayAndYesterday case allTime static var caseDisplayRepresentations: [ClearHistoryTimeFrame: DisplayRepresentation] = [ .today: "Today", .lastFourHours: "Last 4 hours", .todayAndYesterday: "Today and Yesterday", .allTime: "Beginning of time", ] static var typeDisplayName: LocalizedStringResource = "Clear History Timeframe" } ``` For more information about the `.browser` app intent domain, see <doc:app-schema-domain-browser>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntents types →