SwiftclassEventKit
IntelligentScheduler
class EventKit.IntelligentScheduler
Members 14
- var
static var logger: os.Logger { get } - deinit
deinit - field
let attendeeProvider: EventKit.IntelligentScheduler.AttendeeProvider+0x18 - field
let availabilityProvider: EventKit.AvailabilityProvider+0x68 - field
let dateProvider: @Sendable () -> Foundation.Date+0xe0 - field
let eventStoreActor: EventKit.ReadOnlyEventStoreActor+0x10 - field
let importanceProvider: EventKit.IntelligentScheduler.ImportanceProvider+0xb8 - field
let locationProvider: EventKit.IntelligentScheduler.LocationProvider+0x40 - field
var predictionResults: [[String : Double]]+0xf0 - field
let scheduleInfoProvider: EventKit.IntelligentScheduler.ScheduleInfoProvider+0x90 - func
getPredictions() -> [[String : Double]] - func
proposedEventDetails(for: EventKit.IntelligentScheduler.SchedulerInput, options: EventKit.IntelligentScheduler.RequestOptions, availability: [EventKit.AvailabilitySpan]?) async throws -> EventKit.IntelligentScheduler.SchedulerResults - init
EventKit.IntelligentScheduler.__allocating_init(dataSources: EventKit.IntelligentScheduler.DataSources, dateNowOverride: Foundation.Date?) -> EventKit.IntelligentScheduler - init
EventKit.IntelligentScheduler.__allocating_init() -> EventKit.IntelligentScheduler
Header
class IntelligentScheduler { struct AutocompleteAttendeeProvider { let options: EventKit.Autocompleter.Options } struct CompositeAttendeeProvider { let providers: [any EventKit.IntelligentScheduler.AttendeeProvider] } struct DefaultImportanceProvider {} struct DirectorySearchAttendeeProvider {} struct IntelligencePlatformAttendeeProvider {} struct LocalScheduleInfoProvider { var eventStoreActor: EventKit.ReadOnlyEventStoreActor } struct LocationSearchLocationProvider {} struct ScoreMappedAttendeeProvider { let provider: any EventKit.IntelligentScheduler.AttendeeProvider let scoreMapper: @Sendable (_: Swift.Double) -> Swift.Double } struct AttendeeInput { enum Value { case name(Swift.String) case resolvedAttendee(EventKit.IntelligentScheduler.ResolvedAttendee) } var value: EventKit.IntelligentScheduler.AttendeeInput.Value static func resolvedAttendee(_: EventKit.IntelligentScheduler.ResolvedAttendee) -> EventKit.IntelligentScheduler.AttendeeInput static func name(_: Swift.String) -> EventKit.IntelligentScheduler.AttendeeInput } struct ResolvedAttendee { enum Address { case emailAddress(Swift.String) case phoneNumber(Swift.String) case url(Foundation.URL) } var name: Swift.String var address: EventKit.IntelligentScheduler.ResolvedAttendee.Address var nameComponents: Foundation.PersonNameComponents? init(name: Swift.String, address: EventKit.IntelligentScheduler.ResolvedAttendee.Address, nameComponents: Foundation.PersonNameComponents?) init(name: Swift.String, address: EventKit.IntelligentScheduler.ResolvedAttendee.Address) init?(_: __C.EKAttendee) var nameComponentCount: Swift.Int { get } } struct CalendarInput { enum Value { case name(Swift.String) case resolvedCalendar(EventKit.IntelligentScheduler.ResolvedCalendar) } var value: EventKit.IntelligentScheduler.CalendarInput.Value static func resolvedCalendar(_: EventKit.IntelligentScheduler.ResolvedCalendar) -> EventKit.IntelligentScheduler.CalendarInput static func name(_: Swift.String) -> EventKit.IntelligentScheduler.CalendarInput } struct ResolvedCalendar { var identifier: Swift.String init(identifier: Swift.String) } enum Category { case unknown case personal case family case work case meeting case breakfast case lunch case dinner case social case travel } struct DataSources { var rawValue: Swift.Int static var all: EventKit.IntelligentScheduler.DataSources { get } static var attendeesFromContactsAutocomplete: EventKit.IntelligentScheduler.DataSources { get } static var attendeesFromDirectorySearch: EventKit.IntelligentScheduler.DataSources { get } static var attendeesFromIntelligencePlatform: EventKit.IntelligentScheduler.DataSources { get } static var attendeesFromRecents: EventKit.IntelligentScheduler.DataSources { get } static var local: EventKit.IntelligentScheduler.DataSources { get } } struct StartDateObject { let startDate: Foundation.Date let timeBefore: Swift.Double let timeAfter: Swift.Double let previousSpanDuration: Swift.Double let nextSpanDuration: Swift.Double let isBusySlot: Swift.Bool } struct LocationInput { enum Value { case name(Swift.String) case resolvedLocation(EventKit.IntelligentScheduler.ResolvedLocation) } var value: EventKit.IntelligentScheduler.LocationInput.Value static func resolvedLocation(_: EventKit.IntelligentScheduler.ResolvedLocation) -> EventKit.IntelligentScheduler.LocationInput static func components(title: Swift.String, address: Swift.String?, geoLocation: __C.CLLocationCoordinate2D?, mapKitHandle: Foundation.Data?) -> EventKit.IntelligentScheduler.LocationInput static func name(_: Swift.String) -> EventKit.IntelligentScheduler.LocationInput static func placemark(_: __C.CLPlacemark) -> EventKit.IntelligentScheduler.LocationInput } enum ResolvedLocation { case components(EventKit.IntelligentScheduler.LocationComponents) case placemark(__C.CLPlacemark) case mapSearchCompletion(__C.EKMapSearchCompletion) case conferenceRoom(__C.EKConferenceRoom) } struct LocationComponents { var title: Swift.String var address: Swift.String? var streetAddress: Swift.String? var latitude: Swift.Double? var longitude: Swift.Double? var mapKitHandle: Foundation.Data? init(structuredLocation: __C.EKStructuredLocation) init(title: Swift.String, address: Swift.String?, streetAddress: Swift.String?, geoLocation: __C.CLLocationCoordinate2D?, mapKitHandle: Foundation.Data?) var geoLocation: __C.CLLocationCoordinate2D? { get } } struct RequestOptions { var requestedDetails: EventKit.IntelligentScheduler.RequestedDetails var dateRange: __C.CalDateRange var maxSuggestions: Swift.Int? init(requestedDetails: EventKit.IntelligentScheduler.RequestedDetails, dateRange: __C.CalDateRange, maxSuggestions: Swift.Int?) } struct RequestedDetails { var rawValue: Swift.Int static var attendees: EventKit.IntelligentScheduler.RequestedDetails { get } static var calendar: EventKit.IntelligentScheduler.RequestedDetails { get } static var canonicalLocation: EventKit.IntelligentScheduler.RequestedDetails { get } static var category: EventKit.IntelligentScheduler.RequestedDetails { get } static var duration: EventKit.IntelligentScheduler.RequestedDetails { get } static var importance: EventKit.IntelligentScheduler.RequestedDetails { get } static var location: EventKit.IntelligentScheduler.RequestedDetails { get } static var startDate: EventKit.IntelligentScheduler.RequestedDetails { get } static var title: EventKit.IntelligentScheduler.RequestedDetails { get } } struct SchedulerInput { var title: Swift.String? var startDate: EventKit.IntelligentScheduler.TimeInput? var duration: Swift.Double? var location: EventKit.IntelligentScheduler.LocationInput? var attendees: [EventKit.IntelligentScheduler.AttendeeInput]? var importance: EventKit.Importance? var category: EventKit.IntelligentScheduler.Category? var calendar: EventKit.IntelligentScheduler.CalendarInput? init() } struct SchedulerResults { var title: [EventKit.IntelligentScheduler.ScoredResult<Swift.String>]? var startDate: [EventKit.IntelligentScheduler.ScoredResult<Foundation.Date>]? var duration: [EventKit.IntelligentScheduler.ScoredResult<Swift.Double>]? var location: [EventKit.IntelligentScheduler.ScoredResult<EventKit.IntelligentScheduler.ResolvedLocation>]? var canonicalLocation: EventKit.IntelligentScheduler.ResolvedLocation? var attendees: [[EventKit.IntelligentScheduler.ScoredResult<EventKit.IntelligentScheduler.ResolvedAttendee>]]? var importance: [EventKit.IntelligentScheduler.ScoredResult<EventKit.Importance>]? var category: [EventKit.IntelligentScheduler.ScoredResult<EventKit.IntelligentScheduler.Category>]? var calendar: [EventKit.IntelligentScheduler.ScoredResult<EventKit.IntelligentScheduler.ResolvedCalendar>]? } struct ScoredResult<A> where A: Swift.Hashable { var value: A var score: Swift.Double init(value: A, score: Swift.Double) static func < (_: EventKit.IntelligentScheduler.ScoredResult<A>, _: EventKit.IntelligentScheduler.ScoredResult<A>) -> Swift.Bool } struct TimeInput { enum Value { case fullDate(Foundation.Date) case timeOfDay(EventKit.IntelligentScheduler.TimeOfDay) case timeRange(EventKit.IntelligentScheduler.TimeRange) } var value: EventKit.IntelligentScheduler.TimeInput.Value static func fullDate(_: Foundation.Date) -> EventKit.IntelligentScheduler.TimeInput static func timeOfDay(_: EventKit.IntelligentScheduler.TimeOfDay) -> EventKit.IntelligentScheduler.TimeInput static func timeRange(_: EventKit.IntelligentScheduler.TimeRange) -> EventKit.IntelligentScheduler.TimeInput } struct TimeOfDay { var hour: Swift.Int var minute: Swift.Int init(hour: Swift.Int, minute: Swift.Int) } struct TimeRange { var startTime: EventKit.IntelligentScheduler.TimeOfDay var endTime: EventKit.IntelligentScheduler.TimeOfDay init(startTime: EventKit.IntelligentScheduler.TimeOfDay, endTime: EventKit.IntelligentScheduler.TimeOfDay) func contains(date: Foundation.Date) -> Swift.Bool } protocol AttendeeProvider { // Kind: Method, isAsync: true, isInstance: true } protocol ImportanceProvider { // Kind: Method, isAsync: false, isInstance: true } protocol LocationProvider { // Kind: Method, isAsync: true, isInstance: true // Kind: Method, isAsync: true, isInstance: true } protocol ScheduleInfoProvider { // Kind: Method, isAsync: true, isInstance: true // Kind: Method, isAsync: true, isInstance: true // Kind: Method, isAsync: true, isInstance: true } let eventStoreActor: EventKit.ReadOnlyEventStoreActor let attendeeProvider: any EventKit.IntelligentScheduler.AttendeeProvider let locationProvider: any EventKit.IntelligentScheduler.LocationProvider let availabilityProvider: any EventKit.AvailabilityProvider let scheduleInfoProvider: any EventKit.IntelligentScheduler.ScheduleInfoProvider let importanceProvider: any EventKit.IntelligentScheduler.ImportanceProvider let dateProvider: @Sendable () -> Foundation.Date var predictionResults: [[Swift.String : Swift.Double]] init(dataSources: EventKit.IntelligentScheduler.DataSources, dateNowOverride: Foundation.Date?) init() final func proposedEventDetails(for: EventKit.IntelligentScheduler.SchedulerInput, options: EventKit.IntelligentScheduler.RequestOptions, availability: [EventKit.AvailabilitySpan]?) async throws -> EventKit.IntelligentScheduler.SchedulerResults final func getPredictions() -> [[Swift.String : Swift.Double]] static var logger: os.Logger { get } deinit }