eventkit

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package eventkit provides purego-based Go bindings for the macOS EventKit framework.

Apple documentation: https://developer.apple.com/documentation/eventkit

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DATETIME_COMPONENTS_DO_NOT_USE deprecated

func DATETIME_COMPONENTS_DO_NOT_USE()

Deprecated: since macOS 10.10.

func DATE_COMPONENTS_DO_NOT_USE deprecated

func DATE_COMPONENTS_DO_NOT_USE()

Deprecated: since macOS 10.10.

func EKErrorDomain

func EKErrorDomain() uintptr

@const EKErrorDomain @abstract Error domain for NSError values stemming from the EventKit Framework API. @discussion This error domain is used as the domain for all NSError instances stemming from the EventKit Framework.

func EKEventStoreChangedNotification

func EKEventStoreChangedNotification() uintptr

@constant EKEventStoreChangedNotification @discussion Notification name sent out when the database is changed by either an external process, another event store in the same process, or by calling saveEvent: or removeEvent: on a store you are managing. When you receive this notification, you should consider all EKEvent instances you have to be invalid. If you had selected events for a date range using eventsMatchingPredicate, etc. for display, you should release them and re-fetch the events again. If you have an event you are actively using (e.g. you are currently viewing details for it or editing it), you can call [EKEvent refresh] to try to revalidate it against the latest state of the database. If that method returns YES, you can continue to use the event, otherwise, you should release it and abandon what you were doing with it. The view controllers provided by EventKitUI automatically deal with this for you. This notification will also be posted if access to events or reminders is changed by the user.

func EK_LOSE_FRACTIONAL_SECONDS_DO_NOT_USE deprecated

func EK_LOSE_FRACTIONAL_SECONDS_DO_NOT_USE()

Deprecated: since macOS 10.10.

func SymbolAvailable

func SymbolAvailable(symbol string) bool

SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.

Types

type Acl_entry_id_t

type Acl_entry_id_t int64
const (
	ACL_FIRST_ENTRY Acl_entry_id_t = 0
	ACL_NEXT_ENTRY  Acl_entry_id_t = -1
	ACL_LAST_ENTRY  Acl_entry_id_t = -2
)

func (Acl_entry_id_t) String

func (e Acl_entry_id_t) String() string

type Acl_flag_t

type Acl_flag_t int64
const (
	ACL_FLAG_DEFER_INHERIT      Acl_flag_t = 1
	ACL_FLAG_NO_INHERIT         Acl_flag_t = 131072
	ACL_ENTRY_INHERITED         Acl_flag_t = 16
	ACL_ENTRY_FILE_INHERIT      Acl_flag_t = 32
	ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64
	ACL_ENTRY_LIMIT_INHERIT     Acl_flag_t = 128
	ACL_ENTRY_ONLY_INHERIT      Acl_flag_t = 256
)

func (Acl_flag_t) String

func (e Acl_flag_t) String() string

type Acl_perm_t

type Acl_perm_t int64
const (
	ACL_READ_DATA           Acl_perm_t = 2
	ACL_LIST_DIRECTORY      Acl_perm_t = 2
	ACL_WRITE_DATA          Acl_perm_t = 4
	ACL_ADD_FILE            Acl_perm_t = 4
	ACL_EXECUTE             Acl_perm_t = 8
	ACL_SEARCH              Acl_perm_t = 8
	ACL_DELETE              Acl_perm_t = 16
	ACL_APPEND_DATA         Acl_perm_t = 32
	ACL_ADD_SUBDIRECTORY    Acl_perm_t = 32
	ACL_DELETE_CHILD        Acl_perm_t = 64
	ACL_READ_ATTRIBUTES     Acl_perm_t = 128
	ACL_WRITE_ATTRIBUTES    Acl_perm_t = 256
	ACL_READ_EXTATTRIBUTES  Acl_perm_t = 512
	ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024
	ACL_READ_SECURITY       Acl_perm_t = 2048
	ACL_WRITE_SECURITY      Acl_perm_t = 4096
	ACL_CHANGE_OWNER        Acl_perm_t = 8192
	ACL_SYNCHRONIZE         Acl_perm_t = 1048576
)

func (Acl_perm_t) String

func (e Acl_perm_t) String() string

type Acl_tag_t

type Acl_tag_t int64
const (
	ACL_UNDEFINED_TAG  Acl_tag_t = 0
	ACL_EXTENDED_ALLOW Acl_tag_t = 1
	ACL_EXTENDED_DENY  Acl_tag_t = 2
)

func (Acl_tag_t) String

func (e Acl_tag_t) String() string

type Acl_type_t

type Acl_type_t int64
const (
	ACL_TYPE_EXTENDED Acl_type_t = 256
	ACL_TYPE_ACCESS   Acl_type_t = 0
	ACL_TYPE_DEFAULT  Acl_type_t = 1
	ACL_TYPE_AFS      Acl_type_t = 2
	ACL_TYPE_CODA     Acl_type_t = 3
	ACL_TYPE_NTFS     Acl_type_t = 4
	ACL_TYPE_NWFS     Acl_type_t = 5
)

func (Acl_type_t) String

func (e Acl_type_t) String() string

type Clockid_t

type Clockid_t int64

func (Clockid_t) String

func (e Clockid_t) String() string

type Dispatch_autorelease_frequency_t

type Dispatch_autorelease_frequency_t uint64
const (
	DISPATCH_AUTORELEASE_FREQUENCY_INHERIT   Dispatch_autorelease_frequency_t = 0
	DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1
	DISPATCH_AUTORELEASE_FREQUENCY_NEVER     Dispatch_autorelease_frequency_t = 2
)

func (Dispatch_autorelease_frequency_t) String

type Dispatch_block_flags_t

type Dispatch_block_flags_t uint64
const (
	DISPATCH_BLOCK_BARRIER           Dispatch_block_flags_t = 1
	DISPATCH_BLOCK_DETACHED          Dispatch_block_flags_t = 2
	DISPATCH_BLOCK_ASSIGN_CURRENT    Dispatch_block_flags_t = 4
	DISPATCH_BLOCK_NO_QOS_CLASS      Dispatch_block_flags_t = 8
	DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16
	DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32
)

func (Dispatch_block_flags_t) String

func (e Dispatch_block_flags_t) String() string

type EKAlarm

