eventkit

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 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
}

A class that represents an alarm.

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

func EKAlarmAlarmWithAbsoluteDate

func EKAlarmAlarmWithAbsoluteDate(date *foundation.NSDate) *EKAlarm

Creates and returns an alarm with an absolute date.

func EKAlarmAlarmWithRelativeOffset

func EKAlarmAlarmWithRelativeOffset(offset float64) *EKAlarm

Creates and returns an alarm with a relative offset.

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

A value indicating whether an alarm is triggered by entering or exiting a region.

const (
	// The alarm has no proximity trigger.
	EKAlarmProximityNone EKAlarmProximity = 0
	// The alarm is set to fire when entering a region.
	EKAlarmProximityEnter EKAlarmProximity = 1
	// The alarm is set to fire when leaving a region.
	EKAlarmProximityLeave EKAlarmProximity = 2
)

func (EKAlarmProximity) String

func (e EKAlarmProximity) String() string

type EKAlarmType

type EKAlarmType int64

A value that specifies what type of action occurs when the alarm triggers.

const (
	// The alarm displays a message.
	EKAlarmTypeDisplay EKAlarmType = 0
	// The alarm plays a sound.
	EKAlarmTypeAudio EKAlarmType = 1
	// The alarm opens a URL.
	EKAlarmTypeProcedure EKAlarmType = 2
	// The alarm sends an email.
	EKAlarmTypeEmail EKAlarmType = 3
)

func (EKAlarmType) String

func (e EKAlarmType) String() string

type EKAuthorizationStatus

type EKAuthorizationStatus int64

The current authorization status for a specific entity type.

const (
	// The person hasn’t chosen whether the app may access the service.
	EKAuthorizationStatusNotDetermined EKAuthorizationStatus = 0
	// The app isn’t authorized to access the service.
	EKAuthorizationStatusRestricted EKAuthorizationStatus = 1
	// The person explicitly denied access to the service for the app.
	EKAuthorizationStatusDenied EKAuthorizationStatus = 2
	// The app has both read and write access to the requested entity type.
	EKAuthorizationStatusFullAccess EKAuthorizationStatus = 3
	// The app has write-only access to the requested entity type.
	EKAuthorizationStatusWriteOnly EKAuthorizationStatus = 4
	// The app can access the service.
	EKAuthorizationStatusAuthorized EKAuthorizationStatus = 3
)

func EKEventStoreAuthorizationStatusForEntityType

func EKEventStoreAuthorizationStatusForEntityType(entityType EKEntityType) EKAuthorizationStatus

Determines the authorization status for the given entity type.

func (EKAuthorizationStatus) String

func (e EKAuthorizationStatus) String() string

type EKCalendar

type EKCalendar struct {
	EKObject
}

A class that represents a calendar in EventKit.

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

func EKCalendarCalendarForEntityTypeEventStore

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

Creates a new calendar that can contain the given entity type.

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

A bitmask indicating the event availability settings that the calendar can support.

const (
	// The calendar does not support event availability settings.
	EKCalendarEventAvailabilityNone EKCalendarEventAvailabilityMask = 0
	// The calendar supports the busy event availability setting.
	EKCalendarEventAvailabilityBusy EKCalendarEventAvailabilityMask = 1
	// The calendar supports the free event availability setting.
	EKCalendarEventAvailabilityFree EKCalendarEventAvailabilityMask = 2
	// The calendar supports the tentative event availability setting.
	EKCalendarEventAvailabilityTentative EKCalendarEventAvailabilityMask = 4
	// The calendar supports the unavailable event availability setting.
	EKCalendarEventAvailabilityUnavailable EKCalendarEventAvailabilityMask = 8
)

func (EKCalendarEventAvailabilityMask) String

type EKCalendarItem

type EKCalendarItem struct {
	EKObject
}

An abstract superclass for calendar events and reminders.

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)

Adds an alarm to the receiver.

func (*EKCalendarItem) AddRecurrenceRule

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

Adds a recurrence rule to the recurrence rule array.

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)

Removes an alarm from the calendar item.

func (*EKCalendarItem) RemoveRecurrenceRule

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

Removes a recurrence rule from the recurrence rule array.

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

Possible calendar types.

const (
	// A local calendar.
	EKCalendarTypeLocal EKCalendarType = 0
	// A CalDAV or iCloud calendar.
	EKCalendarTypeCalDAV EKCalendarType = 1
	// An Exchange calendar.
	EKCalendarTypeExchange EKCalendarType = 2
	// A locally subscribed calendar.
	EKCalendarTypeSubscription EKCalendarType = 3
	// A birthday calendar.
	EKCalendarTypeBirthday EKCalendarType = 4
)

func (EKCalendarType) String

func (e EKCalendarType) String() string

type EKEntityMask

type EKEntityMask uint64

A bitmask of EKEntityType for specifying multiple entities at once.

const (
	// Represents an event.
	EKEntityMaskEvent EKEntityMask = 1
	// Represents a reminder.
	EKEntityMaskReminder EKEntityMask = 2
)

func (EKEntityMask) String

func (e EKEntityMask) String() string

type EKEntityType

type EKEntityType uint64

The type of entities allowed for a source.

const (
	// Represents an event.
	EKEntityTypeEvent EKEntityType = 0
	// Represents a reminder.
	EKEntityTypeReminder EKEntityType = 1
)

func (EKEntityType) String

func (e EKEntityType) String() string

type EKErrorCode

type EKErrorCode int64

Error codes for EventKit errors.

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
}

A class that represents an event in a calendar.

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

func EKEventEventWithEventStore

func EKEventEventWithEventStore(eventStore *EKEventStore) *EKEvent

Creates and returns a new event belonging to a specified event store.

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

Compares the start date of the receiving event with the start date of another event.

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

The event’s availability setting for scheduling purposes.

const (
	// Availability settings are not supported by the event’s calendar.
	EKEventAvailabilityNotSupported EKEventAvailability = -1
	// The event has a busy availability setting.
	EKEventAvailabilityBusy EKEventAvailability = 0
	// The event has a free availability setting.
	EKEventAvailabilityFree EKEventAvailability = 1
	// The event has a tentative availability setting.
	EKEventAvailabilityTentative EKEventAvailability = 2
	// The event has an unavailable availability setting.
	EKEventAvailabilityUnavailable EKEventAvailability = 3
)

func (EKEventAvailability) String

func (e EKEventAvailability) String() string

type EKEventStatus

type EKEventStatus int64

The event’s status.

const (
	// The event has no status.
	EKEventStatusNone EKEventStatus = 0
	// The event is confirmed.
	EKEventStatusConfirmed EKEventStatus = 1
	// The event is tentative.
	EKEventStatusTentative EKEventStatus = 2
	// The event is canceled.
	EKEventStatusCanceled EKEventStatus = 3
)

func (EKEventStatus) String

func (e EKEventStatus) String() string

type EKEventStore

type EKEventStore struct {
	foundation.NSObject
}

An object that accesses a person’s calendar events and reminders and supports the scheduling of new events.

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

Locates a reminder or the first occurrence of an event with the specified identifier.

func (*EKEventStore) CalendarItemsWithExternalIdentifier

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

Locates all reminders or the first occurrences of all events with the specified external identifier.

func (*EKEventStore) CalendarWithIdentifier

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

Locates a calendar with the specified identifier.

func (*EKEventStore) CalendarsForEntityType

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

Identifies the calendars that support a given entity type, such as reminders or events.

func (*EKEventStore) CancelFetchRequest

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

Cancels the request to fetch reminders.

func (*EKEventStore) Commit

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

Commits all unsaved changes to the event store.

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

Identifies the default calendar for adding reminders to, as specified by user settings.

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))

Finds all events that match a given predicate and calls a given callback for each event found.

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

Locates the first occurrence of an event with a given identifier.

func (*EKEventStore) EventsMatchingPredicate

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

Finds all events that match a given predicate.

func (*EKEventStore) FetchRemindersMatchingPredicateCompletion

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

Fetches reminders that match a given predicate.

func (*EKEventStore) Init

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

Creates a new event store.

func (*EKEventStore) InitWithAccessToEntityTypes

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

Initializes access to the event store with support for the given entity type. Deprecated: since macOS 10.9.

func (*EKEventStore) InitWithSources

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

Creates an event store that contains data for the specified sources.

func (*EKEventStore) PredicateForCompletedRemindersWithCompletionDateStartingEndingCalendars

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

Creates a predicate to identify all completed reminders that occur within a given date range.

func (*EKEventStore) PredicateForEventsWithStartDateEndDateCalendars

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

Creates a predicate to identify events that occur within a given date range.

func (*EKEventStore) PredicateForIncompleteRemindersWithDueDateStartingEndingCalendars

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

Creates a predicate to identify all incomplete reminders that occur within a given date range.

func (*EKEventStore) PredicateForRemindersInCalendars

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

Creates a predicate to identify all reminders in a collection of calendars.

func (*EKEventStore) RefreshSourcesIfNecessary

func (o *EKEventStore) RefreshSourcesIfNecessary()

Pulls new data from remote sources, if necessary.

func (*EKEventStore) RemoveCalendarCommitError

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

Removes a calendar from the event store by either committing or batching the changes.

func (*EKEventStore) RemoveEventSpanCommitError

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

Removes an event or recurring events from the event store by either committing or batching the changes.

func (*EKEventStore) RemoveEventSpanError

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

Removes an event from the event store.

func (*EKEventStore) RemoveReminderCommitError

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

Removes a reminder from the event store by either committing or batching the changes.

func (*EKEventStore) RequestAccessToEntityTypeCompletion

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

Prompts the person using your app to grant or deny access to event or reminder data. Deprecated: Use -requestFullAccessToEventsWithCompletion:, -requestWriteOnlyAccessToEventsWithCompletion:, or -requestFullAccessToRemindersWithCompletion:

func (*EKEventStore) RequestFullAccessToEventsWithCompletion

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

Prompts people to grant or deny read and write access to event data.

func (*EKEventStore) RequestFullAccessToRemindersWithCompletion

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

Prompts people to grant or deny read and write access to reminders.

func (*EKEventStore) RequestWriteOnlyAccessToEventsWithCompletion

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

Prompts the person using your app to grant or deny write access to event data.

func (*EKEventStore) Reset

func (o *EKEventStore) Reset()

Reverts the event store to its saved state.

func (*EKEventStore) SaveCalendarCommitError

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

Saves a calendar to the event store by either committing or batching the changes.

func (*EKEventStore) SaveEventSpanCommitError

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

Saves an event or recurring events to the event store by either committing or batching the changes.

func (*EKEventStore) SaveEventSpanError

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

Saves changes to an event permanently.

func (*EKEventStore) SaveReminderCommitError

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

Saves changes to a reminder by either committing or batching the changes.

func (*EKEventStore) SourceWithIdentifier

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

Locates an event source with the 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
}

An abstract superclass for all EventKit classes that have persistent instances.

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

Merges changes to this object with the latest saved values.

func (*EKObject) Reset

func (o *EKObject) Reset()

Returns this object to its saved state.

func (*EKObject) Rollback

func (o *EKObject) Rollback()

Rolls back the property values of this object to its original state when it was first fetched.

type EKParticipant

type EKParticipant struct {
	EKObject
}

A class that represents person, group, or room invited to a calendar event.

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

Returns the address book record that represents the participant. 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

The participant’s role for an event.

const (
	// The participant’s role is unknown.
	EKParticipantRoleUnknown EKParticipantRole = 0
	// The participant’s attendance is required.
	EKParticipantRoleRequired EKParticipantRole = 1
	// The participant’s attendance is optional.
	EKParticipantRoleOptional EKParticipantRole = 2
	// The participant is the chair of the event.
	EKParticipantRoleChair EKParticipantRole = 3
	// The participant does not have an active role in the event.
	EKParticipantRoleNonParticipant EKParticipantRole = 4
)

func (EKParticipantRole) String

func (e EKParticipantRole) String() string

type EKParticipantScheduleStatus

type EKParticipantScheduleStatus int64

The participant’s scheduled status.

const (
	// The invitation hasn’t been sent yet.
	EKParticipantScheduleStatusNone EKParticipantScheduleStatus = 0
	// The invitation is in the process of being sent.
	EKParticipantScheduleStatusPending EKParticipantScheduleStatus = 1
	// The invitation has been sent, but it’s unclear if it was successfully delivered.
	EKParticipantScheduleStatusSent EKParticipantScheduleStatus = 2
	// The invitation has been sent and successfully delivered.
	EKParticipantScheduleStatusDelivered EKParticipantScheduleStatus = 3
	// The invitation wasn’t delivered because the source doesn’t recognize the recipient.
	EKParticipantScheduleStatusRecipientNotRecognized EKParticipantScheduleStatus = 4
	// The invitation wasn’t delivered because of insufficient privileges.
	EKParticipantScheduleStatusNoPrivileges EKParticipantScheduleStatus = 5
	// The invitation wasn’t delivered due to a temporary failure.
	EKParticipantScheduleStatusDeliveryFailed EKParticipantScheduleStatus = 6
	// The invitation wasn’t delivered because the system is unsure of how to deliver it.
	EKParticipantScheduleStatusCannotDeliver EKParticipantScheduleStatus = 7
	// The invitation wasn’t delivered because scheduling with the participant isn’t allowed.
	EKParticipantScheduleStatusRecipientNotAllowed EKParticipantScheduleStatus = 8
)

func (EKParticipantScheduleStatus) String

type EKParticipantStatus

type EKParticipantStatus int64

The participant’s attendance status for an event.

const (
	// The participant’s attendance status is unknown.
	EKParticipantStatusUnknown EKParticipantStatus = 0
	// The participant has yet to respond to the event.
	EKParticipantStatusPending EKParticipantStatus = 1
	// The participant has accepted the event.
	EKParticipantStatusAccepted EKParticipantStatus = 2
	// The participant has declined the event.
	EKParticipantStatusDeclined EKParticipantStatus = 3
	// The participant’s attendance status is tentative.
	EKParticipantStatusTentative EKParticipantStatus = 4
	// The participant has delegated attendance to another participant.
	EKParticipantStatusDelegated EKParticipantStatus = 5
	// The participant’s event has completed.
	EKParticipantStatusCompleted EKParticipantStatus = 6
	// The participant’s event is currently in process.
	EKParticipantStatusInProcess EKParticipantStatus = 7
)

func (EKParticipantStatus) String

func (e EKParticipantStatus) String() string

type EKParticipantType

type EKParticipantType int64

The type of participant.

const (
	// The participant’s type is unknown.
	EKParticipantTypeUnknown EKParticipantType = 0
	// The participant is a person.
	EKParticipantTypePerson EKParticipantType = 1
	// The participant is a room.
	EKParticipantTypeRoom EKParticipantType = 2
	// The participant is a resource.
	EKParticipantTypeResource EKParticipantType = 3
	// The participant is a group.
	EKParticipantTypeGroup EKParticipantType = 4
)

func (EKParticipantType) String

func (e EKParticipantType) String() string

type EKRecurrenceDayOfWeek

type EKRecurrenceDayOfWeek struct {
	foundation.NSObject
}

A class that represents the day of the week.

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

func EKRecurrenceDayOfWeekDayOfWeek

func EKRecurrenceDayOfWeekDayOfWeek(dayOfTheWeek EKWeekday) *EKRecurrenceDayOfWeek

Creates and returns a day of the week with a given day.

func EKRecurrenceDayOfWeekDayOfWeekWeekNumber

func EKRecurrenceDayOfWeekDayOfWeekWeekNumber(dayOfTheWeek EKWeekday, weekNumber int) *EKRecurrenceDayOfWeek

Creates and returns an autoreleased day of the week with a given day 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

Initializes and returns a day of the week with a given day and week number.

func (*EKRecurrenceDayOfWeek) WeekNumber

func (o *EKRecurrenceDayOfWeek) WeekNumber() int

@property weekNumber @abstract The week number.

type EKRecurrenceEnd

type EKRecurrenceEnd struct {
	foundation.NSObject
}

A class that defines the end of a recurrence rule.

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

Initializes and returns a date-based recurrence end with a given end date.

func EKRecurrenceEndRecurrenceEndWithOccurrenceCount

func EKRecurrenceEndRecurrenceEndWithOccurrenceCount(occurrenceCount uint) *EKRecurrenceEnd

Initializes and returns a count-based recurrence end with a given 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

The frequency for recurrence rules.

const (
	// Indicates a daily recurrence rule.
	EKRecurrenceFrequencyDaily EKRecurrenceFrequency = 0
	// Indicates a weekly recurrence rule.
	EKRecurrenceFrequencyWeekly EKRecurrenceFrequency = 1
	// Indicates a monthly recurrence rule.
	EKRecurrenceFrequencyMonthly EKRecurrenceFrequency = 2
	// Indicates a yearly recurrence rule.
	EKRecurrenceFrequencyYearly EKRecurrenceFrequency = 3
)

func (EKRecurrenceFrequency) String

func (e EKRecurrenceFrequency) String() string

type EKRecurrenceRule

type EKRecurrenceRule struct {
	EKObject
}

A class that describes the pattern for a recurring event.

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

Initializes and returns a recurrence rule with a given frequency and additional scheduling information.

func (*EKRecurrenceRule) InitRecurrenceWithFrequencyIntervalEnd

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

Initializes and returns a simple recurrence rule with a given frequency, interval, and end.

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
}

A class that represents a reminder in a calendar.

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

func EKReminderFromID

func EKReminderFromID(id objc.ID) *EKReminder

func EKReminderReminderWithEventStore

func EKReminderReminderWithEventStore(eventStore *EKEventStore) *EKReminder

Creates and returns 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

The priority of the reminder.

const (
	// The reminder has no priority set.
	EKReminderPriorityNone EKReminderPriority = 0
	// The reminder is high priority.
	EKReminderPriorityHigh EKReminderPriority = 1
	// The reminder is medium priority.
	EKReminderPriorityMedium EKReminderPriority = 5
	// The reminder is low priority.
	EKReminderPriorityLow EKReminderPriority = 9
)

func (EKReminderPriority) String

func (e EKReminderPriority) String() string

type EKSource

type EKSource struct {
	EKObject
}

An abstract superclass that represents the account a calendar belongs to.

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]

Returns the calendars that belong to this source object that support a particular entity type.

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

The type of source object.

const (
	// Represents a local source.
	EKSourceTypeLocal EKSourceType = 0
	// Represents an Exchange source.
	EKSourceTypeExchange EKSourceType = 1
	// Represents a CalDAV or iCloud source.
	EKSourceTypeCalDAV EKSourceType = 2
	// Represents a MobileMe source.
	EKSourceTypeMobileMe EKSourceType = 3
	// Represents a subscribed source.
	EKSourceTypeSubscribed EKSourceType = 4
	// Represents a birthday source.
	EKSourceTypeBirthdays EKSourceType = 5
)

func (EKSourceType) String

func (e EKSourceType) String() string

type EKSpan

type EKSpan int64

An object that indicates whether modifications should apply to a single event or all future events of a recurring event.

const (
	// Modifications to this event instance should affect only this instance.
	EKSpanThisEvent EKSpan = 0
	// Modifications to this event instance should also affect future instances of this event.
	EKSpanFutureEvents EKSpan = 1
)

func (EKSpan) String

func (e EKSpan) String() string

type EKStructuredLocation

type EKStructuredLocation struct {
	EKObject
}

A class that specifies a geofence to activate the alarm of a calendar item.

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

Creates a new structured location with the specified map item.

func EKStructuredLocationLocationWithTitle

func EKStructuredLocationLocationWithTitle(title *foundation.NSString) *EKStructuredLocation

Creates a new structured location with the specified title.

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
}

Details about a virtual conference that uses a custom room type.

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

Creates an object that describes a virtual conference, including a name and URL to join the conference.

func (*EKVirtualConferenceDescriptor) Title

func (*EKVirtualConferenceDescriptor) URLDescriptors

type EKVirtualConferenceProvider

type EKVirtualConferenceProvider struct {
	foundation.NSObject
}

An object that associates virtual conferencing details with an event object in a user’s calendar.

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))

Provides an array of room types where events take place.

func (*EKVirtualConferenceProvider) FetchVirtualConferenceForIdentifierCompletionHandler

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

Provides details about a virtual conference that takes place in a room the user selects.

type EKVirtualConferenceRoomTypeDescriptor

type EKVirtualConferenceRoomTypeDescriptor struct {
	foundation.NSObject
}

Details about a room where virtual conferences take place.

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

func EKVirtualConferenceRoomTypeDescriptorFromID

func EKVirtualConferenceRoomTypeDescriptorFromID(id objc.ID) *EKVirtualConferenceRoomTypeDescriptor

func (*EKVirtualConferenceRoomTypeDescriptor) Identifier

func (*EKVirtualConferenceRoomTypeDescriptor) InitWithTitleIdentifier

Creates an object that describes a location where a virtual conference takes place.

func (*EKVirtualConferenceRoomTypeDescriptor) Title

type EKVirtualConferenceURLDescriptor

type EKVirtualConferenceURLDescriptor struct {
	foundation.NSObject
}

Details about how users join a virtual conference, including a title and URL.

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

func EKVirtualConferenceURLDescriptorFromID

func EKVirtualConferenceURLDescriptorFromID(id objc.ID) *EKVirtualConferenceURLDescriptor

func (*EKVirtualConferenceURLDescriptor) InitWithTitleURL

Creates a URL descriptor with the given title and URL.

func (*EKVirtualConferenceURLDescriptor) Title

func (*EKVirtualConferenceURLDescriptor) URL

type EKWeekday

type EKWeekday int64

The day of the week.

const (
	// The value for Sunday.
	EKWeekdaySunday EKWeekday = 1
	// The value for Monday.
	EKWeekdayMonday EKWeekday = 2
	// The value for Tuesday.
	EKWeekdayTuesday EKWeekday = 3
	// The value for Wednesday.
	EKWeekdayWednesday EKWeekday = 4
	// The value for Thursday.
	EKWeekdayThursday EKWeekday = 5
	// The value for Friday.
	EKWeekdayFriday EKWeekday = 6
	// The value for Saturday.
	EKWeekdaySaturday EKWeekday = 7
	// The value for Sunday.
	EKSunday EKWeekday = 1
	// The value for Monday.
	EKMonday EKWeekday = 2
	// The value for Tuesday.
	EKTuesday EKWeekday = 3
	// The value for Wednesday.
	EKWednesday EKWeekday = 4
	// The value for Thursday.
	EKThursday EKWeekday = 5
	// The value for Friday.
	EKFriday EKWeekday = 6
	// The value for Saturday.
	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