type EKAlarm struct {
	EKObject
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekalarm

func EKAlarmAlarmWithAbsoluteDate

func EKAlarmAlarmWithAbsoluteDate(date *foundation.NSDate) *EKAlarm

@method alarmWithAbsoluteDate: @abstract Creates a new autoreleased alarm with an absolute trigger time. @param date The date the alarm should fire.

func EKAlarmAlarmWithRelativeOffset

func EKAlarmAlarmWithRelativeOffset(offset float64) *EKAlarm

@method alarmWithRelativeOffset: @abstract Creates a new autoreleased alarm with a relative trigger time. @discussion Creates a new autoreleased alarm with a relative trigger time. This offset is added to the start date of the event. @param offset The offset from the event start that the alarm should fire.

func EKAlarmFromID

func EKAlarmFromID(id objc.ID) *EKAlarm

func (*EKAlarm) AbsoluteDate

func (o *EKAlarm) AbsoluteDate() *foundation.NSDate

@property absoluteDate @abstract Represents an alarm that fires at a specific date. @discussion Set this property to a date to establish an absolute alarm trigger. Setting this clears any relative interval trigger.

func (*EKAlarm) EmailAddress

func (o *EKAlarm) EmailAddress() *foundation.NSString

@property emailAddress @abstract An email address that is the recipient of an email alarm, which is an alarm that triggers an email message. @discussion When you set the emailAddress property, the action property is set to EKAlarmTypeEmail, and the soundName and url properties are set to nil.

func (*EKAlarm) Proximity

func (o *EKAlarm) Proximity() EKAlarmProximity

@property proximity @discussion Defines whether this alarm triggers via entering/exiting a geofence as defined by structuredLocation.

func (*EKAlarm) RelativeOffset

func (o *EKAlarm) RelativeOffset() float64

@property relativeOffset @abstract Specifies a relative offset from an event start date to fire an alarm. @discussion Set this property to an appropriate negative value to establish an alarm trigger relative to the start date/time of an event. Setting this clears any existing date trigger.

func (*EKAlarm) SetAbsoluteDate

func (o *EKAlarm) SetAbsoluteDate(absoluteDate *foundation.NSDate)

func (*EKAlarm) SetEmailAddress

func (o *EKAlarm) SetEmailAddress(emailAddress *foundation.NSString)

func (*EKAlarm) SetProximity

func (o *EKAlarm) SetProximity(proximity EKAlarmProximity)

func (*EKAlarm) SetRelativeOffset

func (o *EKAlarm) SetRelativeOffset(relativeOffset float64)

func (*EKAlarm) SetSoundName

func (o *EKAlarm) SetSoundName(soundName *foundation.NSString)

func (*EKAlarm) SetStructuredLocation

func (o *EKAlarm) SetStructuredLocation(structuredLocation *EKStructuredLocation)

func (*EKAlarm) SetUrl deprecated

func (o *EKAlarm) SetUrl(url *foundation.NSURL)

Deprecated: since macOS 10.9.

func (*EKAlarm) SoundName

func (o *EKAlarm) SoundName() *foundation.NSString

@property soundName @abstract The name of the sound to play when the alarm triggers. @discussion The value of this property is the name of a system sound that can be used with the soundNamed: class method to create an NSSound object. When you set the soundName property, the action property is set to EKAlarmTypeAudio, and the emailAddress and url properties are set to nil.

func (*EKAlarm) StructuredLocation

func (o *EKAlarm) StructuredLocation() *EKStructuredLocation

@property structuredLocation @discussion Allows you to set a structured location (a location with a potential geo-coordinate) on an alarm. This is used in conjunction with proximity to do geofence-based triggering of reminders.

func (*EKAlarm) Type

func (o *EKAlarm) Type() EKAlarmType

@property type @abstract The type of alarm, based on the action taken when triggering the alarm. @discussion This field is read-only; to change the type of alarm, set emailAddress for EKAlarmTypeEmail, soundName for EKAlarmTypeAudio or url for EKAlarmTypeProcedure. Setting all of those to nil will change it to EKAlarmTypeDisplay.

func (*EKAlarm) Url

func (o *EKAlarm) Url() *foundation.NSURL

@property url @abstract The URL to open when the alarm triggers. @discussion When you set the url property, the action property is set to EKAlarmTypeProcedure, and the emailAddress and soundName properties are set to nil. Note: Starting with OS X 10.9, it is not possible to create new procedure alarms or view URLs for existing procedure alarms. Trying to save or modify a procedure alarm will result in a save error. Editing other aspects of events or reminders that have existing procedure alarms is allowed as long as the alarm isn't modified. Deprecated: since macOS 10.9.

type EKAlarmProximity

type EKAlarmProximity int64
const (
	EKAlarmProximityNone  EKAlarmProximity = 0
	EKAlarmProximityEnter EKAlarmProximity = 1
	EKAlarmProximityLeave EKAlarmProximity = 2
)

func (EKAlarmProximity) String

func (e EKAlarmProximity) String() string

type EKAlarmType

type EKAlarmType int64
const (
	EKAlarmTypeDisplay   EKAlarmType = 0
	EKAlarmTypeAudio     EKAlarmType = 1
	EKAlarmTypeProcedure EKAlarmType = 2
	EKAlarmTypeEmail     EKAlarmType = 3
)

func (EKAlarmType) String

func (e EKAlarmType) String() string

type EKAuthorizationStatus

type EKAuthorizationStatus int64
const (
	EKAuthorizationStatusNotDetermined EKAuthorizationStatus = 0
	EKAuthorizationStatusRestricted    EKAuthorizationStatus = 1
	EKAuthorizationStatusDenied        EKAuthorizationStatus = 2
	EKAuthorizationStatusFullAccess    EKAuthorizationStatus = 3
	EKAuthorizationStatusWriteOnly     EKAuthorizationStatus = 4
	EKAuthorizationStatusAuthorized    EKAuthorizationStatus = 3
)

func EKEventStoreAuthorizationStatusForEntityType

func EKEventStoreAuthorizationStatusForEntityType(entityType EKEntityType) EKAuthorizationStatus

func (EKAuthorizationStatus) String

func (e EKAuthorizationStatus) String() string

type EKCalendar

type EKCalendar struct {
	EKObject
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekcalendar

func EKCalendarCalendarForEntityTypeEventStore

func EKCalendarCalendarForEntityTypeEventStore(entityType EKEntityType, eventStore *EKEventStore) *EKCalendar

@method calendarForEntityType: @abstract Creates a new autoreleased calendar that may contain the given entity type. @discussion You can only create calendars that accept either reminders or events via our API. However, other servers might allow mixing the two (though it is not common). @param entityType The entity type that this calendar may support. @param eventStore The event store in which to create this calendar.

func EKCalendarFromID

func EKCalendarFromID(id objc.ID) *EKCalendar

func (*EKCalendar) AllowedEntityTypes

func (o *EKCalendar) AllowedEntityTypes() EKEntityMask

func (*EKCalendar) AllowsContentModifications

func (o *EKCalendar) AllowsContentModifications() bool

@property allowsContentModifications @abstract Represents whether you can this add, remove, or modify items in this calendar.

func (*EKCalendar) CGColor

func (o *EKCalendar) CGColor() unsafe.Pointer

@property color @abstract Returns the calendar color as a CGColorRef. @discussion This will be nil for new calendars until you set it.

func (*EKCalendar) CalendarIdentifier

func (o *EKCalendar) CalendarIdentifier() *foundation.NSString

@property calendarIdentifier @abstract A unique identifier for the calendar. It is not sync-proof in that a full sync will lose this identifier, so you should always have a back up plan for dealing with a calendar that is no longer fetchable by this property, e.g. by title, type, color, etc. Use [EKEventStore calendarWithIdentifier:] to look up the calendar by this value.

func (*EKCalendar) Color

func (o *EKCalendar) Color() *appkit.NSColor

@property color @abstract Returns the calendar color as a NSColor. @discussion This will be nil for new calendars until you set it.

func (*EKCalendar) IsImmutable

func (o *EKCalendar) IsImmutable() bool

@property immutable @abstract If this is set to YES, it means you cannot modify any attributes of the calendar or delete it. It does NOT imply that you cannot add events or reminders to the calendar.

func (*EKCalendar) IsSubscribed

func (o *EKCalendar) IsSubscribed() bool

@property subscribed @abstract YES if this calendar is a subscribed calendar.

func (*EKCalendar) SetCGColor

func (o *EKCalendar) SetCGColor(cGColor unsafe.Pointer)

func (*EKCalendar) SetColor

func (o *EKCalendar) SetColor(color *appkit.NSColor)

func (*EKCalendar) SetSource

func (o *EKCalendar) SetSource(source *EKSource)

func (*EKCalendar) SetTitle

func (o *EKCalendar) SetTitle(title *foundation.NSString)

func (*EKCalendar) Source

func (o *EKCalendar) Source() *EKSource

@property source @abstract The source representing the 'account' this calendar belongs to. This is only settable when initially creating a calendar and then effectively read-only after that. That is, you can create a calendar, but you cannot move it to another source. @discussion This will be nil for new calendars until you set it.

func (*EKCalendar) SupportedEventAvailabilities

func (o *EKCalendar) SupportedEventAvailabilities() EKCalendarEventAvailabilityMask

@property supportedEventAvailabilities @discussion Returns a bitfield of supported event availabilities, or EKCalendarEventAvailabilityNone if this calendar does not support setting availability on an event.

func (*EKCalendar) Title

func (o *EKCalendar) Title() *foundation.NSString

@property title @abstract The title of the calendar.

func (*EKCalendar) Type

func (o *EKCalendar) Type() EKCalendarType

@property type @abstract The type of the calendar as a EKCalendarType. This is actually based on what source the calendar is in, as well as whether it is a subscribed calendar. @discussion CalDAV subscribed calendars have type EKCalendarTypeCalDAV with isSubscribed = YES.

type EKCalendarEventAvailabilityMask

type EKCalendarEventAvailabilityMask uint64
const (
	EKCalendarEventAvailabilityNone        EKCalendarEventAvailabilityMask = 0
	EKCalendarEventAvailabilityBusy        EKCalendarEventAvailabilityMask = 1
	EKCalendarEventAvailabilityFree        EKCalendarEventAvailabilityMask = 2
	EKCalendarEventAvailabilityTentative   EKCalendarEventAvailabilityMask = 4
	EKCalendarEventAvailabilityUnavailable EKCalendarEventAvailabilityMask = 8
)

func (EKCalendarEventAvailabilityMask) String

type EKCalendarItem

type EKCalendarItem struct {
	EKObject
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekcalendaritem

func EKCalendarItemFromID

func EKCalendarItemFromID(id objc.ID) *EKCalendarItem

func (*EKCalendarItem) AddAlarm

func (o *EKCalendarItem) AddAlarm(alarm *EKAlarm)

@method addAlarm: @abstract Adds an alarm to this item. @discussion This method add an alarm to an item. Be warned that some calendars can only allow a certain maximum number of alarms. When this item is saved, it will truncate any extra alarms from the array.

func (*EKCalendarItem) AddRecurrenceRule

func (o *EKCalendarItem) AddRecurrenceRule(rule *EKRecurrenceRule)

func (*EKCalendarItem) Alarms

func (o *EKCalendarItem) Alarms() *foundation.NSArray[*EKAlarm]

func (*EKCalendarItem) Attendees

func (o *EKCalendarItem) Attendees() *foundation.NSArray[*EKParticipant]

func (*EKCalendarItem) Calendar

func (o *EKCalendarItem) Calendar() *EKCalendar

@property calendar @abstract The calendar that this calendar item belongs to. @discussion This will be nil for new calendar items until you set it.

func (*EKCalendarItem) CalendarItemExternalIdentifier

func (o *EKCalendarItem) CalendarItemExternalIdentifier() *foundation.NSString

@property calendarItemExternalIdentifier @abstract A server-provided identifier for this calendar item @discussion This identifier, provided by the server, allows you to reference the same event or reminder across multiple devices. For calendars stored locally on the device, including the birthday calendar, it simply passes through to calendarItemIdentifier. This identifier is unique as of creation for every calendar item. However, there are some cases where duplicate copies of a calendar item can exist in the same database, including: - A calendar item was imported from an ICS file into multiple calendars - An event was created in a calendar shared with the user and the user was also invited to the event - The user is a delegate of a calendar that also has this event - A subscribed calendar was added to multiple accounts In such cases, you should choose between calendar items based on other factors, such as the calendar or source. This identifier is the same for all occurrences of a recurring event. If you wish to differentiate between occurrences, you may want to use the start date. This may be nil for new calendar items that do not yet belong to a calendar. In addition, there are two caveats for Exchange-based calendars: - This identifier will be different between EventKit on iOS versus OS X - This identifier will be different between devices for EKReminders

func (*EKCalendarItem) CalendarItemIdentifier

func (o *EKCalendarItem) CalendarItemIdentifier() *foundation.NSString

@property calendarItemIdentifier @abstract A unique identifier for a calendar item. @discussion Item identifiers are not sync-proof in that a full sync will lose this identifier, so you should always have a back up plan for dealing with a reminder that is no longer fetchable by this property, e.g. by title, etc. Use [EKEventStore calendarItemWithIdentifier:] to look up the item by this value.

func (*EKCalendarItem) CreationDate

func (o *EKCalendarItem) CreationDate() *foundation.NSDate

func (*EKCalendarItem) HasAlarms

func (o *EKCalendarItem) HasAlarms() bool

func (*EKCalendarItem) HasAttendees

func (o *EKCalendarItem) HasAttendees() bool

func (*EKCalendarItem) HasNotes

func (o *EKCalendarItem) HasNotes() bool

func (*EKCalendarItem) HasRecurrenceRules

func (o *EKCalendarItem) HasRecurrenceRules() bool

func (*EKCalendarItem) LastModifiedDate

func (o *EKCalendarItem) LastModifiedDate() *foundation.NSDate

func (*EKCalendarItem) Location

func (o *EKCalendarItem) Location() *foundation.NSString

func (*EKCalendarItem) Notes

func (o *EKCalendarItem) Notes() *foundation.NSString

func (*EKCalendarItem) RecurrenceRules

func (o *EKCalendarItem) RecurrenceRules() *foundation.NSArray[*EKRecurrenceRule]

@property recurrenceRules @abstract An array of EKRecurrenceRules, or nil if none.

func (*EKCalendarItem) RemoveAlarm

func (o *EKCalendarItem) RemoveAlarm(alarm *EKAlarm)

@method removeAlarm: @abstract Removes an alarm from this item.

func (*EKCalendarItem) RemoveRecurrenceRule

func (o *EKCalendarItem) RemoveRecurrenceRule(rule *EKRecurrenceRule)

func (*EKCalendarItem) SetAlarms

func (o *EKCalendarItem) SetAlarms(alarms *foundation.NSArray[*EKAlarm])

func (*EKCalendarItem) SetCalendar

func (o *EKCalendarItem) SetCalendar(calendar *EKCalendar)

func (*EKCalendarItem) SetLocation

func (o *EKCalendarItem) SetLocation(location *foundation.NSString)

func (*EKCalendarItem) SetNotes

func (o *EKCalendarItem) SetNotes(notes *foundation.NSString)

func (*EKCalendarItem) SetRecurrenceRules

func (o *EKCalendarItem) SetRecurrenceRules(recurrenceRules *foundation.NSArray[*EKRecurrenceRule])

func (*EKCalendarItem) SetTimeZone

func (o *EKCalendarItem) SetTimeZone(timeZone *foundation.NSTimeZone)

func (*EKCalendarItem) SetTitle

func (o *EKCalendarItem) SetTitle(title *foundation.NSString)

func (*EKCalendarItem) SetURL

func (o *EKCalendarItem) SetURL(uRL *foundation.NSURL)

func (*EKCalendarItem) TimeZone

func (o *EKCalendarItem) TimeZone() *foundation.NSTimeZone

func (*EKCalendarItem) Title

func (o *EKCalendarItem) Title() *foundation.NSString

@property title @abstract The title of this calendar item. @discussion This will be an empty string for new calendar items until you set it.

func (*EKCalendarItem) URL

func (o *EKCalendarItem) URL() *foundation.NSURL

type EKCalendarType

type EKCalendarType int64
const (
	EKCalendarTypeLocal        EKCalendarType = 0
	EKCalendarTypeCalDAV       EKCalendarType = 1
	EKCalendarTypeExchange     EKCalendarType = 2
	EKCalendarTypeSubscription EKCalendarType = 3
	EKCalendarTypeBirthday     EKCalendarType = 4
)

func (EKCalendarType) String

func (e EKCalendarType) String() string

type EKEntityMask

type EKEntityMask uint64
const (
	EKEntityMaskEvent    EKEntityMask = 1
	EKEntityMaskReminder EKEntityMask = 2
)

func (EKEntityMask) String

func (e EKEntityMask) String() string

type EKEntityType

type EKEntityType uint64
const (
	EKEntityTypeEvent    EKEntityType = 0
	EKEntityTypeReminder EKEntityType = 1
)

func (EKEntityType) String

func (e EKEntityType) String() string

type EKErrorCode

type EKErrorCode int64
const (
	EKErrorEventNotMutable                      EKErrorCode = 0
	EKErrorNoCalendar                           EKErrorCode = 1
	EKErrorNoStartDate                          EKErrorCode = 2
	EKErrorNoEndDate                            EKErrorCode = 3
	EKErrorDatesInverted                        EKErrorCode = 4
	EKErrorInternalFailure                      EKErrorCode = 5
	EKErrorCalendarReadOnly                     EKErrorCode = 6
	EKErrorDurationGreaterThanRecurrence        EKErrorCode = 7
	EKErrorAlarmGreaterThanRecurrence           EKErrorCode = 8
	EKErrorStartDateTooFarInFuture              EKErrorCode = 9
	EKErrorStartDateCollidesWithOtherOccurrence EKErrorCode = 10
	EKErrorObjectBelongsToDifferentStore        EKErrorCode = 11
	EKErrorInvitesCannotBeMoved                 EKErrorCode = 12
	EKErrorInvalidSpan                          EKErrorCode = 13
	EKErrorCalendarHasNoSource                  EKErrorCode = 14
	EKErrorCalendarSourceCannotBeModified       EKErrorCode = 15
	EKErrorCalendarIsImmutable                  EKErrorCode = 16
	EKErrorSourceDoesNotAllowCalendarAddDelete  EKErrorCode = 17
	EKErrorRecurringReminderRequiresDueDate     EKErrorCode = 18
	EKErrorStructuredLocationsNotSupported      EKErrorCode = 19
	EKErrorReminderLocationsNotSupported        EKErrorCode = 20
	EKErrorAlarmProximityNotSupported           EKErrorCode = 21
	EKErrorCalendarDoesNotAllowEvents           EKErrorCode = 22
	EKErrorCalendarDoesNotAllowReminders        EKErrorCode = 23
	EKErrorSourceDoesNotAllowReminders          EKErrorCode = 24
	EKErrorSourceDoesNotAllowEvents             EKErrorCode = 25
	EKErrorPriorityIsInvalid                    EKErrorCode = 26
	EKErrorInvalidEntityType                    EKErrorCode = 27
	EKErrorProcedureAlarmsNotMutable            EKErrorCode = 28
	EKErrorEventStoreNotAuthorized              EKErrorCode = 29
	EKErrorOSNotSupported                       EKErrorCode = 30
	EKErrorInvalidInviteReplyCalendar           EKErrorCode = 31
	EKErrorNotificationsCollectionFlagNotSet    EKErrorCode = 32
	EKErrorSourceMismatch                       EKErrorCode = 33
	EKErrorNotificationCollectionMismatch       EKErrorCode = 34
	EKErrorNotificationSavedWithoutCollection   EKErrorCode = 35
	EKErrorReminderAlarmContainsEmailOrUrl      EKErrorCode = 36
	EKErrorLast                                 EKErrorCode = 37
)

func (EKErrorCode) String

func (e EKErrorCode) String() string

type EKEvent

type EKEvent struct {
	EKCalendarItem
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekevent

func EKEventEventWithEventStore

func EKEventEventWithEventStore(eventStore *EKEventStore) *EKEvent

@method eventWithEventStore: @abstract Creates a new autoreleased event object.

func EKEventFromID

func EKEventFromID(id objc.ID) *EKEvent

func (*EKEvent) Availability

func (o *EKEvent) Availability() EKEventAvailability

@property availability @abstract The availability setting for this event. @discussion The availability setting is used by CalDAV and Exchange servers to indicate how the time should be treated for scheduling. If the calendar the event is currently in does not support event availability, EKEventAvailabilityNotSupported is returned.

func (*EKEvent) BirthdayContactIdentifier

func (o *EKEvent) BirthdayContactIdentifier() *foundation.NSString

@method birthdayContactIdentifier @abstract Specifies the contact identifier of the person this event was created for. @discussion This property is only valid for events in the built-in Birthdays calendar. It specifies the contact identifier (for use with the Contacts framework) of the person this event was created for. For any other type of event, this property returns nil.

func (*EKEvent) BirthdayPersonUniqueID

func (o *EKEvent) BirthdayPersonUniqueID() *foundation.NSString

@property birthdayPersonUniqueID @abstract Specifies the address book unique ID of the person this event was created for. @discussion This property is only valid for events in the built-in Birthdays calendar. It specifies the Address Book unique ID of the person this event was created for. For any other type of event, this property returns nil. Deprecated: since macOS 10.11.

func (*EKEvent) CompareStartDateWithEvent

func (o *EKEvent) CompareStartDateWithEvent(other *EKEvent) foundation.NSComparisonResult

@method compareStartDateWithEvent @abstract Comparison function you can pass to sort NSArrays of EKEvents by start date.

func (*EKEvent) EndDate

func (o *EKEvent) EndDate() *foundation.NSDate

func (*EKEvent) EventIdentifier

func (o *EKEvent) EventIdentifier() *foundation.NSString

@property eventIdentifier @abstract A unique identifier for this event. @discussion This identifier can be used to look the event up using [EKEventStore eventWithIdentifier:]. You can use this not only to simply fetch the event, but also to validate the event has not been deleted out from under you when you get an external change notification via the EKEventStore database changed notification. If eventWithIdentifier: returns nil, the event was deleted. Please note that if you change the calendar of an event, this ID will likely change. It is currently also possible for the ID to change due to a sync operation. For example, if a user moved an event on a different client to another calendar, we'd see it as a completely new event here. This may be nil for events that have not been saved.

func (*EKEvent) IsAllDay

func (o *EKEvent) IsAllDay() bool

@property allDay @abstract Indicates this event is an 'all day' event.

func (*EKEvent) IsDetached

func (o *EKEvent) IsDetached() bool

@property isDetached @abstract Represents whether this event is detached from a recurring series. @discussion If this EKEvent is an instance of a repeating event, and an attribute of this EKEvent has been changed from the default value generated by the repeating event, isDetached will return YES. If the EKEvent is unchanged from its default state, or is not a repeating event, isDetached returns NO.

func (*EKEvent) OccurrenceDate

func (o *EKEvent) OccurrenceDate() *foundation.NSDate

@property occurrenceDate: @abstract The occurrence date of an event if it is part of a recurring series. @discussion This is only set if the event is part of a recurring series. It returns the date on which this event was originally scheduled to occur. For occurrences that are unmodified from the recurring series, this is the same as the start date. This value will remain the same even if the event has been detached and its start date has changed. Floating events (such as all-day events) are currently returned in the default time zone. ([NSTimeZone defaultTimeZone]) This will be nil for new events until you set startDate.

func (*EKEvent) Organizer

func (o *EKEvent) Organizer() *EKParticipant

@property organizer @abstract The organizer of this event, or nil.

func (*EKEvent) SetAllDay

func (o *EKEvent) SetAllDay(allDay bool)

func (*EKEvent) SetAvailability

func (o *EKEvent) SetAvailability(availability EKEventAvailability)

func (*EKEvent) SetEndDate

func (o *EKEvent) SetEndDate(endDate *foundation.NSDate)

func (*EKEvent) SetStartDate

func (o *EKEvent) SetStartDate(startDate *foundation.NSDate)

func (*EKEvent) SetStructuredLocation

func (o *EKEvent) SetStructuredLocation(structuredLocation *EKStructuredLocation)

func (*EKEvent) StartDate

func (o *EKEvent) StartDate() *foundation.NSDate

@property startDate @abstract The start date for the event. @discussion This property represents the start date for this event. Floating events (such as all-day events) are currently always returned in the default time zone. ([NSTimeZone defaultTimeZone]) This will be nil for new events until you set it.

func (*EKEvent) Status

func (o *EKEvent) Status() EKEventStatus

@property status @abstract The status of the event. @discussion While the status offers four different values in the EKEventStatus enumeration, in practice, the only actionable and reliable status is canceled. Any other status should be considered informational at best. You cannot set this property. If you wish to cancel an event, you should simply remove it using removeEvent:.

func (*EKEvent) StructuredLocation

func (o *EKEvent) StructuredLocation() *EKStructuredLocation

@property structuredLocation @abstract Allows you to set a structured location (a location with a potential geo-coordinate) on an event. The getter for EKEvent’s location property just returns the structured location’s title. The setter for EKEvent’s location property is equivalent to [event setStructuredLocation:[EKStructuredLocation locationWithTitle:…]].

type EKEventAvailability

type EKEventAvailability int64
const (
	EKEventAvailabilityNotSupported EKEventAvailability = -1
	EKEventAvailabilityBusy         EKEventAvailability = 0
	EKEventAvailabilityFree         EKEventAvailability = 1
	EKEventAvailabilityTentative    EKEventAvailability = 2
	EKEventAvailabilityUnavailable  EKEventAvailability = 3
)

func (EKEventAvailability) String

func (e EKEventAvailability) String() string

type EKEventStatus

type EKEventStatus int64
const (
	EKEventStatusNone      EKEventStatus = 0
	EKEventStatusConfirmed EKEventStatus = 1
	EKEventStatusTentative EKEventStatus = 2
	EKEventStatusCanceled  EKEventStatus = 3
)

func (EKEventStatus) String

func (e EKEventStatus) String() string

type EKEventStore

type EKEventStore struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekeventstore

func EKEventStoreFromID

func EKEventStoreFromID(id objc.ID) *EKEventStore

func (*EKEventStore) CalendarItemWithIdentifier

func (o *EKEventStore) CalendarItemWithIdentifier(identifier *foundation.NSString) *EKCalendarItem

@method calendarItemWithIdentifier: @abstract Returns either a reminder or the first occurrence of an event.

func (*EKEventStore) CalendarItemsWithExternalIdentifier

func (o *EKEventStore) CalendarItemsWithExternalIdentifier(externalIdentifier *foundation.NSString) *foundation.NSArray[*EKCalendarItem]

@method calendarItemsWithExternalIdentifier: @abstract Returns either matching reminders or the first occurrences of any events matching the given external identifier. @discussion This method returns a set of EKEvents or EKReminders with the given external identifier. Due to reasons discussed in -[EKCalendarItem calendarItemExternalIdentifier], there may be more than one matching calendar item. @param externalIdentifier The value obtained from EKCalendarItem's calendarItemExternalIdentifier property @result An unsorted array of EKCalendarItem instances

func (*EKEventStore) CalendarWithIdentifier

func (o *EKEventStore) CalendarWithIdentifier(identifier *foundation.NSString) *EKCalendar

@method calendarWithIdentifier: @abstract Returns a calendar with a specified identifier.

func (*EKEventStore) CalendarsForEntityType

func (o *EKEventStore) CalendarsForEntityType(entityType EKEntityType) *foundation.NSArray[*EKCalendar]

@method calendarsForEntityType @abstract Returns calendars that support a given entity type (reminders, events)

func (*EKEventStore) CancelFetchRequest

func (o *EKEventStore) CancelFetchRequest(fetchIdentifier objc.ID)

@method cancelFetchRequest: @discussion Given a value returned from fetchRemindersMatchingPredicate, this method can be used to cancel the request. Once called, the completion block specified in fetchReminders... will not be called.

func (*EKEventStore) Commit

func (o *EKEventStore) Commit() (bool, error)

@method commit: @abstract Commits pending changes to the database. @discussion If you use saveCalendar/saveEvent/removeCalendar/removeEvent, etc. and you pass NO to their parameter, you are batching changes for a later commit. This method does that commit. This allows you to save the database only once for many additions or changes. If you pass YES to methods' commit parameter, then you don't need to call this method. This method will return YES as long as nothing went awry, even if nothing was actually committed. If it returns NO, error should contain the reason it became unhappy. On WatchOS, modifying the database is not supported.

func (*EKEventStore) DefaultCalendarForNewEvents

func (o *EKEventStore) DefaultCalendarForNewEvents() *EKCalendar

@property defaultCalendarForNewEvents @abstract Returns the calendar that events should be added to by default. @discussion This may be nil if there is no default calendar for new events.

func (*EKEventStore) DefaultCalendarForNewReminders

func (o *EKEventStore) DefaultCalendarForNewReminders() *EKCalendar

@method defaultCalendarForNewReminders @abstract Returns the calendar that reminders should be added to by default. @discussion This may be nil if there is no default calendar for new reminders.

func (*EKEventStore) DelegateSources

func (o *EKEventStore) DelegateSources() *foundation.NSArray[*EKSource]

@property delegateSources @abstract Returns an unordered array of sources for all available delegates.

func (*EKEventStore) EnumerateEventsMatchingPredicateUsing

func (o *EKEventStore) EnumerateEventsMatchingPredicateUsing(predicate *foundation.NSPredicate, block func(*EKEvent, *bool))

@method enumerateEventsMatchingPredicate:usingBlock: @abstract Searches for events that match the given predicate. @discussion This call executes a search for the events indicated by the predicate passed to it, calling the block specified in the callback parameter for each event. This method is synchronous. If you want async behavior, you should either use dispatch_async or NSOperation to run the query someplace other than the main thread. @param predicate The predicate to invoke. If this predicate was not created with the predicate creation functions in this class, an exception is raised. @param block The block to call for each event. Your block should return YES in the stop parameter to stop iterating.

func (*EKEventStore) EventStoreIdentifier

func (o *EKEventStore) EventStoreIdentifier() *foundation.NSString

@property eventStoreIdentifier @abstract Returns a unique identifier string representing this calendar store.

func (*EKEventStore) EventWithIdentifier

func (o *EKEventStore) EventWithIdentifier(identifier *foundation.NSString) *EKEvent

@method eventWithIdentifier: @abstract Returns the first occurrence of an event matching the given event identifier. @param identifier The eventIdentifier to search for. @result An EKEvent object, or nil if not found.

func (*EKEventStore) EventsMatchingPredicate

func (o *EKEventStore) EventsMatchingPredicate(predicate *foundation.NSPredicate) *foundation.NSArray[*EKEvent]

@method eventsMatchingPredicate: @abstract Searches for events that match the given predicate. @discussion This call executes a search for the events indicated by the predicate passed to it. It is synchronous. If you want async behavior, you should either use dispatch_async or NSOperation to run the query someplace other than the main thread, and then funnel the array back to the main thread. @param predicate The predicate to invoke. If this predicate was not created with the predicate creation functions in this class, an exception is raised. @result An array of EKEvent objects, or nil. There is no guaranteed order to the events.

func (*EKEventStore) FetchRemindersMatchingPredicateCompletion

func (o *EKEventStore) FetchRemindersMatchingPredicateCompletion(predicate *foundation.NSPredicate, completion func(*foundation.NSArray[*EKReminder])) objc.ID

@method fetchRemindersMatchingPredicate:completion: @abstract Fetches reminders asynchronously. @discussion This method fetches reminders asynchronously and returns a value which can be used in cancelFetchRequest: to cancel the request later if desired. The completion block is called with an array of reminders that match the given predicate (or potentially nil).

func (*EKEventStore) Init

func (o *EKEventStore) Init() objc.ID

@method init

func (*EKEventStore) InitWithAccessToEntityTypes

func (o *EKEventStore) InitWithAccessToEntityTypes(entityTypes EKEntityMask) objc.ID

@method initWithAccessToEntityTypes: @discussion Users are able to grant or deny access to event and reminder data on a per-app basis. To request access to event and/or reminder data, instantiate an EKEventStore using this method. This call will not block the program while the user is being asked to grant or deny access. Until access has been granted for an entity type, this event store will not contain any calendars for that entity type, and any attempt to save entities of that entity type will fail. If access is later granted or declined, the event store will broadcast an EKEventStoreChangedNotification. You can check the current access status for an entity type using +authorizationStatusForEntityType:. The user will only be prompted the first time access is requested; any subsequent instantiations of EKEventStore will use the existing permissions. @param entityTypes A bit mask of entity types to which you want access Deprecated: since macOS 10.9.

func (*EKEventStore) InitWithSources

func (o *EKEventStore) InitWithSources(sources *foundation.NSArray[*EKSource]) *EKEventStore

@method initWithSources: @abstract Creates a new event store that only includes items and calendars for a subset of sources. @param sources The sources you want this event store to recognize. This may include delegate sources.

func (*EKEventStore) PredicateForCompletedRemindersWithCompletionDateStartingEndingCalendars

func (o *EKEventStore) PredicateForCompletedRemindersWithCompletionDateStartingEndingCalendars(startDate *foundation.NSDate, endDate *foundation.NSDate, calendars *foundation.NSArray[*EKCalendar]) *foundation.NSPredicate

@method predicateForCompletedRemindersWithCompletionDateStarting:ending:calendars: @abstract Fetch completed reminders in a set of calendars. @discussion You can use this method to search for reminders completed between a range of dates. You can pass nil for start date to find all reminders completed before endDate. You can pass nil for both start and end date to get all completed reminders in the specified calendars. You can pass nil for calendars to fetch from all available calendars.

func (*EKEventStore) PredicateForEventsWithStartDateEndDateCalendars

func (o *EKEventStore) PredicateForEventsWithStartDateEndDateCalendars(startDate *foundation.NSDate, endDate *foundation.NSDate, calendars *foundation.NSArray[*EKCalendar]) *foundation.NSPredicate

@method predicateForEventsWithStartDate:endDate:calendars: @abstract Creates a predicate for use with eventsMatchingPredicate or enumerateEventsMatchingPredicate:usingBlock:. @discussion Creates a simple query predicate to search for events within a certain date range. At present, this will return events in the default time zone ([NSTimeZone defaultTimeZone]). For performance reasons, this method will only return events within a four year timespan. If the date range between the startDate and endDate is greater than four years, then it will be shortened to the first four years. @param startDate The start date. @param endDate The end date. @param calendars The calendars to search for events in, or nil to search all calendars.

func (*EKEventStore) PredicateForIncompleteRemindersWithDueDateStartingEndingCalendars

func (o *EKEventStore) PredicateForIncompleteRemindersWithDueDateStartingEndingCalendars(startDate *foundation.NSDate, endDate *foundation.NSDate, calendars *foundation.NSArray[*EKCalendar]) *foundation.NSPredicate

@method predicateForIncompleteRemindersWithDueDateStarting:ending:calendars: @abstract Fetch incomplete reminders in a set of calendars. @discussion You can use this method to search for incomplete reminders due in a range. You can pass nil for start date to find all reminders due before endDate. You can pass nil for both start and end date to get all incomplete reminders in the specified calendars. You can pass nil for calendars to fetch from all available calendars.

func (*EKEventStore) PredicateForRemindersInCalendars

func (o *EKEventStore) PredicateForRemindersInCalendars(calendars *foundation.NSArray[*EKCalendar]) *foundation.NSPredicate

@method predicateForRemindersInCalendars: @abstract Fetch all reminders in a set of calendars. @discussion You can pass nil for calendars to fetch from all available calendars.

func (*EKEventStore) RefreshSourcesIfNecessary

func (o *EKEventStore) RefreshSourcesIfNecessary()

@method refreshSourcesIfNecessary @abstract Cause a sync to potentially occur taking into account the necessity of it. @discussion You can call this method to pull new data from remote sources. This only updates the event store's data. If you want to update your objects after refreshing the sources, you should call refresh on each of them afterwards. On iOS and macOS, this sync only occurs if deemed necessary. On WatchOS, initiating sync is not available. Sync will occur automatically with the paired iOS device.

func (*EKEventStore) RemoveCalendarCommitError

func (o *EKEventStore) RemoveCalendarCommitError(calendar *EKCalendar, commit bool) (bool, error)

@method removeCalendar:commit:error: @abstract Removes a calendar from the database. @discussion This method attempts to delete the given calendar from the calendar database. It returns YES if successful and NO otherwise. Passing a calendar fetched from another EKEventStore instance into this function will raise an exception. If the calendar supports multiple entity types (allowedEntityTypes), but the user has not granted you access to all those entity types, then we will delete all of the entity types for which you have access and remove that entity type from the allowedEntityTypes. For example: If a calendar supports both events and reminders, but you only have access to reminders, we will delete all the reminders and make the calendar only support events. If you have access to all of its allowedEntityTypes, then it will delete the calendar and all of the events and reminders in the calendar. On WatchOS, modifying the database is not supported. @param calendar The calendar to delete. @param commit Pass YES to cause the database to save. You can pass NO to batch multiple changes and then call commit: to save them all at once. @param error If an error occurs, this will contain a valid NSError object on exit.

func (*EKEventStore) RemoveEventSpanCommitError

func (o *EKEventStore) RemoveEventSpanCommitError(event *EKEvent, span EKSpan, commit bool) (bool, error)

func (*EKEventStore) RemoveEventSpanError

func (o *EKEventStore) RemoveEventSpanError(event *EKEvent, span EKSpan) (bool, error)

@method removeEvent:span:error: @abstract Removes an event from the calendar store. @discussion This method attempts to remove the event from the calendar database. It returns YES if successful and NO otherwise. It's possible for this method to return NO, and error will be set to nil. This occurs if the event wasn't ever added and didn't need removing. This means the correct way to detect failure is a result of NO and a non-nil error parameter. Passing an event from another CalendarStore into this function will raise an exception. After an event is removed, it is no longer tied to this calendar store, and all data in the event is cleared except for the eventIdentifier. On WatchOS, modifying the database is not supported. @param event The event to save. @param span The span to use (this event, or this and future events). @param error If an error occurs, this will contain a valid NSError object on exit.

func (*EKEventStore) RemoveReminderCommitError

func (o *EKEventStore) RemoveReminderCommitError(reminder *EKReminder, commit bool) (bool, error)

@method removeReminder:commit:error: @abstract Removes a reminder from the event store. @discussion This method attempts to remove the reminder from the event store database. It returns YES if successful and NO otherwise. Passing a reminder from another EKEventStore into this function will raise an exception. After a reminder is removed, it is no longer tied to this event store. On WatchOS, modifying the database is not supported. @param reminder The reminder to save. @param commit Whether to save to the database or not. Pass NO to batch changes together and commit with [EKEventStore commit:]. @param error If an error occurs, this will contain a valid NSError object on exit.

func (*EKEventStore) RequestAccessToEntityTypeCompletion deprecated

func (o *EKEventStore) RequestAccessToEntityTypeCompletion(entityType EKEntityType, completion func(bool, unsafe.Pointer))

Deprecated: Use -requestFullAccessToEventsWithCompletion:, -requestWriteOnlyAccessToEventsWithCompletion:, or -requestFullAccessToRemindersWithCompletion:

func (*EKEventStore) RequestFullAccessToEventsWithCompletion

func (o *EKEventStore) RequestFullAccessToEventsWithCompletion(completion func(bool, unsafe.Pointer))

func (*EKEventStore) RequestFullAccessToRemindersWithCompletion

func (o *EKEventStore) RequestFullAccessToRemindersWithCompletion(completion func(bool, unsafe.Pointer))

func (*EKEventStore) RequestWriteOnlyAccessToEventsWithCompletion

func (o *EKEventStore) RequestWriteOnlyAccessToEventsWithCompletion(completion func(bool, unsafe.Pointer))

func (*EKEventStore) Reset

func (o *EKEventStore) Reset()

@method reset @abstract Resets the event store. @discussion You can use this method to forget ALL changes made to the event store (all additions, all fetched objects, etc.). It essentially is as if you released the store and then created a new one. It brings it back to its initial state. All objects ever created/fetched, etc. using this store are no longer connected to it and are considered invalid.

func (*EKEventStore) SaveCalendarCommitError

func (o *EKEventStore) SaveCalendarCommitError(calendar *EKCalendar, commit bool) (bool, error)

@method saveCalendar:commit:error: @abstract Saves changes to a calendar, or adds a new calendar to the database. @discussion This method attempts to save the given calendar to the calendar database. It returns YES if successful and NO otherwise. Passing a calendar fetched from another EKEventStore instance into this function will raise an exception. On WatchOS, saving changes is not supported. @param calendar The calendar to save. @param commit Pass YES to cause the database to save. You can pass NO to save multiple calendars and then call commit: to save them all at once. @param error If an error occurs, this will contain a valid NSError object on exit.

func (*EKEventStore) SaveEventSpanCommitError

func (o *EKEventStore) SaveEventSpanCommitError(event *EKEvent, span EKSpan, commit bool) (bool, error)

func (*EKEventStore) SaveEventSpanError

func (o *EKEventStore) SaveEventSpanError(event *EKEvent, span EKSpan) (bool, error)

@method saveEvent:span:error: @abstract Saves changes to an event permanently. @discussion This method attempts to save the event to the calendar database. It returns YES if successful and NO otherwise. It's possible for this method to return NO, and error will be set to nil. This occurs if the event wasn't dirty and didn't need saving. This means the correct way to detect failure is a result of NO and a non-nil error parameter. Passing an event fetched from another EKEventStore instance into this function will raise an exception. After an event is successfully saved, it is also put into sync with the database, meaning that all fields you did not change will be updated to the latest values. If you save the event, but it was deleted by a different store/process, you will effectively recreate the event as a new event. On WatchOS, saving changes is not supported. @param event The event to save. @param span The span to use (this event, or this and future events). @param error If an error occurs, this will contain a valid NSError object on exit.

func (*EKEventStore) SaveReminderCommitError

func (o *EKEventStore) SaveReminderCommitError(reminder *EKReminder, commit bool) (bool, error)

@method saveReminder:commit:error: @abstract Saves changes to a reminder. @discussion This method attempts to save the reminder to the event store database. It returns YES if successful and NO otherwise. Passing a reminder fetched from another EKEventStore instance into this function will raise an exception. After a reminder is successfully saved, its fields are updated to the latest values in the database. On WatchOS, saving changes is not supported. @param reminder The reminder to save. @param commit Whether to save to the database or not. Pass NO to batch changes together and commit with [EKEventStore commit:]. @param error If an error occurs, this will contain a valid NSError object on exit.

func (*EKEventStore) SourceWithIdentifier

func (o *EKEventStore) SourceWithIdentifier(identifier *foundation.NSString) *EKSource

@method sourceWithIdentifier: @abstract Returns a source with a specified identifier.

func (*EKEventStore) Sources

func (o *EKEventStore) Sources() *foundation.NSArray[*EKSource]

@property sources @abstract Returns an unordered array of sources.

type EKObject

type EKObject struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekobject

func EKObjectFromID

func EKObjectFromID(id objc.ID) *EKObject

func (*EKObject) HasChanges

func (o *EKObject) HasChanges() bool

func (*EKObject) IsNew

func (o *EKObject) IsNew() bool

func (*EKObject) Refresh

func (o *EKObject) Refresh() bool

func (*EKObject) Reset

func (o *EKObject) Reset()

func (*EKObject) Rollback

func (o *EKObject) Rollback()

type EKParticipant

type EKParticipant struct {
	EKObject
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekparticipant

func EKParticipantFromID

func EKParticipantFromID(id objc.ID) *EKParticipant

func (*EKParticipant) ABPersonInAddressBook

func (o *EKParticipant) ABPersonInAddressBook(addressBook *addressbook.ABAddressBook) *addressbook.ABPerson

@method ABPersonInAddressBook @abstract Returns the ABPerson that represents this participant. @discussion This method returns the ABPerson that represents this participant, if a match can be found based on email address in the address book passed. If we cannot find the participant, nil is returned. Deprecated: since macOS 10.11.

func (*EKParticipant) ContactPredicate

func (o *EKParticipant) ContactPredicate() *foundation.NSPredicate

@method contactPredicate @abstract Returns a predicate to use with Contacts.framework to retrieve the corresponding CNContact instance. @discussion This method returns a predicate that can be used with a CNContactStore to fetch a CNContact instance for this participant, if one exists.

func (*EKParticipant) IsCurrentUser

func (o *EKParticipant) IsCurrentUser() bool

@property currentUser @abstract A boolean indicating whether this participant represents the owner of this account.

func (*EKParticipant) Name

func (o *EKParticipant) Name() *foundation.NSString

@property name @abstract Name of this participant.

func (*EKParticipant) ParticipantRole

func (o *EKParticipant) ParticipantRole() EKParticipantRole

@property participantRole @abstract The role of the attendee. @discussion Returns the role of the attendee as a EKParticipantRole value.

func (*EKParticipant) ParticipantStatus

func (o *EKParticipant) ParticipantStatus() EKParticipantStatus

@property participantStatus @abstract The status of the attendee. @discussion Returns the status of the attendee as a EKParticipantStatus value.

func (*EKParticipant) ParticipantType

func (o *EKParticipant) ParticipantType() EKParticipantType

@property participantType @abstract The type of the attendee. @discussion Returns the type of the attendee as a EKParticipantType value.

func (*EKParticipant) URL

func (o *EKParticipant) URL() *foundation.NSURL

@property url @abstract URL representing this participant.

type EKParticipantRole

type EKParticipantRole int64
const (
	EKParticipantRoleUnknown        EKParticipantRole = 0
	EKParticipantRoleRequired       EKParticipantRole = 1
	EKParticipantRoleOptional       EKParticipantRole = 2
	EKParticipantRoleChair          EKParticipantRole = 3
	EKParticipantRoleNonParticipant EKParticipantRole = 4
)

func (EKParticipantRole) String

func (e EKParticipantRole) String() string

type EKParticipantScheduleStatus

type EKParticipantScheduleStatus int64
const (
	EKParticipantScheduleStatusNone                   EKParticipantScheduleStatus = 0
	EKParticipantScheduleStatusPending                EKParticipantScheduleStatus = 1
	EKParticipantScheduleStatusSent                   EKParticipantScheduleStatus = 2
	EKParticipantScheduleStatusDelivered              EKParticipantScheduleStatus = 3
	EKParticipantScheduleStatusRecipientNotRecognized EKParticipantScheduleStatus = 4
	EKParticipantScheduleStatusNoPrivileges           EKParticipantScheduleStatus = 5
	EKParticipantScheduleStatusDeliveryFailed         EKParticipantScheduleStatus = 6
	EKParticipantScheduleStatusCannotDeliver          EKParticipantScheduleStatus = 7
	EKParticipantScheduleStatusRecipientNotAllowed    EKParticipantScheduleStatus = 8
)

func (EKParticipantScheduleStatus) String

type EKParticipantStatus

type EKParticipantStatus int64
const (
	EKParticipantStatusUnknown   EKParticipantStatus = 0
	EKParticipantStatusPending   EKParticipantStatus = 1
	EKParticipantStatusAccepted  EKParticipantStatus = 2
	EKParticipantStatusDeclined  EKParticipantStatus = 3
	EKParticipantStatusTentative EKParticipantStatus = 4
	EKParticipantStatusDelegated EKParticipantStatus = 5
	EKParticipantStatusCompleted EKParticipantStatus = 6
	EKParticipantStatusInProcess EKParticipantStatus = 7
)

func (EKParticipantStatus) String

func (e EKParticipantStatus) String() string

type EKParticipantType

type EKParticipantType int64
const (
	EKParticipantTypeUnknown  EKParticipantType = 0
	EKParticipantTypePerson   EKParticipantType = 1
	EKParticipantTypeRoom     EKParticipantType = 2
	EKParticipantTypeResource EKParticipantType = 3
	EKParticipantTypeGroup    EKParticipantType = 4
)

func (EKParticipantType) String

func (e EKParticipantType) String() string

type EKRecurrenceDayOfWeek

type EKRecurrenceDayOfWeek struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekrecurrencedayofweek

func EKRecurrenceDayOfWeekDayOfWeek

func EKRecurrenceDayOfWeekDayOfWeek(dayOfTheWeek EKWeekday) *EKRecurrenceDayOfWeek

@method dayOfWeek: @abstract Creates an autoreleased object with a day of the week and week number of zero.

func EKRecurrenceDayOfWeekDayOfWeekWeekNumber

func EKRecurrenceDayOfWeekDayOfWeekWeekNumber(dayOfTheWeek EKWeekday, weekNumber int) *EKRecurrenceDayOfWeek

@method dayOfWeek:weekNumber: @abstract Creates an autoreleased object with a specific day of week and week number.

func EKRecurrenceDayOfWeekFromID

func EKRecurrenceDayOfWeekFromID(id objc.ID) *EKRecurrenceDayOfWeek

func (*EKRecurrenceDayOfWeek) DayOfTheWeek

func (o *EKRecurrenceDayOfWeek) DayOfTheWeek() EKWeekday

@property dayOfTheWeek @abstract The day of the week.

func (*EKRecurrenceDayOfWeek) InitWithDayOfTheWeekWeekNumber

func (o *EKRecurrenceDayOfWeek) InitWithDayOfTheWeekWeekNumber(dayOfTheWeek EKWeekday, weekNumber int) objc.ID

@method initWithDayOfTheWeek:weekNumber: @abstract Creates an day-of-week object with a specific day of week and week number.

func (*EKRecurrenceDayOfWeek) WeekNumber

func (o *EKRecurrenceDayOfWeek) WeekNumber() int

@property weekNumber @abstract The week number.

type EKRecurrenceEnd

type EKRecurrenceEnd struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekrecurrenceend

func EKRecurrenceEndFromID

func EKRecurrenceEndFromID(id objc.ID) *EKRecurrenceEnd

func EKRecurrenceEndRecurrenceEndWithEndDate

func EKRecurrenceEndRecurrenceEndWithEndDate(endDate *foundation.NSDate) *EKRecurrenceEnd

@method recurrenceEndWithEndDate: @abstract Creates an autoreleased recurrence end with a specific end date.

func EKRecurrenceEndRecurrenceEndWithOccurrenceCount

func EKRecurrenceEndRecurrenceEndWithOccurrenceCount(occurrenceCount uint) *EKRecurrenceEnd

@method recurrenceEndWithOccurrenceCount: @abstract Creates an autoreleased recurrence end with a maximum occurrence count.

func (*EKRecurrenceEnd) EndDate

func (o *EKRecurrenceEnd) EndDate() *foundation.NSDate

@property endDate @abstract The end date of this recurrence, or nil if it's count-based.

func (*EKRecurrenceEnd) OccurrenceCount

func (o *EKRecurrenceEnd) OccurrenceCount() uint

@property occurrenceCount @abstract The maximum occurrence count, or 0 if it's date-based.

type EKRecurrenceFrequency

type EKRecurrenceFrequency int64
const (
	EKRecurrenceFrequencyDaily   EKRecurrenceFrequency = 0
	EKRecurrenceFrequencyWeekly  EKRecurrenceFrequency = 1
	EKRecurrenceFrequencyMonthly EKRecurrenceFrequency = 2
	EKRecurrenceFrequencyYearly  EKRecurrenceFrequency = 3
)

func (EKRecurrenceFrequency) String

func (e EKRecurrenceFrequency) String() string

type EKRecurrenceRule

type EKRecurrenceRule struct {
	EKObject
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekrecurrencerule

func EKRecurrenceRuleFromID

func EKRecurrenceRuleFromID(id objc.ID) *EKRecurrenceRule

func (*EKRecurrenceRule) CalendarIdentifier

func (o *EKRecurrenceRule) CalendarIdentifier() *foundation.NSString

@property calendarIdentifier; @discussion Calendar used by this recurrence rule.

func (*EKRecurrenceRule) DaysOfTheMonth

func (o *EKRecurrenceRule) DaysOfTheMonth() *foundation.NSArray[*foundation.NSNumber]

@property daysOfTheMonth @discussion This property is valid for rules whose EKRecurrenceFrequency is EKRecurrenceFrequencyMonthly, and that were initialized with one or more specific days of the month (not with a day of the week and week of the month). This property can be accessed as an array containing one or more NSNumbers corresponding to the days of the month the event recurs. For all other EKRecurrenceRules, this property is nil. This property corresponds to BYMONTHDAY in the iCalendar specification.

func (*EKRecurrenceRule) DaysOfTheWeek

@property daysOfTheWeek @discussion This property is valid for rules whose EKRecurrenceFrequency is EKRecurrenceFrequencyWeekly, EKRecurrenceFrequencyMonthly, or EKRecurrenceFrequencyYearly. This property can be accessed as an array containing one or more EKRecurrenceDayOfWeek objects corresponding to the days of the week the event recurs. For all other EKRecurrenceRules, this property is nil. This property corresponds to BYDAY in the iCalendar specification.

func (*EKRecurrenceRule) DaysOfTheYear

func (o *EKRecurrenceRule) DaysOfTheYear() *foundation.NSArray[*foundation.NSNumber]

@property daysOfTheYear @discussion This property is valid for rules whose EKRecurrenceFrequency is EKRecurrenceFrequencyYearly. This property can be accessed as an array containing one or more NSNumbers corresponding to the days of the year the event recurs. For all other EKRecurrenceRules, this property is nil. This property corresponds to BYYEARDAY in the iCalendar specification. It should contain values between 1 to 366 or -366 to -1.

func (*EKRecurrenceRule) FirstDayOfTheWeek

func (o *EKRecurrenceRule) FirstDayOfTheWeek() int

@property firstDayOfTheWeek @discussion Recurrence patterns can specify which day of the week should be treated as the first day. Possible values for this property are integers 0 and 1-7, which correspond to days of the week with Sunday = 1. Zero indicates that the property is not set for this recurrence. The first day of the week only affects the way the recurrence is expanded for weekly recurrence patterns with an interval greater than 1. For those types of recurrence patterns, the Calendar framework will set firstDayOfTheWeek to be 2 (Monday). In all other cases, this property will be set to zero. The iCalendar spec stipulates that the default value is Monday if this property is not set.

func (*EKRecurrenceRule) Frequency

func (o *EKRecurrenceRule) Frequency() EKRecurrenceFrequency

@property frequency @discussion This property designates the unit of time used to describe the recurrence pattern.

func (*EKRecurrenceRule) InitRecurrenceWithFrequencyIntervalDaysOfTheWeekDaysOfTheMonthMonthsOfTheYearWeeksOfTheYearDaysOfTheYearSetPositionsEnd

func (o *EKRecurrenceRule) InitRecurrenceWithFrequencyIntervalDaysOfTheWeekDaysOfTheMonthMonthsOfTheYearWeeksOfTheYearDaysOfTheYearSetPositionsEnd(type_ EKRecurrenceFrequency, interval int, days *foundation.NSArray[*EKRecurrenceDayOfWeek], monthDays *foundation.NSArray[*foundation.NSNumber], months *foundation.NSArray[*foundation.NSNumber], weeksOfTheYear *foundation.NSArray[*foundation.NSNumber], daysOfTheYear *foundation.NSArray[*foundation.NSNumber], setPositions *foundation.NSArray[*foundation.NSNumber], end *EKRecurrenceEnd) *EKRecurrenceRule

@method initRecurrenceWithFrequency:interval:daysOfTheWeek:daysOfTheMonth:monthsOfTheYear:weeksOfTheYear:daysOfTheYear:setPositions:end: @abstract The designated initializer. @discussion This can be used to build any kind of recurrence rule. But be aware that certain combinations make no sense and will be ignored. For example, if you pass daysOfTheWeek for a daily recurrence, they will be ignored. @param type The type of recurrence @param interval The interval. Passing zero will raise an exception. @param daysOfTheWeek An array of EKRecurrenceDayOfWeek objects. Valid for all recurrence types except daily. Ignored otherwise. Corresponds to the BYDAY value in the iCalendar specification. @param daysOfTheMonth An array of NSNumbers (+/- 1 to 31). Negative numbers infer counting from the end of the month. For example, -1 means the last day of the month. Valid only for monthly recurrences. Ignored otherwise. Corresponds to the BYMONTHDAY value in the iCalendar specification. @param monthsOfTheYear An array of NSNumbers (1 to 12). Valid only for yearly recurrences. Ignored otherwise. Corresponds to the BYMONTH value in the iCalendar specification. @param weeksOfTheYear An array of NSNumbers (+/1 1 to 53). Negative numbers infer counting from the end of the year. For example, -1 means the last week of the year. Valid only for yearly recurrences. Ignored otherwise. Corresponds to the BYWEEKNO value in the iCalendar specification. @param daysOfTheYear An array of NSNumbers (+/1 1 to 366). Negative numbers infer counting from the end of the year. For example, -1 means the last day of the year. Valid only for yearly recurrences. Ignored otherwise. Corresponds to the BYYEARDAY value in the iCalendar specification. @param setPositions An array of NSNumbers (+/1 1 to 366). Used at the end of recurrence computation to filter the list to the positions specified. Negative numbers indicate starting at the end, i.e. -1 indicates taking the last result of the set. Valid when daysOfTheWeek, daysOfTheMonth, monthsOfTheYear, weeksOfTheYear, or daysOfTheYear is passed. Ignored otherwise. Corresponds to the BYSETPOS value in the iCalendar specification. @param end The recurrence end, or nil.

func (*EKRecurrenceRule) InitRecurrenceWithFrequencyIntervalEnd

func (o *EKRecurrenceRule) InitRecurrenceWithFrequencyIntervalEnd(type_ EKRecurrenceFrequency, interval int, end *EKRecurrenceEnd) *EKRecurrenceRule

@method initRecurrenceWithFrequency:interval:end: @abstract Simple initializer to create a recurrence. @discussion This is used to create a simple recurrence with a specific type, interval and end. If interval is 0, an exception is raised. The end parameter can be nil.

func (*EKRecurrenceRule) Interval

func (o *EKRecurrenceRule) Interval() int

@property interval @discussion The interval of a EKRecurrenceRule is an integer value which specifies how often the recurrence rule repeats over the unit of time described by the EKRecurrenceFrequency. For example, if the EKRecurrenceFrequency is EKRecurrenceWeekly, then an interval of 1 means the pattern is repeated every week. A value of 2 indicates it is repeated every other week, 3 means every third week, and so on. The value must be a positive integer; 0 is not a valid value, and nil will be returned if the client attempts to initialize a rule with a negative or zero interval.

func (*EKRecurrenceRule) MonthsOfTheYear

func (o *EKRecurrenceRule) MonthsOfTheYear() *foundation.NSArray[*foundation.NSNumber]

@property monthsOfTheYear @discussion This property is valid for rules whose EKRecurrenceFrequency is EKRecurrenceFrequencyYearly. This property can be accessed as an array containing one or more NSNumbers corresponding to the months of the year the event recurs. For all other EKRecurrenceRules, this property is nil. This property corresponds to BYMONTH in the iCalendar specification.

func (*EKRecurrenceRule) RecurrenceEnd

func (o *EKRecurrenceRule) RecurrenceEnd() *EKRecurrenceEnd

@property recurrenceEnd @discussion This property defines when the the repeating event is scheduled to end. The end date can be specified by a number of occurrences, or with an end date.

func (*EKRecurrenceRule) SetPositions

func (o *EKRecurrenceRule) SetPositions() *foundation.NSArray[*foundation.NSNumber]

@property setPositions @discussion This property is valid for rules which have a valid daysOfTheWeek, daysOfTheMonth, weeksOfTheYear, or monthsOfTheYear property. It allows you to specify a set of ordinal numbers to help choose which objects out of the set of selected events should be included. For example, setting the daysOfTheWeek to Monday-Friday and including a value of -1 in the array would indicate the last weekday in the recurrence range (month, year, etc). This value corresponds to the iCalendar BYSETPOS property.

func (*EKRecurrenceRule) SetRecurrenceEnd

func (o *EKRecurrenceRule) SetRecurrenceEnd(recurrenceEnd *EKRecurrenceEnd)

func (*EKRecurrenceRule) WeeksOfTheYear

func (o *EKRecurrenceRule) WeeksOfTheYear() *foundation.NSArray[*foundation.NSNumber]

@property weeksOfTheYear @discussion This property is valid for rules whose EKRecurrenceFrequency is EKRecurrenceFrequencyYearly. This property can be accessed as an array containing one or more NSNumbers corresponding to the weeks of the year the event recurs. For all other EKRecurrenceRules, this property is nil. This property corresponds to BYWEEK in the iCalendar specification. It should contain integers from 1 to 53 or -1 to -53.

type EKReminder

type EKReminder struct {
	EKCalendarItem
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekreminder

func EKReminderFromID

func EKReminderFromID(id objc.ID) *EKReminder

func EKReminderReminderWithEventStore

func EKReminderReminderWithEventStore(eventStore *EKEventStore) *EKReminder

@method reminderWithEventStore: @abstract Creates a new reminder in the given event store.

func (*EKReminder) CompletionDate

func (o *EKReminder) CompletionDate() *foundation.NSDate

@property completionDate @abstract The date on which this reminder was completed.

func (*EKReminder) DueDateComponents

func (o *EKReminder) DueDateComponents() *foundation.NSDateComponents

@property dueDateComponents @abstract The date by which this reminder should be completed. @discussion The use of date components allows the due date and its time zone to be represented in a single property. A nil time zone represents a floating date. Setting a date component without a hour, minute and second component will set allDay to YES. If you set this property, the calendar must be set to NSCalendarIdentifierGregorian. An exception is raised otherwise. On iOS, if you set the due date for a reminder, you must also set a start date, otherwise you will receive an error (EKErrorNoStartDate) when attempting to save this reminder. This is not a requirement on OS X.

func (*EKReminder) IsCompleted

func (o *EKReminder) IsCompleted() bool

@property completed @abstract Whether or not the reminder is completed. @discussion Setting it to YES will set the completed date to the current date. Setting it to NO will set the completed date to nil.

func (*EKReminder) Priority

func (o *EKReminder) Priority() uint

@property priority @abstract The priority of the reminder. @discussion Priorities run from 1 (highest) to 9 (lowest). A priority of 0 means no priority. Saving a reminder with any other priority will fail. Per RFC 5545, priorities of 1-4 are considered "high," a priority of 5 is "medium," and priorities of 6-9 are "low."

func (*EKReminder) SetCompleted

func (o *EKReminder) SetCompleted(completed bool)

func (*EKReminder) SetCompletionDate

func (o *EKReminder) SetCompletionDate(completionDate *foundation.NSDate)

func (*EKReminder) SetDueDateComponents

func (o *EKReminder) SetDueDateComponents(dueDateComponents *foundation.NSDateComponents)

func (*EKReminder) SetPriority

func (o *EKReminder) SetPriority(priority uint)

func (*EKReminder) SetStartDateComponents

func (o *EKReminder) SetStartDateComponents(startDateComponents *foundation.NSDateComponents)

func (*EKReminder) StartDateComponents

func (o *EKReminder) StartDateComponents() *foundation.NSDateComponents

@property startDateComponents @abstract The start date of the task, as date components. @discussion The use of date components allows the start date and its time zone to be represented in a single property. A nil time zone represents a floating date. Setting a date component without a hour, minute and second component will set allDay to YES. If you set this property, the calendar must be set to NSCalendarIdentifierGregorian. An exception is raised otherwise.

type EKReminderPriority

type EKReminderPriority uint64
const (
	EKReminderPriorityNone   EKReminderPriority = 0
	EKReminderPriorityHigh   EKReminderPriority = 1
	EKReminderPriorityMedium EKReminderPriority = 5
	EKReminderPriorityLow    EKReminderPriority = 9
)

func (EKReminderPriority) String

func (e EKReminderPriority) String() string

type EKSource

type EKSource struct {
	EKObject
}

Apple documentation: https://developer.apple.com/documentation/eventkit/eksource

func EKSourceFromID

func EKSourceFromID(id objc.ID) *EKSource

func (*EKSource) CalendarsForEntityType

func (o *EKSource) CalendarsForEntityType(entityType EKEntityType) *foundation.NSSet[*EKCalendar]

@method calendarsForEntityType @abstract Returns the calendars that belong to this source that support a given entity type (reminders, events)

func (*EKSource) IsDelegate

func (o *EKSource) IsDelegate() bool

@property isDelegate @abstract Returns YES if this EKSource represents an account delegated by another user.

func (*EKSource) SourceIdentifier

func (o *EKSource) SourceIdentifier() *foundation.NSString

func (*EKSource) SourceType

func (o *EKSource) SourceType() EKSourceType

func (*EKSource) Title

func (o *EKSource) Title() *foundation.NSString

type EKSourceType

type EKSourceType int64
const (
	EKSourceTypeLocal      EKSourceType = 0
	EKSourceTypeExchange   EKSourceType = 1
	EKSourceTypeCalDAV     EKSourceType = 2
	EKSourceTypeMobileMe   EKSourceType = 3
	EKSourceTypeSubscribed EKSourceType = 4
	EKSourceTypeBirthdays  EKSourceType = 5
)

func (EKSourceType) String

func (e EKSourceType) String() string

type EKSpan

type EKSpan int64
const (
	EKSpanThisEvent    EKSpan = 0
	EKSpanFutureEvents EKSpan = 1
)

func (EKSpan) String

func (e EKSpan) String() string

type EKStructuredLocation

type EKStructuredLocation struct {
	EKObject
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekstructuredlocation

func EKStructuredLocationFromID

func EKStructuredLocationFromID(id objc.ID) *EKStructuredLocation

func EKStructuredLocationLocationWithMapItem

func EKStructuredLocationLocationWithMapItem(mapItem *mapkit.MKMapItem) *EKStructuredLocation

func EKStructuredLocationLocationWithTitle

func EKStructuredLocationLocationWithTitle(title *foundation.NSString) *EKStructuredLocation

func (*EKStructuredLocation) GeoLocation

func (o *EKStructuredLocation) GeoLocation() unsafe.Pointer

func (*EKStructuredLocation) Radius

func (o *EKStructuredLocation) Radius() float64

func (*EKStructuredLocation) SetGeoLocation

func (o *EKStructuredLocation) SetGeoLocation(geoLocation unsafe.Pointer)

func (*EKStructuredLocation) SetRadius

func (o *EKStructuredLocation) SetRadius(radius float64)

func (*EKStructuredLocation) SetTitle

func (o *EKStructuredLocation) SetTitle(title *foundation.NSString)

func (*EKStructuredLocation) Title

type EKVirtualConferenceDescriptor

type EKVirtualConferenceDescriptor struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekvirtualconferencedescriptor

func EKVirtualConferenceDescriptorFromID

func EKVirtualConferenceDescriptorFromID(id objc.ID) *EKVirtualConferenceDescriptor

func (*EKVirtualConferenceDescriptor) ConferenceDetails

func (o *EKVirtualConferenceDescriptor) ConferenceDetails() *foundation.NSString

func (*EKVirtualConferenceDescriptor) InitWithTitleURLDescriptorsConferenceDetails

func (o *EKVirtualConferenceDescriptor) InitWithTitleURLDescriptorsConferenceDetails(title *foundation.NSString, uRLDescriptors *foundation.NSArray[*EKVirtualConferenceURLDescriptor], conferenceDetails *foundation.NSString) *EKVirtualConferenceDescriptor

@method initWithTitle:URLDescriptors:conferenceDetails: @abstract Initializes an instance of EKVirtualConferenceDescriptor. @param title A user-readable title describing this virtual conference. This string may be displayed in the UI. This string is optional and may be left nil. @param URLDescriptors An array of EKVirtualConferenceURLDescriptors, representing the various ways to join your virtual conference. Do not pass an empty array. Your array should be ordered such that the most preferred method of joining the virtual conference comes first in the array, with subsequent methods of joining appearing in descending priority. @param conferenceDetails A user-readable string containing any other information you wish to communicate to the user about this virtual conference. This string will be displayed in the UI. This argument is optional and may be left nil.

func (*EKVirtualConferenceDescriptor) Title

func (*EKVirtualConferenceDescriptor) URLDescriptors

type EKVirtualConferenceProvider

type EKVirtualConferenceProvider struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekvirtualconferenceprovider

func EKVirtualConferenceProviderFromID

func EKVirtualConferenceProviderFromID(id objc.ID) *EKVirtualConferenceProvider

func (*EKVirtualConferenceProvider) FetchAvailableRoomTypesWithCompletionHandler

func (o *EKVirtualConferenceProvider) FetchAvailableRoomTypesWithCompletionHandler(completionHandler func(*foundation.NSArray[*EKVirtualConferenceRoomTypeDescriptor], unsafe.Pointer))

func (*EKVirtualConferenceProvider) FetchVirtualConferenceForIdentifierCompletionHandler

func (o *EKVirtualConferenceProvider) FetchVirtualConferenceForIdentifierCompletionHandler(identifier *foundation.NSString, completionHandler func(*EKVirtualConferenceDescriptor, unsafe.Pointer))

@method fetchVirtualConferenceForIdentifier:completionHandler: @abstract Called to fetch the specific virtual conference details to add to an event. @discussion Your extension must override this method in order to add virtual conferences to calendar events. When your extension has finished retrieving the requested virtual conference details, create an EKVirtualConferenceDescriptor object containing the virtual conference details and call the completion handler with the EKVirtualConferenceDescriptor object as the first argument. @param identifier Represents the room type that the user chose. This is the same identifier that your extension chose for this EKVirtualConferenceRoomTypeDescriptor in an earlier call to fetchAvailableRoomTypesWithCompletionHandler:. @param completionHandler A block to call when your extension has finished retrieving the virtual conference details. If your extension is unable to retrieve virtual conference details at this time (for example, because network access is not available), call this block with nil for the first argument and an appropriate NSError object for the second argument. Do not call this block with nil for both arguments. Similarly, do not call this block with both a non-nil EKVirtualConferenceDescriptor and a non-nil NSError. This block must be called when your extension has finished its work.

type EKVirtualConferenceRoomTypeDescriptor

type EKVirtualConferenceRoomTypeDescriptor struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekvirtualconferenceroomtypedescriptor

func EKVirtualConferenceRoomTypeDescriptorFromID

func EKVirtualConferenceRoomTypeDescriptorFromID(id objc.ID) *EKVirtualConferenceRoomTypeDescriptor

func (*EKVirtualConferenceRoomTypeDescriptor) Identifier

func (*EKVirtualConferenceRoomTypeDescriptor) InitWithTitleIdentifier

@method initWithTitle:identifier: @abstract Initializes an instance of EKVirtualConferenceRoomTypeDescriptor. @param title A user-readable title describing this room type. This string will be displayed in UI. @param identifier An EKVirtualConferenceRoomTypeIdentifier that your extension can use to distinguish this room type from the other room types that your extension provides. This is chosen by your extension and is passed back to your extension if the user chooses to create a virtual conference of the associated room type.

func (*EKVirtualConferenceRoomTypeDescriptor) Title

type EKVirtualConferenceURLDescriptor

type EKVirtualConferenceURLDescriptor struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/eventkit/ekvirtualconferenceurldescriptor

func EKVirtualConferenceURLDescriptorFromID

func EKVirtualConferenceURLDescriptorFromID(id objc.ID) *EKVirtualConferenceURLDescriptor

func (*EKVirtualConferenceURLDescriptor) InitWithTitleURL

@method initWithTitle:URL: @abstract Initializes an instance of EKVirtualConferenceURLDescriptor. @param title A user-readable title describing this URL. This string may be displayed in the UI. This string is optional and may be left nil. If your virtual conference only has one way to join it, then you can probably leave this nil. However, if your virtual conference has multiple ways to join it, you should have a title for each URL so that users can better understand what each URL represents. @param URL A URL that, when opened, will join the virtual conference.

func (*EKVirtualConferenceURLDescriptor) Title

func (*EKVirtualConferenceURLDescriptor) URL

type EKWeekday

type EKWeekday int64
const (
	EKWeekdaySunday    EKWeekday = 1
	EKWeekdayMonday    EKWeekday = 2
	EKWeekdayTuesday   EKWeekday = 3
	EKWeekdayWednesday EKWeekday = 4
	EKWeekdayThursday  EKWeekday = 5
	EKWeekdayFriday    EKWeekday = 6
	EKWeekdaySaturday  EKWeekday = 7
	EKSunday           EKWeekday = 1
	EKMonday           EKWeekday = 2
	EKTuesday          EKWeekday = 3
	EKWednesday        EKWeekday = 4
	EKThursday         EKWeekday = 5
	EKFriday           EKWeekday = 6
	EKSaturday         EKWeekday = 7
)

func (EKWeekday) String

func (e EKWeekday) String() string

type EvCmd

type EvCmd int64
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) String() string

type Filesec_property_t

type Filesec_property_t int64
const (
	FILESEC_OWNER         Filesec_property_t = 1
	FILESEC_GROUP         Filesec_property_t = 2
	FILESEC_UUID          Filesec_property_t = 3
	FILESEC_MODE          Filesec_property_t = 4
	FILESEC_ACL           Filesec_property_t = 5
	FILESEC_GRPUUID       Filesec_property_t = 6
	FILESEC_ACL_RAW       Filesec_property_t = 100
	FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101
)

func (Filesec_property_t) String

func (e Filesec_property_t) String() string

type Idtype_t

type Idtype_t int64
const (
	P_ALL  Idtype_t = 0
	P_PID  Idtype_t = 1
	P_PGID Idtype_t = 2
)

func (Idtype_t) String

func (e Idtype_t) String() string

type Ipc_info_object_type_t

type Ipc_info_object_type_t int64
const (
	IPC_OTYPE_NONE                 Ipc_info_object_type_t = 0
	IPC_OTYPE_THREAD_CONTROL       Ipc_info_object_type_t = 1
	IPC_OTYPE_TASK_CONTROL         Ipc_info_object_type_t = 2
	IPC_OTYPE_HOST                 Ipc_info_object_type_t = 3
	IPC_OTYPE_HOST_PRIV            Ipc_info_object_type_t = 4
	IPC_OTYPE_PROCESSOR            Ipc_info_object_type_t = 5
	IPC_OTYPE_PROCESSOR_SET        Ipc_info_object_type_t = 6
	IPC_OTYPE_PROCESSOR_SET_NAME   Ipc_info_object_type_t = 7
	IPC_OTYPE_TIMER                Ipc_info_object_type_t = 8
	IPC_OTYPE_PORT_SUBST_ONCE      Ipc_info_object_type_t = 9
	IPC_OTYPE_MIG                  Ipc_info_object_type_t = 10
	IPC_OTYPE_MEMORY_OBJECT        Ipc_info_object_type_t = 11
	IPC_OTYPE_XMM_PAGER            Ipc_info_object_type_t = 12
	IPC_OTYPE_XMM_KERNEL           Ipc_info_object_type_t = 13
	IPC_OTYPE_XMM_REPLY            Ipc_info_object_type_t = 14
	IPC_OTYPE_UND_REPLY            Ipc_info_object_type_t = 15
	IPC_OTYPE_HOST_NOTIFY          Ipc_info_object_type_t = 16
	IPC_OTYPE_HOST_SECURITY        Ipc_info_object_type_t = 17
	IPC_OTYPE_LEDGER               Ipc_info_object_type_t = 18
	IPC_OTYPE_MAIN_DEVICE          Ipc_info_object_type_t = 19
	IPC_OTYPE_TASK_NAME            Ipc_info_object_type_t = 20
	IPC_OTYPE_SUBSYSTEM            Ipc_info_object_type_t = 21
	IPC_OTYPE_IO_DONE_QUEUE        Ipc_info_object_type_t = 22
	IPC_OTYPE_SEMAPHORE            Ipc_info_object_type_t = 23
	IPC_OTYPE_LOCK_SET             Ipc_info_object_type_t = 24
	IPC_OTYPE_CLOCK                Ipc_info_object_type_t = 25
	IPC_OTYPE_CLOCK_CTRL           Ipc_info_object_type_t = 26
	IPC_OTYPE_IOKIT_IDENT          Ipc_info_object_type_t = 27
	IPC_OTYPE_NAMED_ENTRY          Ipc_info_object_type_t = 28
	IPC_OTYPE_IOKIT_CONNECT        Ipc_info_object_type_t = 29
	IPC_OTYPE_IOKIT_OBJECT         Ipc_info_object_type_t = 30
	IPC_OTYPE_UPL                  Ipc_info_object_type_t = 31
	IPC_OTYPE_MEM_OBJ_CONTROL      Ipc_info_object_type_t = 32
	IPC_OTYPE_AU_SESSIONPORT       Ipc_info_object_type_t = 33
	IPC_OTYPE_FILEPORT             Ipc_info_object_type_t = 34
	IPC_OTYPE_LABELH               Ipc_info_object_type_t = 35
	IPC_OTYPE_TASK_RESUME          Ipc_info_object_type_t = 36
	IPC_OTYPE_VOUCHER              Ipc_info_object_type_t = 37
	IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38
	IPC_OTYPE_WORK_INTERVAL        Ipc_info_object_type_t = 39
	IPC_OTYPE_UX_HANDLER           Ipc_info_object_type_t = 40
	IPC_OTYPE_UEXT_OBJECT          Ipc_info_object_type_t = 41
	IPC_OTYPE_ARCADE_REG           Ipc_info_object_type_t = 42
	IPC_OTYPE_EVENTLINK            Ipc_info_object_type_t = 43
	IPC_OTYPE_TASK_INSPECT         Ipc_info_object_type_t = 44
	IPC_OTYPE_TASK_READ            Ipc_info_object_type_t = 45
	IPC_OTYPE_THREAD_INSPECT       Ipc_info_object_type_t = 46
	IPC_OTYPE_THREAD_READ          Ipc_info_object_type_t = 47
	IPC_OTYPE_SUID_CRED            Ipc_info_object_type_t = 48
	IPC_OTYPE_HYPERVISOR           Ipc_info_object_type_t = 49
	IPC_OTYPE_TASK_ID_TOKEN        Ipc_info_object_type_t = 50
	IPC_OTYPE_TASK_FATAL           Ipc_info_object_type_t = 51
	IPC_OTYPE_KCDATA               Ipc_info_object_type_t = 52
	IPC_OTYPE_EXCLAVES_RESOURCE    Ipc_info_object_type_t = 53
	IPC_OTYPE_THREAD_RESUME        Ipc_info_object_type_t = 54
	IPC_OTYPE_UNKNOWN              Ipc_info_object_type_t = 4294967295
)

func (Ipc_info_object_type_t) String

func (e Ipc_info_object_type_t) String() string

type Launch_data_type_t

type Launch_data_type_t int64
const (
	LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1
	LAUNCH_DATA_ARRAY      Launch_data_type_t = 2
	LAUNCH_DATA_FD         Launch_data_type_t = 3
	LAUNCH_DATA_INTEGER    Launch_data_type_t = 4
	LAUNCH_DATA_REAL       Launch_data_type_t = 5
	LAUNCH_DATA_BOOL       Launch_data_type_t = 6
	LAUNCH_DATA_STRING     Launch_data_type_t = 7
	LAUNCH_DATA_OPAQUE     Launch_data_type_t = 8
	LAUNCH_DATA_ERRNO      Launch_data_type_t = 9
	LAUNCH_DATA_MACHPORT   Launch_data_type_t = 10
)

func (Launch_data_type_t) String

func (e Launch_data_type_t) String() string

type MDLabelDomain

type MDLabelDomain int64

@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

type MDQueryOptionFlags

type MDQueryOptionFlags int64
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int64

@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.

const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

type Mach_vm_range_flags_t

type Mach_vm_range_flags_t int64
const (
	MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)

func (Mach_vm_range_flags_t) String

func (e Mach_vm_range_flags_t) String() string

type Mach_vm_range_flavor_t

type Mach_vm_range_flavor_t int64
const (
	MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0
	MACH_VM_RANGE_FLAVOR_V1      Mach_vm_range_flavor_t = 1
)

func (Mach_vm_range_flavor_t) String

func (e Mach_vm_range_flavor_t) String() string

type Mach_vm_range_tag_t

type Mach_vm_range_tag_t int64
const (
	MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0
	MACH_VM_RANGE_DATA    Mach_vm_range_tag_t = 1
	MACH_VM_RANGE_FIXED   Mach_vm_range_tag_t = 2
)

func (Mach_vm_range_tag_t) String

func (e Mach_vm_range_tag_t) String() string

type Mpo_flags_t

type Mpo_flags_t int64
const (
	MPO_PORT                            Mpo_flags_t = 0
	MPO_SERVICE_PORT                    Mpo_flags_t = 1024
	MPO_CONNECTION_PORT                 Mpo_flags_t = 2048
	MPO_REPLY_PORT                      Mpo_flags_t = 4096
	MPO_WEAK_REPLY_PORT                 Mpo_flags_t = 16384
	MPO_NOTIFICATION_PORT               Mpo_flags_t = 17408
	MPO_EXCEPTION_PORT                  Mpo_flags_t = 32768
	MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536
)

func (Mpo_flags_t) String

func (e Mpo_flags_t) String() string

type NXMouseButton

type NXMouseButton int64
const (
	NX_OneButton   NXMouseButton = 0
	NX_LeftButton  NXMouseButton = 1
	NX_RightButton NXMouseButton = 2
)

func (NXMouseButton) String

func (e NXMouseButton) String() string

type Os_clockid_t

type Os_clockid_t int64
const (
	OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)

func (Os_clockid_t) String

func (e Os_clockid_t) String() string

type Ptrauth_key

type Ptrauth_key int64
const (
	Ptrauth_key_none                     Ptrauth_key = -1
	Ptrauth_key_asia                     Ptrauth_key = 0
	Ptrauth_key_asib                     Ptrauth_key = 1
	Ptrauth_key_asda                     Ptrauth_key = 2
	Ptrauth_key_asdb                     Ptrauth_key = 3
	Ptrauth_key_process_independent_code Ptrauth_key = 0
	Ptrauth_key_process_dependent_code   Ptrauth_key = 1
	Ptrauth_key_process_independent_data Ptrauth_key = 2
	Ptrauth_key_process_dependent_data   Ptrauth_key = 3
	Ptrauth_key_return_address           Ptrauth_key = 1
	Ptrauth_key_frame_pointer            Ptrauth_key = 3
	Ptrauth_key_function_pointer         Ptrauth_key = 0
	Ptrauth_key_block_function           Ptrauth_key = 0
	Ptrauth_key_cxx_vtable_pointer       Ptrauth_key = 2
	Ptrauth_key_method_list_pointer      Ptrauth_key = 2
	Ptrauth_key_objc_isa_pointer         Ptrauth_key = 2
	Ptrauth_key_objc_super_pointer       Ptrauth_key = 2
	Ptrauth_key_objc_sel_pointer         Ptrauth_key = 3
	Ptrauth_key_objc_class_ro_pointer    Ptrauth_key = 2
	Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2
	Ptrauth_key_init_fini_pointer        Ptrauth_key = 0
)

func (Ptrauth_key) String

func (e Ptrauth_key) String() string

type Qos_class_t

type Qos_class_t uint32
const (
	QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33
	QOS_CLASS_USER_INITIATED   Qos_class_t = 25
	QOS_CLASS_DEFAULT          Qos_class_t = 21
	QOS_CLASS_UTILITY          Qos_class_t = 17
	QOS_CLASS_BACKGROUND       Qos_class_t = 9
	QOS_CLASS_UNSPECIFIED      Qos_class_t = 0
)

func (Qos_class_t) String

func (e Qos_class_t) String() string

type Virtual_memory_guard_exception_code_t

type Virtual_memory_guard_exception_code_t int64
const (
	KGUARD_EXC_DEALLOC_GAP                   Virtual_memory_guard_exception_code_t = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        Virtual_memory_guard_exception_code_t = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         Virtual_memory_guard_exception_code_t = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    Virtual_memory_guard_exception_code_t = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    Virtual_memory_guard_exception_code_t = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         Virtual_memory_guard_exception_code_t = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         Virtual_memory_guard_exception_code_t = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  Virtual_memory_guard_exception_code_t = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    Virtual_memory_guard_exception_code_t = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              Virtual_memory_guard_exception_code_t = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        Virtual_memory_guard_exception_code_t = 99
	KGUARD_EXC_SEC_COPY_DENIED               Virtual_memory_guard_exception_code_t = 100
	KGUARD_EXC_SEC_SHARING_DENIED            Virtual_memory_guard_exception_code_t = 101
	KGUARD_EXC_MTE_SYNC_FAULT                Virtual_memory_guard_exception_code_t = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          Virtual_memory_guard_exception_code_t = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          Virtual_memory_guard_exception_code_t = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204
)

func (Virtual_memory_guard_exception_code_t) String

type Xpc_listener_create_flags_t

type Xpc_listener_create_flags_t int64
const (
	XPC_LISTENER_CREATE_NONE             Xpc_listener_create_flags_t = 0
	XPC_LISTENER_CREATE_INACTIVE         Xpc_listener_create_flags_t = 1
	XPC_LISTENER_CREATE_FORCE_MACH       Xpc_listener_create_flags_t = 2
	XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4
)

func (Xpc_listener_create_flags_t) String

type Xpc_session_create_flags_t

type Xpc_session_create_flags_t int64
const (
	XPC_SESSION_CREATE_NONE            Xpc_session_create_flags_t = 0
	XPC_SESSION_CREATE_INACTIVE        Xpc_session_create_flags_t = 1
	XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2
)

func (Xpc_session_create_flags_t) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL