eventkit

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package eventkit provides a fluent Go API over the macOS EventKit framework.

Construction

New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.

Lifecycle

A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.

Errors

Failing calls return errors carrying the Objective-C error domain and code. Match them against this package's Err… sentinel values with errors.Is, or inspect domain, code, and Apple's prose via errors.As with *errkit.Error.

Types

Each base type below lists the concrete types you construct and pass where the base is accepted:

Index

Constants

This section is empty.

Variables

View Source
var ErrAlarmGreaterThanRecurrence = errkit.New("EKErrorDomain", 8)

ErrAlarmGreaterThanRecurrence matches the EventKit error EKErrorAlarmGreaterThanRecurrence.

View Source
var ErrAlarmProximityNotSupported = errkit.New("EKErrorDomain", 21)

ErrAlarmProximityNotSupported matches the EventKit error EKErrorAlarmProximityNotSupported.

View Source
var ErrCalendarDoesNotAllowEvents = errkit.New("EKErrorDomain", 22)

ErrCalendarDoesNotAllowEvents matches the EventKit error EKErrorCalendarDoesNotAllowEvents.

View Source
var ErrCalendarDoesNotAllowReminders = errkit.New("EKErrorDomain", 23)

ErrCalendarDoesNotAllowReminders matches the EventKit error EKErrorCalendarDoesNotAllowReminders.

View Source
var ErrCalendarHasNoSource = errkit.New("EKErrorDomain", 14)

ErrCalendarHasNoSource matches the EventKit error EKErrorCalendarHasNoSource.

View Source
var ErrCalendarIsImmutable = errkit.New("EKErrorDomain", 16)

ErrCalendarIsImmutable matches the EventKit error EKErrorCalendarIsImmutable.

View Source
var ErrCalendarReadOnly = errkit.New("EKErrorDomain", 6)

ErrCalendarReadOnly matches the EventKit error EKErrorCalendarReadOnly.

View Source
var ErrCalendarSourceCannotBeModified = errkit.New("EKErrorDomain", 15)

ErrCalendarSourceCannotBeModified matches the EventKit error EKErrorCalendarSourceCannotBeModified.

View Source
var ErrDatesInverted = errkit.New("EKErrorDomain", 4)

ErrDatesInverted matches the EventKit error EKErrorDatesInverted.

View Source
var ErrDurationGreaterThanRecurrence = errkit.New("EKErrorDomain", 7)

ErrDurationGreaterThanRecurrence matches the EventKit error EKErrorDurationGreaterThanRecurrence.

View Source
var ErrEventNotMutable = errkit.New("EKErrorDomain", 0)

ErrEventNotMutable matches the EventKit error EKErrorEventNotMutable.

View Source
var ErrEventStoreNotAuthorized = errkit.New("EKErrorDomain", 29)

ErrEventStoreNotAuthorized matches the EventKit error EKErrorEventStoreNotAuthorized.

View Source
var ErrInternalFailure = errkit.New("EKErrorDomain", 5)

ErrInternalFailure matches the EventKit error EKErrorInternalFailure.

View Source
var ErrInvalidEntityType = errkit.New("EKErrorDomain", 27)

ErrInvalidEntityType matches the EventKit error EKErrorInvalidEntityType.

View Source
var ErrInvalidInviteReplyCalendar = errkit.New("EKErrorDomain", 31)

ErrInvalidInviteReplyCalendar matches the EventKit error EKErrorInvalidInviteReplyCalendar.

View Source
var ErrInvalidSpan = errkit.New("EKErrorDomain", 13)

ErrInvalidSpan matches the EventKit error EKErrorInvalidSpan.

View Source
var ErrInvitesCannotBeMoved = errkit.New("EKErrorDomain", 12)

ErrInvitesCannotBeMoved matches the EventKit error EKErrorInvitesCannotBeMoved.

View Source
var ErrLast = errkit.New("EKErrorDomain", 37)

ErrLast matches the EventKit error EKErrorLast.

View Source
var ErrNoCalendar = errkit.New("EKErrorDomain", 1)

ErrNoCalendar matches the EventKit error EKErrorNoCalendar.

View Source
var ErrNoEndDate = errkit.New("EKErrorDomain", 3)

ErrNoEndDate matches the EventKit error EKErrorNoEndDate.

View Source
var ErrNoStartDate = errkit.New("EKErrorDomain", 2)

ErrNoStartDate matches the EventKit error EKErrorNoStartDate.

View Source
var ErrNotificationCollectionMismatch = errkit.New("EKErrorDomain", 34)

ErrNotificationCollectionMismatch matches the EventKit error EKErrorNotificationCollectionMismatch.

View Source
var ErrNotificationSavedWithoutCollection = errkit.New("EKErrorDomain", 35)

ErrNotificationSavedWithoutCollection matches the EventKit error EKErrorNotificationSavedWithoutCollection.

View Source
var ErrNotificationsCollectionFlagNotSet = errkit.New("EKErrorDomain", 32)

ErrNotificationsCollectionFlagNotSet matches the EventKit error EKErrorNotificationsCollectionFlagNotSet.

View Source
var ErrOSNotSupported = errkit.New("EKErrorDomain", 30)

ErrOSNotSupported matches the EventKit error EKErrorOSNotSupported.

View Source
var ErrObjectBelongsToDifferentStore = errkit.New("EKErrorDomain", 11)

ErrObjectBelongsToDifferentStore matches the EventKit error EKErrorObjectBelongsToDifferentStore.

View Source
var ErrPriorityIsInvalid = errkit.New("EKErrorDomain", 26)

ErrPriorityIsInvalid matches the EventKit error EKErrorPriorityIsInvalid.

View Source
var ErrProcedureAlarmsNotMutable = errkit.New("EKErrorDomain", 28)

ErrProcedureAlarmsNotMutable matches the EventKit error EKErrorProcedureAlarmsNotMutable.

View Source
var ErrRecurringReminderRequiresDueDate = errkit.New("EKErrorDomain", 18)

ErrRecurringReminderRequiresDueDate matches the EventKit error EKErrorRecurringReminderRequiresDueDate.

View Source
var ErrReminderAlarmContainsEmailOrUrl = errkit.New("EKErrorDomain", 36)

ErrReminderAlarmContainsEmailOrUrl matches the EventKit error EKErrorReminderAlarmContainsEmailOrUrl.

View Source
var ErrReminderLocationsNotSupported = errkit.New("EKErrorDomain", 20)

ErrReminderLocationsNotSupported matches the EventKit error EKErrorReminderLocationsNotSupported.

View Source
var ErrSourceDoesNotAllowCalendarAddDelete = errkit.New("EKErrorDomain", 17)

ErrSourceDoesNotAllowCalendarAddDelete matches the EventKit error EKErrorSourceDoesNotAllowCalendarAddDelete.

View Source
var ErrSourceDoesNotAllowEvents = errkit.New("EKErrorDomain", 25)

ErrSourceDoesNotAllowEvents matches the EventKit error EKErrorSourceDoesNotAllowEvents.

View Source
var ErrSourceDoesNotAllowReminders = errkit.New("EKErrorDomain", 24)

ErrSourceDoesNotAllowReminders matches the EventKit error EKErrorSourceDoesNotAllowReminders.

View Source
var ErrSourceMismatch = errkit.New("EKErrorDomain", 33)

ErrSourceMismatch matches the EventKit error EKErrorSourceMismatch.

View Source
var ErrStartDateCollidesWithOtherOccurrence = errkit.New("EKErrorDomain", 10)

ErrStartDateCollidesWithOtherOccurrence matches the EventKit error EKErrorStartDateCollidesWithOtherOccurrence.

View Source
var ErrStartDateTooFarInFuture = errkit.New("EKErrorDomain", 9)

ErrStartDateTooFarInFuture matches the EventKit error EKErrorStartDateTooFarInFuture.

View Source
var ErrStructuredLocationsNotSupported = errkit.New("EKErrorDomain", 19)

ErrStructuredLocationsNotSupported matches the EventKit error EKErrorStructuredLocationsNotSupported.

Functions

func DATETIME_COMPONENTS_DO_NOT_USE

func DATETIME_COMPONENTS_DO_NOT_USE()

DATETIME_COMPONENTS_DO_NOT_USE calls the EventKit framework function DATETIME_COMPONENTS_DO_NOT_USE.

func DATE_COMPONENTS_DO_NOT_USE

func DATE_COMPONENTS_DO_NOT_USE()

DATE_COMPONENTS_DO_NOT_USE calls the EventKit framework function DATE_COMPONENTS_DO_NOT_USE.

func EKErrorDomain

func EKErrorDomain() obj.Object

EKErrorDomain returns the string constant EKErrorDomain, for use as a dictionary key or argument.

func EKEventStoreChangedNotification

func EKEventStoreChangedNotification() obj.Object

EKEventStoreChangedNotification returns the string constant EKEventStoreChangedNotification, for use as a dictionary key or argument.

func EK_LOSE_FRACTIONAL_SECONDS_DO_NOT_USE

func EK_LOSE_FRACTIONAL_SECONDS_DO_NOT_USE()

EK_LOSE_FRACTIONAL_SECONDS_DO_NOT_USE calls the EventKit framework function EK_LOSE_FRACTIONAL_SECONDS_DO_NOT_USE.

Types

type Alarm added in v0.17.0

type Alarm struct {
	Object
}

Alarm is an idiomatic wrapper over the Objective-C class EKAlarm.

It embeds Object, promoting that type's methods.

A class that represents an alarm.

func AlarmFromID added in v0.17.0

func AlarmFromID(id objc.ID) *Alarm

AlarmFromID adopts an existing Objective-C object as a Alarm (nil for 0), retaining it and registering a release finalizer.

func AlarmWithAbsoluteDate added in v0.17.0

func AlarmWithAbsoluteDate(date time.Time) *Alarm

AlarmWithAbsoluteDate creates and returns an alarm with an absolute date.

func AlarmWithRelativeOffset added in v0.17.0

func AlarmWithRelativeOffset(offset float64) *Alarm

AlarmWithRelativeOffset creates and returns an alarm with a relative offset.

func NewAlarm added in v0.17.0

func NewAlarm() *Alarm

NewAlarm creates a new Alarm.

func (*Alarm) AbsoluteDate added in v0.17.0

func (a *Alarm) AbsoluteDate() time.Time

AbsoluteDate represents an alarm that fires at a specific date. Set this property to a date to establish an absolute alarm trigger. Setting this clears any relative interval trigger.

func (*Alarm) EmailAddress added in v0.17.0

func (a *Alarm) EmailAddress() string

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

func (*Alarm) Proximity added in v0.17.0

func (a *Alarm) Proximity() AlarmProximity

Proximity defines whether this alarm triggers via entering/exiting a geofence as defined by structuredLocation.

func (*Alarm) RelativeOffset added in v0.17.0

func (a *Alarm) RelativeOffset() float64

RelativeOffset specifies a relative offset from an event start date to fire an alarm. 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 (*Alarm) SoundName added in v0.17.0

func (a *Alarm) SoundName() string

SoundName returns the name of the sound to play when the alarm triggers. 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 (*Alarm) StructuredLocation added in v0.17.0

func (a *Alarm) StructuredLocation() *StructuredLocation

StructuredLocation returns 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 (*Alarm) Type added in v0.17.0

func (a *Alarm) Type() AlarmType

Type returns the type of alarm, based on the action taken when triggering the alarm. 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 (*Alarm) URL added in v0.17.0

func (a *Alarm) URL() string

URL returns the URL to open when the alarm triggers. 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.

func (*Alarm) WithAbsoluteDate added in v0.17.0

func (a *Alarm) WithAbsoluteDate(absoluteDate time.Time) *Alarm

WithAbsoluteDate sets the absolute date for the alarm.

func (*Alarm) WithEmailAddress added in v0.17.0

func (a *Alarm) WithEmailAddress(emailAddress string) *Alarm

WithEmailAddress sets the recipient of an email to send when the alarm triggers.

func (*Alarm) WithProximity added in v0.17.0

func (a *Alarm) WithProximity(proximity AlarmProximity) *Alarm

WithProximity sets a value indicating how a location-based alarm is triggered.

func (*Alarm) WithRelativeOffset added in v0.17.0

func (a *Alarm) WithRelativeOffset(relativeOffset float64) *Alarm

WithRelativeOffset sets the offset from the start of an event, at which the alarm fires.

func (*Alarm) WithSoundName added in v0.17.0

func (a *Alarm) WithSoundName(soundName string) *Alarm

WithSoundName sets the name of the sound to play when the alarm triggers.

func (*Alarm) WithStructuredLocation added in v0.17.0

func (a *Alarm) WithStructuredLocation(structuredLocation *StructuredLocation) *Alarm

WithStructuredLocation sets the location to trigger an alarm.

func (*Alarm) WithURL added in v0.17.0

func (a *Alarm) WithURL(url string) *Alarm

WithURL sets the URL to open when the alarm triggers.

type AlarmProximity added in v0.17.0

type AlarmProximity int64

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

const (
	// The alarm has no proximity trigger.
	AlarmProximityNone AlarmProximity = 0
	// The alarm is set to fire when entering a region.
	AlarmProximityEnter AlarmProximity = 1
	// The alarm is set to fire when leaving a region.
	AlarmProximityLeave AlarmProximity = 2
)

func (AlarmProximity) String added in v0.17.0

func (e AlarmProximity) String() string

String returns the AlarmProximity constant's name, or its numeric form when the value is not a known constant.

type AlarmType added in v0.17.0

type AlarmType int64

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

const (
	// The alarm displays a message.
	AlarmTypeDisplay AlarmType = 0
	// The alarm plays a sound.
	AlarmTypeAudio AlarmType = 1
	// The alarm opens a URL.
	AlarmTypeProcedure AlarmType = 2
	// The alarm sends an email.
	AlarmTypeEmail AlarmType = 3
)

func (AlarmType) String added in v0.17.0

func (e AlarmType) String() string

String returns the AlarmType constant's name, or its numeric form when the value is not a known constant.

type AuthorizationStatus added in v0.17.0

type AuthorizationStatus int64

The current authorization status for a specific entity type.

const (
	// The person hasn’t chosen whether the app may access the service.
	AuthorizationStatusNotDetermined AuthorizationStatus = 0
	// The app isn’t authorized to access the service.
	AuthorizationStatusRestricted AuthorizationStatus = 1
	// The person explicitly denied access to the service for the app.
	AuthorizationStatusDenied AuthorizationStatus = 2
	// The app has both read and write access to the requested entity type.
	AuthorizationStatusFullAccess AuthorizationStatus = 3
	// The app has write-only access to the requested entity type.
	AuthorizationStatusWriteOnly AuthorizationStatus = 4
	// The app can access the service.
	AuthorizationStatusAuthorized AuthorizationStatus = 3
)

func AuthorizationStatusForEntityType added in v0.17.0

func AuthorizationStatusForEntityType(entityType EntityType) AuthorizationStatus

AuthorizationStatusForEntityType determines the authorization status for the given entity type.

func (AuthorizationStatus) String added in v0.17.0

func (e AuthorizationStatus) String() string

String returns the AuthorizationStatus constant's name, or its numeric form when the value is not a known constant.

type Calendar added in v0.17.0

type Calendar struct {
	Object
}

Calendar is an idiomatic wrapper over the Objective-C class EKCalendar.

It embeds Object, promoting that type's methods.

A class that represents a calendar in EventKit.

func CalendarForEntityTypeEventStore added in v0.17.0

func CalendarForEntityTypeEventStore(entityType EntityType, eventStore *EventStore) *Calendar

CalendarForEntityTypeEventStore creates a new calendar that can contain the given entity type.

func CalendarFromID added in v0.17.0

func CalendarFromID(id objc.ID) *Calendar

CalendarFromID adopts an existing Objective-C object as a Calendar (nil for 0), retaining it and registering a release finalizer.

func NewCalendar added in v0.17.0

func NewCalendar() *Calendar

NewCalendar creates a new Calendar.

func (*Calendar) AllowedEntityTypes added in v0.17.0

func (c *Calendar) AllowedEntityTypes() EntityMask

AllowedEntityTypes returns the allowed entity types.

func (*Calendar) AllowsContentModifications added in v0.17.0

func (c *Calendar) AllowsContentModifications() bool

AllowsContentModifications reports whether you can this add, remove, or modify items in this calendar.

func (*Calendar) CGColor added in v0.17.0

func (c *Calendar) CGColor() coregraphics.CGColorRef

CGColor returns the calendar color as a CGColorRef. This will be nil for new calendars until you set it.

func (*Calendar) CalendarIdentifier added in v0.17.0

func (c *Calendar) CalendarIdentifier() string

CalendarIdentifier returns 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 (*Calendar) Color added in v0.17.0

func (c *Calendar) Color() obj.Object

Color returns the calendar color as a NSColor. This will be nil for new calendars until you set it.

func (*Calendar) IsImmutable added in v0.17.0

func (c *Calendar) IsImmutable() bool

IsImmutable reports whether if this is set to true, 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 (*Calendar) IsSubscribed added in v0.17.0

func (c *Calendar) IsSubscribed() bool

IsSubscribed reports whether this calendar is a subscribed calendar.

func (*Calendar) Source added in v0.17.0

func (c *Calendar) Source() *Source

Source returns 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. This will be nil for new calendars until you set it.

func (*Calendar) SupportedEventAvailabilities added in v0.17.0

func (c *Calendar) SupportedEventAvailabilities() CalendarEventAvailabilityMask

SupportedEventAvailabilities returns a bitfield of supported event availabilities, or EKCalendarEventAvailabilityNone if this calendar does not support setting availability on an event.

func (*Calendar) Title added in v0.17.0

func (c *Calendar) Title() string

Title returns the title of the calendar.

func (*Calendar) Type added in v0.17.0

func (c *Calendar) Type() CalendarType

Type returns 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. CalDAV subscribed calendars have type EKCalendarTypeCalDAV with isSubscribed = YES.

func (*Calendar) WithCGColor added in v0.17.0

func (c *Calendar) WithCGColor(cgColor coregraphics.CGColorRef) *Calendar

WithCGColor sets the calendar’s color.

func (*Calendar) WithColor added in v0.17.0

func (c *Calendar) WithColor(color obj.Object) *Calendar

WithColor sets the calendar’s color.

func (*Calendar) WithSource added in v0.17.0

func (c *Calendar) WithSource(source *Source) *Calendar

WithSource sets the source object representing the account to which this calendar belongs.

func (*Calendar) WithTitle added in v0.17.0

func (c *Calendar) WithTitle(title string) *Calendar

WithTitle sets the calendar’s title.

type CalendarEventAvailabilityMask added in v0.17.0

type CalendarEventAvailabilityMask uint64

A bitmask indicating the event availability settings that the calendar can support. Bitmask — values may be combined with |.

const (
	// The calendar does not support event availability settings.
	CalendarEventAvailabilityNone CalendarEventAvailabilityMask = 0
	// The calendar supports the busy event availability setting.
	CalendarEventAvailabilityBusy CalendarEventAvailabilityMask = 1
	// The calendar supports the free event availability setting.
	CalendarEventAvailabilityFree CalendarEventAvailabilityMask = 2
	// The calendar supports the tentative event availability setting.
	CalendarEventAvailabilityTentative CalendarEventAvailabilityMask = 4
	// The calendar supports the unavailable event availability setting.
	CalendarEventAvailabilityUnavailable CalendarEventAvailabilityMask = 8
)

func (CalendarEventAvailabilityMask) String added in v0.17.0

String returns the CalendarEventAvailabilityMask constant's name, or its numeric form when the value is not a known constant.

type CalendarItem added in v0.17.0

type CalendarItem struct {
	Object
}

CalendarItem is an idiomatic wrapper over the Objective-C class EKCalendarItem.

CalendarItem is an abstract base — you do not construct it directly. Construct one of Event, Reminder and pass it where a CalendarItem is accepted.

An abstract superclass for calendar events and reminders.

func CalendarItemFromID added in v0.17.0

func CalendarItemFromID(id objc.ID) *CalendarItem

CalendarItemFromID adopts an existing Objective-C object as a CalendarItem (nil for 0), retaining it and registering a release finalizer.

func (*CalendarItem) AddAlarm added in v0.17.0

func (ci *CalendarItem) AddAlarm(alarm *Alarm)

AddAlarm adds an alarm to the receiver.

func (*CalendarItem) AddRecurrenceRule added in v0.17.0

func (ci *CalendarItem) AddRecurrenceRule(rule *RecurrenceRule)

AddRecurrenceRule adds a recurrence rule to the recurrence rule array.

func (*CalendarItem) Alarms added in v0.17.0

func (ci *CalendarItem) Alarms() []*Alarm

Alarms returns the alarms.

Alarms returns the collection as a Go slice.

func (*CalendarItem) Attendees added in v0.17.0

func (ci *CalendarItem) Attendees() []*Participant

Attendees returns the attendees.

Attendees returns the collection as a Go slice.

func (*CalendarItem) Calendar added in v0.17.0

func (ci *CalendarItem) Calendar() *Calendar

Calendar returns the calendar that this calendar item belongs to. This will be nil for new calendar items until you set it.

func (*CalendarItem) CalendarItemExternalIdentifier added in v0.17.0

func (ci *CalendarItem) CalendarItemExternalIdentifier() string

CalendarItemExternalIdentifier returns a server-provided identifier for this calendar item 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 (*CalendarItem) CalendarItemIdentifier added in v0.17.0

func (ci *CalendarItem) CalendarItemIdentifier() string

CalendarItemIdentifier returns a unique identifier for a calendar item. 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 (*CalendarItem) CreationDate added in v0.17.0

func (ci *CalendarItem) CreationDate() time.Time

CreationDate returns the creation date.

func (*CalendarItem) HasAlarms added in v0.17.0

func (ci *CalendarItem) HasAlarms() bool

HasAlarms reports whether the object has alarms.

func (*CalendarItem) HasAttendees added in v0.17.0

func (ci *CalendarItem) HasAttendees() bool

HasAttendees reports whether the object has attendees.

func (*CalendarItem) HasNotes added in v0.17.0

func (ci *CalendarItem) HasNotes() bool

HasNotes reports whether the object has notes.

func (*CalendarItem) HasRecurrenceRules added in v0.17.0

func (ci *CalendarItem) HasRecurrenceRules() bool

HasRecurrenceRules reports whether the object has recurrence rules.

func (*CalendarItem) LastModifiedDate added in v0.17.0

func (ci *CalendarItem) LastModifiedDate() time.Time

LastModifiedDate returns the last modified date.

func (*CalendarItem) Location added in v0.17.0

func (ci *CalendarItem) Location() string

Location returns the location.

func (*CalendarItem) Notes added in v0.17.0

func (ci *CalendarItem) Notes() string

Notes returns the notes.

func (*CalendarItem) RecurrenceRules added in v0.17.0

func (ci *CalendarItem) RecurrenceRules() []*RecurrenceRule

RecurrenceRules returns an array of EKRecurrenceRules, or nil if none.

RecurrenceRules returns the collection as a Go slice.

func (*CalendarItem) RemoveAlarm added in v0.17.0

func (ci *CalendarItem) RemoveAlarm(alarm *Alarm)

RemoveAlarm removes an alarm from the calendar item.

func (*CalendarItem) RemoveRecurrenceRule added in v0.17.0

func (ci *CalendarItem) RemoveRecurrenceRule(rule *RecurrenceRule)

RemoveRecurrenceRule removes a recurrence rule from the recurrence rule array.

func (*CalendarItem) TimeZone added in v0.17.0

func (ci *CalendarItem) TimeZone() *foundation.TimeZone

TimeZone returns the time zone.

func (*CalendarItem) Title added in v0.17.0

func (ci *CalendarItem) Title() string

Title returns the title of this calendar item. This will be an empty string for new calendar items until you set it.

func (*CalendarItem) URL added in v0.17.0

func (ci *CalendarItem) URL() string

URL returns the URL.

func (*CalendarItem) WithAlarms added in v0.17.0

func (ci *CalendarItem) WithAlarms(items ...*Alarm) *CalendarItem

WithAlarms sets the alarms associated with the calendar item, as an array of EKAlarm objects.

func (*CalendarItem) WithCalendar added in v0.17.0

func (ci *CalendarItem) WithCalendar(calendar *Calendar) *CalendarItem

WithCalendar sets the calendar for the calendar item.

func (*CalendarItem) WithLocation added in v0.17.0

func (ci *CalendarItem) WithLocation(location string) *CalendarItem

WithLocation sets the location associated with the calendar item.

func (*CalendarItem) WithNotes added in v0.17.0

func (ci *CalendarItem) WithNotes(notes string) *CalendarItem

WithNotes sets the notes associated with the calendar item.

func (*CalendarItem) WithRecurrenceRules added in v0.17.0

func (ci *CalendarItem) WithRecurrenceRules(items ...*RecurrenceRule) *CalendarItem

WithRecurrenceRules sets the recurrence rules for the calendar item.

func (*CalendarItem) WithTimeZone added in v0.17.0

func (ci *CalendarItem) WithTimeZone(timeZone obj.Object) *CalendarItem

WithTimeZone sets the time zone for the calendar item.

func (*CalendarItem) WithTitle added in v0.17.0

func (ci *CalendarItem) WithTitle(title string) *CalendarItem

WithTitle sets the title for the calendar item.

func (*CalendarItem) WithURL added in v0.17.0

func (ci *CalendarItem) WithURL(url string) *CalendarItem

WithURL sets the URL for the calendar item.

type CalendarItemProvider added in v0.17.0

type CalendarItemProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

CalendarItemProvider is accepted wherever a EKCalendarItem (or one of its subclasses) is expected.

type CalendarType added in v0.17.0

type CalendarType int64

Possible calendar types.

const (
	// A local calendar.
	CalendarTypeLocal CalendarType = 0
	// A CalDAV or iCloud calendar.
	CalendarTypeCalDAV CalendarType = 1
	// An Exchange calendar.
	CalendarTypeExchange CalendarType = 2
	// A locally subscribed calendar.
	CalendarTypeSubscription CalendarType = 3
	// A birthday calendar.
	CalendarTypeBirthday CalendarType = 4
)

func (CalendarType) String added in v0.17.0

func (e CalendarType) String() string

String returns the CalendarType constant's name, or its numeric form when the value is not a known constant.

type Clockid added in v0.17.0

type Clockid int32
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

String returns the Clockid constant's name, or its numeric form when the value is not a known constant.

type DispatchAutoreleaseFrequency added in v0.17.0

type DispatchAutoreleaseFrequency uint64
const (
	DispatchAutoreleaseFrequencyInherit  DispatchAutoreleaseFrequency = 0
	DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1
	DispatchAutoreleaseFrequencyNever    DispatchAutoreleaseFrequency = 2
)

func (DispatchAutoreleaseFrequency) String added in v0.17.0

String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.

type DispatchBlockFlags added in v0.17.0

type DispatchBlockFlags uint64

Bitmask — values may be combined with |.

const (
	DispatchBlockFlagsBarrier         DispatchBlockFlags = 1
	DispatchBlockFlagsDetached        DispatchBlockFlags = 2
	DispatchBlockFlagsAssignCurrent   DispatchBlockFlags = 4
	DispatchBlockFlagsNoQosClass      DispatchBlockFlags = 8
	DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16
	DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32
)

func (DispatchBlockFlags) String added in v0.17.0

func (e DispatchBlockFlags) String() string

String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.

type EntityMask added in v0.17.0

type EntityMask uint64

A bitmask of EKEntityType for specifying multiple entities at once. Bitmask — values may be combined with |.

const (
	// Represents an event.
	EntityMaskEvent EntityMask = 1
	// Represents a reminder.
	EntityMaskReminder EntityMask = 2
)

func (EntityMask) String added in v0.17.0

func (e EntityMask) String() string

String returns the EntityMask constant's name, or its numeric form when the value is not a known constant.

type EntityType added in v0.17.0

type EntityType uint64

The type of entities allowed for a source.

const (
	// Represents an event.
	EntityTypeEvent EntityType = 0
	// Represents a reminder.
	EntityTypeReminder EntityType = 1
)

func (EntityType) String added in v0.17.0

func (e EntityType) String() string

String returns the EntityType constant's name, or its numeric form when the value is not a known constant.

type EntryID added in v0.17.0

type EntryID int32
const (
	EntryIDFirstEntry EntryID = 0
	EntryIDNextEntry  EntryID = -1
	EntryIDLastEntry  EntryID = -2
)

func (EntryID) String added in v0.17.0

func (e EntryID) String() string

String returns the EntryID constant's name, or its numeric form when the value is not a known constant.

type ErrorCode added in v0.17.0

type ErrorCode int64

Error codes for EventKit errors.

const (
	ErrorEventNotMutable                      ErrorCode = 0
	ErrorNoCalendar                           ErrorCode = 1
	ErrorNoStartDate                          ErrorCode = 2
	ErrorNoEndDate                            ErrorCode = 3
	ErrorDatesInverted                        ErrorCode = 4
	ErrorInternalFailure                      ErrorCode = 5
	ErrorCalendarReadOnly                     ErrorCode = 6
	ErrorDurationGreaterThanRecurrence        ErrorCode = 7
	ErrorAlarmGreaterThanRecurrence           ErrorCode = 8
	ErrorStartDateTooFarInFuture              ErrorCode = 9
	ErrorStartDateCollidesWithOtherOccurrence ErrorCode = 10
	ErrorObjectBelongsToDifferentStore        ErrorCode = 11
	ErrorInvitesCannotBeMoved                 ErrorCode = 12
	ErrorInvalidSpan                          ErrorCode = 13
	ErrorCalendarHasNoSource                  ErrorCode = 14
	ErrorCalendarSourceCannotBeModified       ErrorCode = 15
	ErrorCalendarIsImmutable                  ErrorCode = 16
	ErrorSourceDoesNotAllowCalendarAddDelete  ErrorCode = 17
	ErrorRecurringReminderRequiresDueDate     ErrorCode = 18
	ErrorStructuredLocationsNotSupported      ErrorCode = 19
	ErrorReminderLocationsNotSupported        ErrorCode = 20
	ErrorAlarmProximityNotSupported           ErrorCode = 21
	ErrorCalendarDoesNotAllowEvents           ErrorCode = 22
	ErrorCalendarDoesNotAllowReminders        ErrorCode = 23
	ErrorSourceDoesNotAllowReminders          ErrorCode = 24
	ErrorSourceDoesNotAllowEvents             ErrorCode = 25
	ErrorPriorityIsInvalid                    ErrorCode = 26
	ErrorInvalidEntityType                    ErrorCode = 27
	ErrorProcedureAlarmsNotMutable            ErrorCode = 28
	ErrorEventStoreNotAuthorized              ErrorCode = 29
	ErrorOSNotSupported                       ErrorCode = 30
	ErrorInvalidInviteReplyCalendar           ErrorCode = 31
	ErrorNotificationsCollectionFlagNotSet    ErrorCode = 32
	ErrorSourceMismatch                       ErrorCode = 33
	ErrorNotificationCollectionMismatch       ErrorCode = 34
	ErrorNotificationSavedWithoutCollection   ErrorCode = 35
	ErrorReminderAlarmContainsEmailOrUrl      ErrorCode = 36
	ErrorLast                                 ErrorCode = 37
)

func (ErrorCode) String added in v0.17.0

func (e ErrorCode) String() string

String returns the ErrorCode constant's name, or its numeric form when the value is not a known constant.

type EvCmd

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

func (EvCmd) String

func (e EvCmd) String() string

String returns the EvCmd constant's name, or its numeric form when the value is not a known constant.

type Event added in v0.17.0

type Event struct {
	CalendarItem
}

Event is an idiomatic wrapper over the Objective-C class EKEvent.

It embeds CalendarItem, promoting that type's methods.

A class that represents an event in a calendar.

func EventFromID added in v0.17.0

func EventFromID(id objc.ID) *Event

EventFromID adopts an existing Objective-C object as a Event (nil for 0), retaining it and registering a release finalizer.

func EventWithEventStore added in v0.17.0

func EventWithEventStore(eventStore *EventStore) *Event

EventWithEventStore creates and returns a new event belonging to a specified event store.

func NewEvent added in v0.17.0

func NewEvent() *Event

NewEvent creates a new Event.

func (*Event) Availability added in v0.17.0

func (e *Event) Availability() EventAvailability

Availability returns the availability setting for this event. 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 (*Event) BirthdayContactIdentifier added in v0.17.0

func (e *Event) BirthdayContactIdentifier() string

BirthdayContactIdentifier specifies the contact identifier of the person this event was created for. 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 (*Event) BirthdayPersonUniqueID added in v0.17.0

func (e *Event) BirthdayPersonUniqueID() string

BirthdayPersonUniqueID specifies the address book unique ID of the person this event was created for. 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.

func (*Event) EndDate added in v0.17.0

func (e *Event) EndDate() time.Time

EndDate returns the end date.

func (*Event) EventIdentifier added in v0.17.0

func (e *Event) EventIdentifier() string

EventIdentifier returns a unique identifier for this event. 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 (*Event) IsAllDay added in v0.17.0

func (e *Event) IsAllDay() bool

IsAllDay reports whether indicates this event is an 'all day' event.

func (*Event) IsDetached added in v0.17.0

func (e *Event) IsDetached() bool

IsDetached reports whether this event is detached from a recurring series. 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 true. If the EKEvent is unchanged from its default state, or is not a repeating event, isDetached returns false.

func (*Event) OccurrenceDate added in v0.17.0

func (e *Event) OccurrenceDate() time.Time

OccurrenceDate returns the occurrence date of an event if it is part of a recurring series. 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 (*Event) Organizer added in v0.17.0

func (e *Event) Organizer() *Participant

Organizer returns the organizer of this event, or nil.

func (*Event) StartDate added in v0.17.0

func (e *Event) StartDate() time.Time

StartDate returns the start date for the event. 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 (*Event) Status added in v0.17.0

func (e *Event) Status() EventStatus

Status returns the status of the event. 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 (*Event) StructuredLocation added in v0.17.0

func (e *Event) StructuredLocation() *StructuredLocation

StructuredLocation returns 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:…]].

func (*Event) WithAlarms added in v0.17.0

func (e *Event) WithAlarms(items ...*Alarm) *Event

WithAlarms sets the alarms associated with the calendar item, as an array of EKAlarm objects.

func (*Event) WithAllDay added in v0.17.0

func (e *Event) WithAllDay(allDay bool) *Event

WithAllDay sets a Boolean value that indicates whether the event is an all-day event.

func (*Event) WithAvailability added in v0.17.0

func (e *Event) WithAvailability(availability EventAvailability) *Event

WithAvailability sets the availability setting for the event.

func (*Event) WithCalendar added in v0.17.0

func (e *Event) WithCalendar(calendar *Calendar) *Event

WithCalendar sets the calendar for the calendar item.

func (*Event) WithEndDate added in v0.17.0

func (e *Event) WithEndDate(endDate time.Time) *Event

WithEndDate sets the end date for the event.

func (*Event) WithLocation added in v0.17.0

func (e *Event) WithLocation(location string) *Event

WithLocation sets the location associated with the calendar item.

func (*Event) WithNotes added in v0.17.0

func (e *Event) WithNotes(notes string) *Event

WithNotes sets the notes associated with the calendar item.

func (*Event) WithRecurrenceRules added in v0.17.0

func (e *Event) WithRecurrenceRules(items ...*RecurrenceRule) *Event

WithRecurrenceRules sets the recurrence rules for the calendar item.

func (*Event) WithStartDate added in v0.17.0

func (e *Event) WithStartDate(startDate time.Time) *Event

WithStartDate sets the start date of the event.

func (*Event) WithStructuredLocation added in v0.17.0

func (e *Event) WithStructuredLocation(structuredLocation *StructuredLocation) *Event

WithStructuredLocation sets the event’s location with a potential geocoordinate.

func (*Event) WithTimeZone added in v0.17.0

func (e *Event) WithTimeZone(timeZone obj.Object) *Event

WithTimeZone sets the time zone for the calendar item.

func (*Event) WithTitle added in v0.17.0

func (e *Event) WithTitle(title string) *Event

WithTitle sets the title for the calendar item.

func (*Event) WithURL added in v0.17.0

func (e *Event) WithURL(url string) *Event

WithURL sets the URL for the calendar item.

type EventAvailability added in v0.17.0

type EventAvailability int64

The event’s availability setting for scheduling purposes.

const (
	// Availability settings are not supported by the event’s calendar.
	EventAvailabilityNotSupported EventAvailability = -1
	// The event has a busy availability setting.
	EventAvailabilityBusy EventAvailability = 0
	// The event has a free availability setting.
	EventAvailabilityFree EventAvailability = 1
	// The event has a tentative availability setting.
	EventAvailabilityTentative EventAvailability = 2
	// The event has an unavailable availability setting.
	EventAvailabilityUnavailable EventAvailability = 3
)

func (EventAvailability) String added in v0.17.0

func (e EventAvailability) String() string

String returns the EventAvailability constant's name, or its numeric form when the value is not a known constant.

type EventStatus added in v0.17.0

type EventStatus int64

The event’s status.

const (
	// The event has no status.
	EventStatusNone EventStatus = 0
	// The event is confirmed.
	EventStatusConfirmed EventStatus = 1
	// The event is tentative.
	EventStatusTentative EventStatus = 2
	// The event is canceled.
	EventStatusCanceled EventStatus = 3
)

func (EventStatus) String added in v0.17.0

func (e EventStatus) String() string

String returns the EventStatus constant's name, or its numeric form when the value is not a known constant.

type EventStore added in v0.17.0

type EventStore struct {
	objref.Handle
}

EventStore is an idiomatic wrapper over the Objective-C class EKEventStore.

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

func EventStoreFromID added in v0.17.0

func EventStoreFromID(id objc.ID) *EventStore

EventStoreFromID adopts an existing Objective-C object as a EventStore (nil for 0), retaining it and registering a release finalizer.

func NewEventStore added in v0.17.0

func NewEventStore() *EventStore

NewEventStore creates a new EventStore.

func NewEventStoreWithAccessToEntityTypes added in v0.17.0

func NewEventStoreWithAccessToEntityTypes(entityTypes EntityMask) *EventStore

NewEventStoreWithAccessToEntityTypes initializes access to the event store with support for the given entity type.

func NewEventStoreWithSources added in v0.17.0

func NewEventStoreWithSources(sources []*Source) *EventStore

NewEventStoreWithSources creates an event store that contains data for the specified sources.

func (*EventStore) CalendarItemWithIdentifier added in v0.17.0

func (es *EventStore) CalendarItemWithIdentifier(identifier string) *CalendarItem

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

func (*EventStore) CalendarItemsWithExternalIdentifier added in v0.17.0

func (es *EventStore) CalendarItemsWithExternalIdentifier(externalIdentifier string) []*CalendarItem

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

func (*EventStore) CalendarWithIdentifier added in v0.17.0

func (es *EventStore) CalendarWithIdentifier(identifier string) *Calendar

CalendarWithIdentifier locates a calendar with the specified identifier.

func (*EventStore) CalendarsForEntityType added in v0.17.0

func (es *EventStore) CalendarsForEntityType(entityType EntityType) []*Calendar

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

func (*EventStore) CancelFetchRequest added in v0.17.0

func (es *EventStore) CancelFetchRequest(fetchIdentifier obj.Object)

CancelFetchRequest cancels the request to fetch reminders.

func (*EventStore) Commit added in v0.17.0

func (es *EventStore) Commit() error

Commit commits all unsaved changes to the event store.

Commit returns an error if the operation did not succeed.

func (*EventStore) DefaultCalendarForNewEvents added in v0.17.0

func (es *EventStore) DefaultCalendarForNewEvents() *Calendar

DefaultCalendarForNewEvents returns the calendar that events should be added to by default. This may be nil if there is no default calendar for new events.

func (*EventStore) DefaultCalendarForNewReminders added in v0.17.0

func (es *EventStore) DefaultCalendarForNewReminders() *Calendar

DefaultCalendarForNewReminders returns identifies the default calendar for adding reminders to, as specified by user settings.

func (*EventStore) DelegateSources added in v0.17.0

func (es *EventStore) DelegateSources() []*Source

DelegateSources returns an unordered array of sources for all available delegates.

DelegateSources returns the collection as a Go slice.

func (*EventStore) Description added in v0.17.0

func (es *EventStore) Description() string

Description returns the object's -description text.

func (*EventStore) EnumerateEventsMatchingPredicateUsing added in v0.18.0

func (es *EventStore) EnumerateEventsMatchingPredicateUsing(predicate obj.Object, block func(obj.Object, *bool))

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

func (*EventStore) EventStoreIdentifier added in v0.17.0

func (es *EventStore) EventStoreIdentifier() string

EventStoreIdentifier returns a unique identifier string representing this calendar store.

func (*EventStore) EventWithIdentifier added in v0.17.0

func (es *EventStore) EventWithIdentifier(identifier string) *Event

EventWithIdentifier locates the first occurrence of an event with a given identifier.

func (*EventStore) EventsMatchingPredicate added in v0.17.0

func (es *EventStore) EventsMatchingPredicate(predicate obj.Object) []*Event

EventsMatchingPredicate finds all events that match a given predicate.

func (*EventStore) FetchRemindersMatchingPredicateCompletion added in v0.17.0

func (es *EventStore) FetchRemindersMatchingPredicateCompletion(predicate obj.Object, completion func(obj.Object)) obj.Object

FetchRemindersMatchingPredicateCompletion fetches reminders that match a given predicate.

func (*EventStore) IsEqual added in v0.17.0

func (es *EventStore) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*EventStore) IsKind added in v0.17.0

func (es *EventStore) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*EventStore) PredicateForCompletedRemindersWithCompletionDateStartingEndingCalendars added in v0.17.0

func (es *EventStore) PredicateForCompletedRemindersWithCompletionDateStartingEndingCalendars(startDate time.Time, endDate time.Time, calendars []*Calendar) *foundation.Predicate

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

func (*EventStore) PredicateForEventsWithStartDateEndDateCalendars added in v0.17.0

func (es *EventStore) PredicateForEventsWithStartDateEndDateCalendars(startDate time.Time, endDate time.Time, calendars []*Calendar) *foundation.Predicate

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

func (*EventStore) PredicateForIncompleteRemindersWithDueDateStartingEndingCalendars added in v0.17.0

func (es *EventStore) PredicateForIncompleteRemindersWithDueDateStartingEndingCalendars(startDate time.Time, endDate time.Time, calendars []*Calendar) *foundation.Predicate

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

func (*EventStore) PredicateForRemindersInCalendars added in v0.17.0

func (es *EventStore) PredicateForRemindersInCalendars(calendars []*Calendar) *foundation.Predicate

PredicateForRemindersInCalendars creates a predicate to identify all reminders in a collection of calendars.

func (*EventStore) RefreshSourcesIfNecessary added in v0.17.0

func (es *EventStore) RefreshSourcesIfNecessary()

RefreshSourcesIfNecessary pulls new data from remote sources, if necessary.

func (*EventStore) RemoveCalendarCommit added in v0.17.0

func (es *EventStore) RemoveCalendarCommit(calendar *Calendar, commit bool) error

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

func (*EventStore) RemoveEventSpan added in v0.17.0

func (es *EventStore) RemoveEventSpan(event *Event, span Span) error

RemoveEventSpan removes an event from the event store.

func (*EventStore) RemoveEventSpanCommit added in v0.17.0

func (es *EventStore) RemoveEventSpanCommit(event *Event, span Span, commit bool) error

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

func (*EventStore) RemoveReminderCommit added in v0.17.0

func (es *EventStore) RemoveReminderCommit(reminder *Reminder, commit bool) error

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

func (*EventStore) RequestAccessToEntityTypeCompletion added in v0.18.0

func (es *EventStore) RequestAccessToEntityTypeCompletion(entityType EntityType, completion func(bool, unsafe.Pointer))

RequestAccessToEntityTypeCompletion prompts the person using your app to grant or deny access to event or reminder data.

func (*EventStore) RequestFullAccessToEventsWithCompletion added in v0.18.0

func (es *EventStore) RequestFullAccessToEventsWithCompletion(completion func(bool, unsafe.Pointer))

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

func (*EventStore) RequestFullAccessToRemindersWithCompletion added in v0.18.0

func (es *EventStore) RequestFullAccessToRemindersWithCompletion(completion func(bool, unsafe.Pointer))

RequestFullAccessToRemindersWithCompletion prompts people to grant or deny read and write access to reminders.

func (*EventStore) RequestWriteOnlyAccessToEventsWithCompletion added in v0.18.0

func (es *EventStore) RequestWriteOnlyAccessToEventsWithCompletion(completion func(bool, unsafe.Pointer))

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

func (*EventStore) Reset added in v0.17.0

func (es *EventStore) Reset()

Reset reverts the event store to its saved state.

func (*EventStore) SaveCalendarCommit added in v0.17.0

func (es *EventStore) SaveCalendarCommit(calendar *Calendar, commit bool) error

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

func (*EventStore) SaveEventSpan added in v0.17.0

func (es *EventStore) SaveEventSpan(event *Event, span Span) error

SaveEventSpan saves changes to an event permanently.

func (*EventStore) SaveEventSpanCommit added in v0.17.0

func (es *EventStore) SaveEventSpanCommit(event *Event, span Span, commit bool) error

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

func (*EventStore) SaveReminderCommit added in v0.17.0

func (es *EventStore) SaveReminderCommit(reminder *Reminder, commit bool) error

SaveReminderCommit saves changes to a reminder by either committing or batching the changes.

func (*EventStore) SourceWithIdentifier added in v0.17.0

func (es *EventStore) SourceWithIdentifier(identifier string) *Source

SourceWithIdentifier locates an event source with the specified identifier.

func (*EventStore) Sources added in v0.17.0

func (es *EventStore) Sources() []*Source

Sources returns an unordered array of sources.

Sources returns the collection as a Go slice.

func (*EventStore) String added in v0.17.0

func (es *EventStore) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type FilesecProperty added in v0.17.0

type FilesecProperty int32
const (
	FilesecPropertyOwner        FilesecProperty = 1
	FilesecPropertyGroup        FilesecProperty = 2
	FilesecPropertyUUID         FilesecProperty = 3
	FilesecPropertyMode         FilesecProperty = 4
	FilesecPropertyACL          FilesecProperty = 5
	FilesecPropertyGrpuuid      FilesecProperty = 6
	FilesecPropertyACLRaw       FilesecProperty = 100
	FilesecPropertyACLAllocsize FilesecProperty = 101
)

func (FilesecProperty) String added in v0.17.0

func (e FilesecProperty) String() string

String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.

type Flag added in v0.17.0

type Flag int32
const (
	FlagFlagDeferInherit      Flag = 1
	FlagFlagNoInherit         Flag = 131072
	FlagEntryInherited        Flag = 16
	FlagEntryFileInherit      Flag = 32
	FlagEntryDirectoryInherit Flag = 64
	FlagEntryLimitInherit     Flag = 128
	FlagEntryOnlyInherit      Flag = 256
)

func (Flag) String added in v0.17.0

func (e Flag) String() string

String returns the Flag constant's name, or its numeric form when the value is not a known constant.

type Idtype added in v0.17.0

type Idtype int32
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype constant's name, or its numeric form when the value is not a known constant.

type IpcInfoObjectType added in v0.17.0

type IpcInfoObjectType uint32
const (
	IpcInfoObjectTypeNone               IpcInfoObjectType = 0
	IpcInfoObjectTypeThreadControl      IpcInfoObjectType = 1
	IpcInfoObjectTypeTaskControl        IpcInfoObjectType = 2
	IpcInfoObjectTypeHost               IpcInfoObjectType = 3
	IpcInfoObjectTypeHostPriv           IpcInfoObjectType = 4
	IpcInfoObjectTypeProcessor          IpcInfoObjectType = 5
	IpcInfoObjectTypeProcessorSet       IpcInfoObjectType = 6
	IpcInfoObjectTypeProcessorSetName   IpcInfoObjectType = 7
	IpcInfoObjectTypeTimer              IpcInfoObjectType = 8
	IpcInfoObjectTypePortSubstOnce      IpcInfoObjectType = 9
	IpcInfoObjectTypeMig                IpcInfoObjectType = 10
	IpcInfoObjectTypeMemoryObject       IpcInfoObjectType = 11
	IpcInfoObjectTypeXmmPager           IpcInfoObjectType = 12
	IpcInfoObjectTypeXmmKernel          IpcInfoObjectType = 13
	IpcInfoObjectTypeXmmReply           IpcInfoObjectType = 14
	IpcInfoObjectTypeUndReply           IpcInfoObjectType = 15
	IpcInfoObjectTypeHostNotify         IpcInfoObjectType = 16
	IpcInfoObjectTypeHostSecurity       IpcInfoObjectType = 17
	IpcInfoObjectTypeLedger             IpcInfoObjectType = 18
	IpcInfoObjectTypeMainDevice         IpcInfoObjectType = 19
	IpcInfoObjectTypeTaskName           IpcInfoObjectType = 20
	IpcInfoObjectTypeSubsystem          IpcInfoObjectType = 21
	IpcInfoObjectTypeIODoneQueue        IpcInfoObjectType = 22
	IpcInfoObjectTypeSemaphore          IpcInfoObjectType = 23
	IpcInfoObjectTypeLockSet            IpcInfoObjectType = 24
	IpcInfoObjectTypeClock              IpcInfoObjectType = 25
	IpcInfoObjectTypeClockCtrl          IpcInfoObjectType = 26
	IpcInfoObjectTypeIokitIdent         IpcInfoObjectType = 27
	IpcInfoObjectTypeNamedEntry         IpcInfoObjectType = 28
	IpcInfoObjectTypeIokitConnect       IpcInfoObjectType = 29
	IpcInfoObjectTypeIokitObject        IpcInfoObjectType = 30
	IpcInfoObjectTypeUpl                IpcInfoObjectType = 31
	IpcInfoObjectTypeMemObjControl      IpcInfoObjectType = 32
	IpcInfoObjectTypeAuSessionport      IpcInfoObjectType = 33
	IpcInfoObjectTypeFileport           IpcInfoObjectType = 34
	IpcInfoObjectTypeLabelh             IpcInfoObjectType = 35
	IpcInfoObjectTypeTaskResume         IpcInfoObjectType = 36
	IpcInfoObjectTypeVoucher            IpcInfoObjectType = 37
	IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38
	IpcInfoObjectTypeWorkInterval       IpcInfoObjectType = 39
	IpcInfoObjectTypeUxHandler          IpcInfoObjectType = 40
	IpcInfoObjectTypeUextObject         IpcInfoObjectType = 41
	IpcInfoObjectTypeArcadeReg          IpcInfoObjectType = 42
	IpcInfoObjectTypeEventlink          IpcInfoObjectType = 43
	IpcInfoObjectTypeTaskInspect        IpcInfoObjectType = 44
	IpcInfoObjectTypeTaskRead           IpcInfoObjectType = 45
	IpcInfoObjectTypeThreadInspect      IpcInfoObjectType = 46
	IpcInfoObjectTypeThreadRead         IpcInfoObjectType = 47
	IpcInfoObjectTypeSuidCred           IpcInfoObjectType = 48
	IpcInfoObjectTypeHypervisor         IpcInfoObjectType = 49
	IpcInfoObjectTypeTaskIDToken        IpcInfoObjectType = 50
	IpcInfoObjectTypeTaskFatal          IpcInfoObjectType = 51
	IpcInfoObjectTypeKcdata             IpcInfoObjectType = 52
	IpcInfoObjectTypeExclavesResource   IpcInfoObjectType = 53
	IpcInfoObjectTypeThreadResume       IpcInfoObjectType = 54
	IpcInfoObjectTypeUnknown            IpcInfoObjectType = 4294967295
)

func (IpcInfoObjectType) String added in v0.17.0

func (e IpcInfoObjectType) String() string

String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.

type LaunchDataType added in v0.17.0

type LaunchDataType int32
const (
	LaunchDataTypeDictionary LaunchDataType = 1
	LaunchDataTypeArray      LaunchDataType = 2
	LaunchDataTypeFd         LaunchDataType = 3
	LaunchDataTypeInteger    LaunchDataType = 4
	LaunchDataTypeReal       LaunchDataType = 5
	LaunchDataTypeBool       LaunchDataType = 6
	LaunchDataTypeString     LaunchDataType = 7
	LaunchDataTypeOpaque     LaunchDataType = 8
	LaunchDataTypeErrno      LaunchDataType = 9
	LaunchDataTypeMachport   LaunchDataType = 10
)

func (LaunchDataType) String added in v0.17.0

func (e LaunchDataType) String() string

String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.

type MDLabelDomain

type MDLabelDomain int32

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

String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.

type MDQueryOptionFlags

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

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int32
const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeFlags added in v0.17.0

type MachVMRangeFlags uint64

Bitmask — values may be combined with |.

const (
	MachVMRangeFlagsNone MachVMRangeFlags = 0
)

func (MachVMRangeFlags) String added in v0.17.0

func (e MachVMRangeFlags) String() string

String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeFlavor added in v0.17.0

type MachVMRangeFlavor uint32
const (
	MachVMRangeFlavorInvalid MachVMRangeFlavor = 0
	MachVMRangeFlavorV1      MachVMRangeFlavor = 1
)

func (MachVMRangeFlavor) String added in v0.17.0

func (e MachVMRangeFlavor) String() string

String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeTag added in v0.17.0

type MachVMRangeTag uint16
const (
	MachVMRangeTagDefault MachVMRangeTag = 0
	MachVMRangeTagData    MachVMRangeTag = 1
	MachVMRangeTagFixed   MachVMRangeTag = 2
)

func (MachVMRangeTag) String added in v0.17.0

func (e MachVMRangeTag) String() string

String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.

type MpoFlags added in v0.17.0

type MpoFlags uint32

Bitmask — values may be combined with |.

const (
	MpoFlagsPort                        MpoFlags = 0
	MpoFlagsServicePort                 MpoFlags = 1024
	MpoFlagsConnectionPort              MpoFlags = 2048
	MpoFlagsReplyPort                   MpoFlags = 4096
	MpoFlagsWeakReplyPort               MpoFlags = 16384
	MpoFlagsNotificationPort            MpoFlags = 17408
	MpoFlagsExceptionPort               MpoFlags = 32768
	MpoFlagsConnectionPortWithPortArray MpoFlags = 65536
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

type NXMouseButton

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

func (NXMouseButton) String

func (e NXMouseButton) String() string

String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.

type OSClockid added in v0.17.0

type OSClockid uint32
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid constant's name, or its numeric form when the value is not a known constant.

type Object added in v0.17.0

type Object struct {
	objref.Handle
}

Object is an idiomatic wrapper over the Objective-C class EKObject.

Object is an abstract base — you do not construct it directly. Construct one of Alarm, CalendarItem, Calendar, Participant, RecurrenceRule, Source, StructuredLocation and pass it where a Object is accepted.

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

func ObjectFromID added in v0.17.0

func ObjectFromID(id objc.ID) *Object

ObjectFromID adopts an existing Objective-C object as a Object (nil for 0), retaining it and registering a release finalizer.

func (*Object) Description added in v0.17.0

func (o *Object) Description() string

Description returns the object's -description text.

func (*Object) HasChanges added in v0.17.0

func (o *Object) HasChanges() bool

HasChanges reports whether the object has changes.

func (*Object) IsEqual added in v0.17.0

func (o *Object) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Object) IsKind added in v0.17.0

func (o *Object) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Object) IsNew added in v0.17.0

func (o *Object) IsNew() bool

IsNew reports whether the object is new.

func (*Object) Refresh added in v0.17.0

func (o *Object) Refresh() bool

Refresh reports whether merges changes to this object with the latest saved values.

func (*Object) Reset added in v0.17.0

func (o *Object) Reset()

Reset returns this object to its saved state.

func (*Object) Rollback added in v0.17.0

func (o *Object) Rollback()

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

func (*Object) String added in v0.17.0

func (o *Object) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type ObjectProvider added in v0.17.0

type ObjectProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ObjectProvider is accepted wherever a EKObject (or one of its subclasses) is expected.

type Participant added in v0.17.0

type Participant struct {
	Object
}

Participant is an idiomatic wrapper over the Objective-C class EKParticipant.

It embeds Object, promoting that type's methods.

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

func NewParticipant added in v0.17.0

func NewParticipant() *Participant

NewParticipant creates a new Participant.

func ParticipantFromID added in v0.17.0

func ParticipantFromID(id objc.ID) *Participant

ParticipantFromID adopts an existing Objective-C object as a Participant (nil for 0), retaining it and registering a release finalizer.

func (*Participant) ABPersonInAddressBook added in v0.17.0

func (p *Participant) ABPersonInAddressBook(addressBook obj.Object) obj.Object

ABPersonInAddressBook returns the address book record that represents the participant.

func (*Participant) ContactPredicate added in v0.17.0

func (p *Participant) ContactPredicate() *foundation.Predicate

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

func (*Participant) IsCurrentUser added in v0.17.0

func (p *Participant) IsCurrentUser() bool

IsCurrentUser reports whether a boolean indicating whether this participant represents the owner of this account.

func (*Participant) Name added in v0.17.0

func (p *Participant) Name() string

Name returns name of this participant.

func (*Participant) ParticipantRole added in v0.17.0

func (p *Participant) ParticipantRole() ParticipantRole

ParticipantRole returns the role of the attendee. Returns the role of the attendee as a EKParticipantRole value.

func (*Participant) ParticipantStatus added in v0.17.0

func (p *Participant) ParticipantStatus() ParticipantStatus

ParticipantStatus returns the status of the attendee. Returns the status of the attendee as a EKParticipantStatus value.

func (*Participant) ParticipantType added in v0.17.0

func (p *Participant) ParticipantType() ParticipantType

ParticipantType returns the type of the attendee. Returns the type of the attendee as a EKParticipantType value.

func (*Participant) URL added in v0.17.0

func (p *Participant) URL() string

URL returns URL representing this participant.

type ParticipantRole added in v0.17.0

type ParticipantRole int64

The participant’s role for an event.

const (
	// The participant’s role is unknown.
	ParticipantRoleUnknown ParticipantRole = 0
	// The participant’s attendance is required.
	ParticipantRoleRequired ParticipantRole = 1
	// The participant’s attendance is optional.
	ParticipantRoleOptional ParticipantRole = 2
	// The participant is the chair of the event.
	ParticipantRoleChair ParticipantRole = 3
	// The participant does not have an active role in the event.
	ParticipantRoleNonParticipant ParticipantRole = 4
)

func (ParticipantRole) String added in v0.17.0

func (e ParticipantRole) String() string

String returns the ParticipantRole constant's name, or its numeric form when the value is not a known constant.

type ParticipantScheduleStatus added in v0.17.0

type ParticipantScheduleStatus int64

The participant’s scheduled status.

const (
	// The invitation hasn’t been sent yet.
	ParticipantScheduleStatusNone ParticipantScheduleStatus = 0
	// The invitation is in the process of being sent.
	ParticipantScheduleStatusPending ParticipantScheduleStatus = 1
	// The invitation has been sent, but it’s unclear if it was successfully delivered.
	ParticipantScheduleStatusSent ParticipantScheduleStatus = 2
	// The invitation has been sent and successfully delivered.
	ParticipantScheduleStatusDelivered ParticipantScheduleStatus = 3
	// The invitation wasn’t delivered because the source doesn’t recognize the recipient.
	ParticipantScheduleStatusRecipientNotRecognized ParticipantScheduleStatus = 4
	// The invitation wasn’t delivered because of insufficient privileges.
	ParticipantScheduleStatusNoPrivileges ParticipantScheduleStatus = 5
	// The invitation wasn’t delivered due to a temporary failure.
	ParticipantScheduleStatusDeliveryFailed ParticipantScheduleStatus = 6
	// The invitation wasn’t delivered because the system is unsure of how to deliver it.
	ParticipantScheduleStatusCannotDeliver ParticipantScheduleStatus = 7
	// The invitation wasn’t delivered because scheduling with the participant isn’t allowed.
	ParticipantScheduleStatusRecipientNotAllowed ParticipantScheduleStatus = 8
)

func (ParticipantScheduleStatus) String added in v0.17.0

func (e ParticipantScheduleStatus) String() string

String returns the ParticipantScheduleStatus constant's name, or its numeric form when the value is not a known constant.

type ParticipantStatus added in v0.17.0

type ParticipantStatus int64

The participant’s attendance status for an event.

const (
	// The participant’s attendance status is unknown.
	ParticipantStatusUnknown ParticipantStatus = 0
	// The participant has yet to respond to the event.
	ParticipantStatusPending ParticipantStatus = 1
	// The participant has accepted the event.
	ParticipantStatusAccepted ParticipantStatus = 2
	// The participant has declined the event.
	ParticipantStatusDeclined ParticipantStatus = 3
	// The participant’s attendance status is tentative.
	ParticipantStatusTentative ParticipantStatus = 4
	// The participant has delegated attendance to another participant.
	ParticipantStatusDelegated ParticipantStatus = 5
	// The participant’s event has completed.
	ParticipantStatusCompleted ParticipantStatus = 6
	// The participant’s event is currently in process.
	ParticipantStatusInProcess ParticipantStatus = 7
)

func (ParticipantStatus) String added in v0.17.0

func (e ParticipantStatus) String() string

String returns the ParticipantStatus constant's name, or its numeric form when the value is not a known constant.

type ParticipantType added in v0.17.0

type ParticipantType int64

The type of participant.

const (
	// The participant’s type is unknown.
	ParticipantTypeUnknown ParticipantType = 0
	// The participant is a person.
	ParticipantTypePerson ParticipantType = 1
	// The participant is a room.
	ParticipantTypeRoom ParticipantType = 2
	// The participant is a resource.
	ParticipantTypeResource ParticipantType = 3
	// The participant is a group.
	ParticipantTypeGroup ParticipantType = 4
)

func (ParticipantType) String added in v0.17.0

func (e ParticipantType) String() string

String returns the ParticipantType constant's name, or its numeric form when the value is not a known constant.

type Perm added in v0.17.0

type Perm int32
const (
	PermReadData           Perm = 2
	PermListDirectory      Perm = 2
	PermWriteData          Perm = 4
	PermAddFile            Perm = 4
	PermExecute            Perm = 8
	PermSearch             Perm = 8
	PermDelete             Perm = 16
	PermAppendData         Perm = 32
	PermAddSubdirectory    Perm = 32
	PermDeleteChild        Perm = 64
	PermReadAttributes     Perm = 128
	PermWriteAttributes    Perm = 256
	PermReadExtattributes  Perm = 512
	PermWriteExtattributes Perm = 1024
	PermReadSecurity       Perm = 2048
	PermWriteSecurity      Perm = 4096
	PermChangeOwner        Perm = 8192
	PermSynchronize        Perm = 1048576
)

func (Perm) String added in v0.17.0

func (e Perm) String() string

String returns the Perm constant's name, or its numeric form when the value is not a known constant.

type PtrauthKey added in v0.17.0

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

func (PtrauthKey) String added in v0.17.0

func (e PtrauthKey) String() string

String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.

type QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

type RecurrenceDayOfWeek added in v0.17.0

type RecurrenceDayOfWeek struct {
	objref.Handle
}

RecurrenceDayOfWeek is an idiomatic wrapper over the Objective-C class EKRecurrenceDayOfWeek.

A class that represents the day of the week.

func DayOfWeek added in v0.17.0

func DayOfWeek(dayOfTheWeek Weekday) *RecurrenceDayOfWeek

DayOfWeek creates and returns a day of the week with a given day.

func DayOfWeekWeekNumber added in v0.17.0

func DayOfWeekWeekNumber(dayOfTheWeek Weekday, weekNumber int) *RecurrenceDayOfWeek

DayOfWeekWeekNumber creates and returns an autoreleased day of the week with a given day and week number.

func NewRecurrenceDayOfWeekWithDayOfTheWeekWeekNumber added in v0.17.0

func NewRecurrenceDayOfWeekWithDayOfTheWeekWeekNumber(dayOfTheWeek Weekday, weekNumber int) *RecurrenceDayOfWeek

NewRecurrenceDayOfWeekWithDayOfTheWeekWeekNumber initializes and returns a day of the week with a given day and week number.

func RecurrenceDayOfWeekFromID added in v0.17.0

func RecurrenceDayOfWeekFromID(id objc.ID) *RecurrenceDayOfWeek

RecurrenceDayOfWeekFromID adopts an existing Objective-C object as a RecurrenceDayOfWeek (nil for 0), retaining it and registering a release finalizer.

func (*RecurrenceDayOfWeek) DayOfTheWeek added in v0.17.0

func (rdow *RecurrenceDayOfWeek) DayOfTheWeek() Weekday

DayOfTheWeek returns the day of the week.

func (*RecurrenceDayOfWeek) Description added in v0.17.0

func (rdow *RecurrenceDayOfWeek) Description() string

Description returns the object's -description text.

func (*RecurrenceDayOfWeek) IsEqual added in v0.17.0

func (rdow *RecurrenceDayOfWeek) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*RecurrenceDayOfWeek) IsKind added in v0.17.0

func (rdow *RecurrenceDayOfWeek) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*RecurrenceDayOfWeek) String added in v0.17.0

func (rdow *RecurrenceDayOfWeek) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*RecurrenceDayOfWeek) WeekNumber added in v0.17.0

func (rdow *RecurrenceDayOfWeek) WeekNumber() int

WeekNumber returns the week number.

type RecurrenceEnd added in v0.17.0

type RecurrenceEnd struct {
	objref.Handle
}

RecurrenceEnd is an idiomatic wrapper over the Objective-C class EKRecurrenceEnd.

A class that defines the end of a recurrence rule.

func NewRecurrenceEnd added in v0.17.0

func NewRecurrenceEnd() *RecurrenceEnd

NewRecurrenceEnd creates a new RecurrenceEnd.

func RecurrenceEndFromID added in v0.17.0

func RecurrenceEndFromID(id objc.ID) *RecurrenceEnd

RecurrenceEndFromID adopts an existing Objective-C object as a RecurrenceEnd (nil for 0), retaining it and registering a release finalizer.

func RecurrenceEndWithEndDate added in v0.17.0

func RecurrenceEndWithEndDate(endDate time.Time) *RecurrenceEnd

RecurrenceEndWithEndDate initializes and returns a date-based recurrence end with a given end date.

func RecurrenceEndWithOccurrenceCount added in v0.17.0

func RecurrenceEndWithOccurrenceCount(occurrenceCount int) *RecurrenceEnd

RecurrenceEndWithOccurrenceCount initializes and returns a count-based recurrence end with a given maximum occurrence count.

func (*RecurrenceEnd) Description added in v0.17.0

func (re *RecurrenceEnd) Description() string

Description returns the object's -description text.

func (*RecurrenceEnd) EndDate added in v0.17.0

func (re *RecurrenceEnd) EndDate() time.Time

EndDate returns the end date of this recurrence, or nil if it's count-based.

func (*RecurrenceEnd) IsEqual added in v0.17.0

func (re *RecurrenceEnd) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*RecurrenceEnd) IsKind added in v0.17.0

func (re *RecurrenceEnd) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*RecurrenceEnd) OccurrenceCount added in v0.17.0

func (re *RecurrenceEnd) OccurrenceCount() int

OccurrenceCount returns the maximum occurrence count, or 0 if it's date-based.

func (*RecurrenceEnd) String added in v0.17.0

func (re *RecurrenceEnd) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type RecurrenceFrequency added in v0.17.0

type RecurrenceFrequency int64

The frequency for recurrence rules.

const (
	// Indicates a daily recurrence rule.
	RecurrenceFrequencyDaily RecurrenceFrequency = 0
	// Indicates a weekly recurrence rule.
	RecurrenceFrequencyWeekly RecurrenceFrequency = 1
	// Indicates a monthly recurrence rule.
	RecurrenceFrequencyMonthly RecurrenceFrequency = 2
	// Indicates a yearly recurrence rule.
	RecurrenceFrequencyYearly RecurrenceFrequency = 3
)

func (RecurrenceFrequency) String added in v0.17.0

func (e RecurrenceFrequency) String() string

String returns the RecurrenceFrequency constant's name, or its numeric form when the value is not a known constant.

type RecurrenceRule added in v0.17.0

type RecurrenceRule struct {
	Object
}

RecurrenceRule is an idiomatic wrapper over the Objective-C class EKRecurrenceRule.

It embeds Object, promoting that type's methods.

A class that describes the pattern for a recurring event.

func NewRecurrenceRuleRecurrenceWithFrequencyIntervalDaysOfTheWeekDaysOfTheMonthMonthsOfTheYearWeeksOfTheYearDaysOfTheYearSetPositionsEnd added in v0.17.0

func NewRecurrenceRuleRecurrenceWithFrequencyIntervalDaysOfTheWeekDaysOfTheMonthMonthsOfTheYearWeeksOfTheYearDaysOfTheYearSetPositionsEnd(type_ RecurrenceFrequency, interval int, days []*RecurrenceDayOfWeek, monthDays []*foundation.Number, months []*foundation.Number, weeksOfTheYear []*foundation.Number, daysOfTheYear []*foundation.Number, setPositions []*foundation.Number, end *RecurrenceEnd) *RecurrenceRule

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

func NewRecurrenceRuleRecurrenceWithFrequencyIntervalEnd added in v0.17.0

func NewRecurrenceRuleRecurrenceWithFrequencyIntervalEnd(type_ RecurrenceFrequency, interval int, end *RecurrenceEnd) *RecurrenceRule

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

func RecurrenceRuleFromID added in v0.17.0

func RecurrenceRuleFromID(id objc.ID) *RecurrenceRule

RecurrenceRuleFromID adopts an existing Objective-C object as a RecurrenceRule (nil for 0), retaining it and registering a release finalizer.

func (*RecurrenceRule) CalendarIdentifier added in v0.17.0

func (rr *RecurrenceRule) CalendarIdentifier() string

CalendarIdentifier returns calendar used by this recurrence rule.

func (*RecurrenceRule) DaysOfTheMonth added in v0.17.0

func (rr *RecurrenceRule) DaysOfTheMonth() []obj.Object

DaysOfTheMonth returns 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.

DaysOfTheMonth returns the collection as a Go slice.

func (*RecurrenceRule) DaysOfTheWeek added in v0.17.0

func (rr *RecurrenceRule) DaysOfTheWeek() []*RecurrenceDayOfWeek

DaysOfTheWeek returns 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.

DaysOfTheWeek returns the collection as a Go slice.

func (*RecurrenceRule) DaysOfTheYear added in v0.17.0

func (rr *RecurrenceRule) DaysOfTheYear() []obj.Object

DaysOfTheYear returns 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.

DaysOfTheYear returns the collection as a Go slice.

func (*RecurrenceRule) FirstDayOfTheWeek added in v0.17.0

func (rr *RecurrenceRule) FirstDayOfTheWeek() int

FirstDayOfTheWeek returns 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 (*RecurrenceRule) Frequency added in v0.17.0

func (rr *RecurrenceRule) Frequency() RecurrenceFrequency

Frequency returns this property designates the unit of time used to describe the recurrence pattern.

func (*RecurrenceRule) Interval added in v0.17.0

func (rr *RecurrenceRule) Interval() int

Interval returns 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 (*RecurrenceRule) MonthsOfTheYear added in v0.17.0

func (rr *RecurrenceRule) MonthsOfTheYear() []obj.Object

MonthsOfTheYear returns 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.

MonthsOfTheYear returns the collection as a Go slice.

func (*RecurrenceRule) RecurrenceEnd added in v0.17.0

func (rr *RecurrenceRule) RecurrenceEnd() *RecurrenceEnd

RecurrenceEnd returns 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 (*RecurrenceRule) SetPositions added in v0.17.0

func (rr *RecurrenceRule) SetPositions() []obj.Object

SetPositions returns 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.

SetPositions returns the collection as a Go slice.

func (*RecurrenceRule) WeeksOfTheYear added in v0.17.0

func (rr *RecurrenceRule) WeeksOfTheYear() []obj.Object

WeeksOfTheYear returns 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.

WeeksOfTheYear returns the collection as a Go slice.

func (*RecurrenceRule) WithRecurrenceEnd added in v0.17.0

func (rr *RecurrenceRule) WithRecurrenceEnd(recurrenceEnd *RecurrenceEnd) *RecurrenceRule

WithRecurrenceEnd sets indicates when the recurrence rule ends.

type Reminder added in v0.17.0

type Reminder struct {
	CalendarItem
}

Reminder is an idiomatic wrapper over the Objective-C class EKReminder.

It embeds CalendarItem, promoting that type's methods.

A class that represents a reminder in a calendar.

func NewReminder added in v0.17.0

func NewReminder() *Reminder

NewReminder creates a new Reminder.

func ReminderFromID added in v0.17.0

func ReminderFromID(id objc.ID) *Reminder

ReminderFromID adopts an existing Objective-C object as a Reminder (nil for 0), retaining it and registering a release finalizer.

func ReminderWithEventStore added in v0.17.0

func ReminderWithEventStore(eventStore *EventStore) *Reminder

ReminderWithEventStore creates and returns a new reminder in the given event store.

func (*Reminder) CompletionDate added in v0.17.0

func (r *Reminder) CompletionDate() time.Time

CompletionDate returns the date on which this reminder was completed.

func (*Reminder) DueDateComponents added in v0.17.0

func (r *Reminder) DueDateComponents() *foundation.DateComponents

DueDateComponents returns the date by which this reminder should be completed. 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 (*Reminder) IsCompleted added in v0.17.0

func (r *Reminder) IsCompleted() bool

IsCompleted reports whether the reminder is completed. Setting it to true will set the completed date to the current date. Setting it to false will set the completed date to nil.

func (*Reminder) Priority added in v0.17.0

func (r *Reminder) Priority() int

Priority returns the priority of the reminder. 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 (*Reminder) StartDateComponents added in v0.17.0

func (r *Reminder) StartDateComponents() *foundation.DateComponents

StartDateComponents returns the start date of the task, as date components. 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.

func (*Reminder) WithAlarms added in v0.17.0

func (r *Reminder) WithAlarms(items ...*Alarm) *Reminder

WithAlarms sets the alarms associated with the calendar item, as an array of EKAlarm objects.

func (*Reminder) WithCalendar added in v0.17.0

func (r *Reminder) WithCalendar(calendar *Calendar) *Reminder

WithCalendar sets the calendar for the calendar item.

func (*Reminder) WithCompleted added in v0.17.0

func (r *Reminder) WithCompleted(completed bool) *Reminder

WithCompleted sets a Boolean value determining whether or not the reminder is marked completed.

func (*Reminder) WithCompletionDate added in v0.17.0

func (r *Reminder) WithCompletionDate(completionDate time.Time) *Reminder

WithCompletionDate sets the date on which the reminder was completed.

func (*Reminder) WithDueDateComponents added in v0.17.0

func (r *Reminder) WithDueDateComponents(dueDateComponents obj.Object) *Reminder

WithDueDateComponents sets the date by which the reminder should be completed.

func (*Reminder) WithLocation added in v0.17.0

func (r *Reminder) WithLocation(location string) *Reminder

WithLocation sets the location associated with the calendar item.

func (*Reminder) WithNotes added in v0.17.0

func (r *Reminder) WithNotes(notes string) *Reminder

WithNotes sets the notes associated with the calendar item.

func (*Reminder) WithPriority added in v0.17.0

func (r *Reminder) WithPriority(priority int) *Reminder

WithPriority sets the reminder’s priority.

func (*Reminder) WithRecurrenceRules added in v0.17.0

func (r *Reminder) WithRecurrenceRules(items ...*RecurrenceRule) *Reminder

WithRecurrenceRules sets the recurrence rules for the calendar item.

func (*Reminder) WithStartDateComponents added in v0.17.0

func (r *Reminder) WithStartDateComponents(startDateComponents obj.Object) *Reminder

WithStartDateComponents sets the start date of the task.

func (*Reminder) WithTimeZone added in v0.17.0

func (r *Reminder) WithTimeZone(timeZone obj.Object) *Reminder

WithTimeZone sets the time zone for the calendar item.

func (*Reminder) WithTitle added in v0.17.0

func (r *Reminder) WithTitle(title string) *Reminder

WithTitle sets the title for the calendar item.

func (*Reminder) WithURL added in v0.17.0

func (r *Reminder) WithURL(url string) *Reminder

WithURL sets the URL for the calendar item.

type ReminderPriority added in v0.17.0

type ReminderPriority uint64

The priority of the reminder.

const (
	// The reminder has no priority set.
	ReminderPriorityNone ReminderPriority = 0
	// The reminder is high priority.
	ReminderPriorityHigh ReminderPriority = 1
	// The reminder is medium priority.
	ReminderPriorityMedium ReminderPriority = 5
	// The reminder is low priority.
	ReminderPriorityLow ReminderPriority = 9
)

func (ReminderPriority) String added in v0.17.0

func (e ReminderPriority) String() string

String returns the ReminderPriority constant's name, or its numeric form when the value is not a known constant.

type Source added in v0.17.0

type Source struct {
	Object
}

Source is an idiomatic wrapper over the Objective-C class EKSource.

It embeds Object, promoting that type's methods.

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

func NewSource added in v0.17.0

func NewSource() *Source

NewSource creates a new Source.

func SourceFromID added in v0.17.0

func SourceFromID(id objc.ID) *Source

SourceFromID adopts an existing Objective-C object as a Source (nil for 0), retaining it and registering a release finalizer.

func (*Source) CalendarsForEntityType added in v0.17.0

func (s *Source) CalendarsForEntityType(entityType EntityType) []*Calendar

CalendarsForEntityType returns the calendars that belong to this source object that support a particular entity type. The order of the returned elements is unspecified.

func (*Source) IsDelegate added in v0.17.0

func (s *Source) IsDelegate() bool

IsDelegate reports whether this EKSource represents an account delegated by another user.

func (*Source) SourceIdentifier added in v0.17.0

func (s *Source) SourceIdentifier() string

SourceIdentifier returns the source identifier.

func (*Source) SourceType added in v0.17.0

func (s *Source) SourceType() SourceType

SourceType returns the source type.

func (*Source) Title added in v0.17.0

func (s *Source) Title() string

Title returns the title.

type SourceType added in v0.17.0

type SourceType int64

The type of source object.

const (
	// Represents a local source.
	SourceTypeLocal SourceType = 0
	// Represents an Exchange source.
	SourceTypeExchange SourceType = 1
	// Represents a CalDAV or iCloud source.
	SourceTypeCalDAV SourceType = 2
	// Represents a MobileMe source.
	SourceTypeMobileMe SourceType = 3
	// Represents a subscribed source.
	SourceTypeSubscribed SourceType = 4
	// Represents a birthday source.
	SourceTypeBirthdays SourceType = 5
)

func (SourceType) String added in v0.17.0

func (e SourceType) String() string

String returns the SourceType constant's name, or its numeric form when the value is not a known constant.

type Span added in v0.17.0

type Span 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.
	SpanThisEvent Span = 0
	// Modifications to this event instance should also affect future instances of this event.
	SpanFutureEvents Span = 1
)

func (Span) String added in v0.17.0

func (e Span) String() string

String returns the Span constant's name, or its numeric form when the value is not a known constant.

type StructuredLocation added in v0.17.0

type StructuredLocation struct {
	Object
}

StructuredLocation is an idiomatic wrapper over the Objective-C class EKStructuredLocation.

It embeds Object, promoting that type's methods.

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

func LocationWithMapItem added in v0.17.0

func LocationWithMapItem(mapItem obj.Object) *StructuredLocation

LocationWithMapItem creates a new structured location with the specified map item.

func LocationWithTitle added in v0.17.0

func LocationWithTitle(title string) *StructuredLocation

LocationWithTitle creates a new structured location with the specified title.

func NewStructuredLocation added in v0.17.0

func NewStructuredLocation() *StructuredLocation

NewStructuredLocation creates a new StructuredLocation.

func StructuredLocationFromID added in v0.17.0

func StructuredLocationFromID(id objc.ID) *StructuredLocation

StructuredLocationFromID adopts an existing Objective-C object as a StructuredLocation (nil for 0), retaining it and registering a release finalizer.

func (*StructuredLocation) GeoLocation added in v0.18.0

func (sl *StructuredLocation) GeoLocation() unsafe.Pointer

GeoLocation returns the geo location.

func (*StructuredLocation) Radius added in v0.17.0

func (sl *StructuredLocation) Radius() float64

Radius returns the radius.

func (*StructuredLocation) Title added in v0.17.0

func (sl *StructuredLocation) Title() string

Title returns the title.

func (*StructuredLocation) WithGeoLocation added in v0.17.0

func (sl *StructuredLocation) WithGeoLocation(geoLocation unsafe.Pointer) *StructuredLocation

WithGeoLocation sets the core location.

func (*StructuredLocation) WithRadius added in v0.17.0

func (sl *StructuredLocation) WithRadius(radius float64) *StructuredLocation

WithRadius sets a minimum distance from the core location that would trigger the alarm or reminder.

func (*StructuredLocation) WithTitle added in v0.17.0

func (sl *StructuredLocation) WithTitle(title string) *StructuredLocation

WithTitle sets the title of the location.

type Tag added in v0.17.0

type Tag int32
const (
	TagUndefinedTag  Tag = 0
	TagExtendedAllow Tag = 1
	TagExtendedDeny  Tag = 2
)

func (Tag) String added in v0.17.0

func (e Tag) String() string

String returns the Tag constant's name, or its numeric form when the value is not a known constant.

type Type added in v0.17.0

type Type int32
const (
	TypeExtended Type = 256
	TypeAccess   Type = 0
	TypeDefault  Type = 1
	TypeAfs      Type = 2
	TypeCoda     Type = 3
	TypeNtfs     Type = 4
	TypeNwfs     Type = 5
)

func (Type) String added in v0.17.0

func (e Type) String() string

String returns the Type constant's name, or its numeric form when the value is not a known constant.

type VirtualConferenceDescriptor added in v0.17.0

type VirtualConferenceDescriptor struct {
	objref.Handle
}

VirtualConferenceDescriptor is an idiomatic wrapper over the Objective-C class EKVirtualConferenceDescriptor.

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

func NewVirtualConferenceDescriptorWithTitleURLDescriptorsConferenceDetails added in v0.17.0

func NewVirtualConferenceDescriptorWithTitleURLDescriptorsConferenceDetails(title string, urlDescriptors []*VirtualConferenceURLDescriptor, conferenceDetails string) *VirtualConferenceDescriptor

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

func VirtualConferenceDescriptorFromID added in v0.17.0

func VirtualConferenceDescriptorFromID(id objc.ID) *VirtualConferenceDescriptor

VirtualConferenceDescriptorFromID adopts an existing Objective-C object as a VirtualConferenceDescriptor (nil for 0), retaining it and registering a release finalizer.

func (*VirtualConferenceDescriptor) ConferenceDetails added in v0.17.0

func (vcd *VirtualConferenceDescriptor) ConferenceDetails() string

ConferenceDetails returns the conference details.

func (*VirtualConferenceDescriptor) Description added in v0.17.0

func (vcd *VirtualConferenceDescriptor) Description() string

Description returns the object's -description text.

func (*VirtualConferenceDescriptor) IsEqual added in v0.17.0

func (vcd *VirtualConferenceDescriptor) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*VirtualConferenceDescriptor) IsKind added in v0.17.0

func (vcd *VirtualConferenceDescriptor) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*VirtualConferenceDescriptor) String added in v0.17.0

func (vcd *VirtualConferenceDescriptor) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*VirtualConferenceDescriptor) Title added in v0.17.0

func (vcd *VirtualConferenceDescriptor) Title() string

Title returns the title.

func (*VirtualConferenceDescriptor) URLDescriptors added in v0.17.0

URLDescriptors returns the URL descriptors.

URLDescriptors returns the collection as a Go slice.

type VirtualConferenceProvider added in v0.17.0

type VirtualConferenceProvider struct {
	objref.Handle
}

VirtualConferenceProvider is an idiomatic wrapper over the Objective-C class EKVirtualConferenceProvider.

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

func NewVirtualConferenceProvider added in v0.17.0

func NewVirtualConferenceProvider() *VirtualConferenceProvider

NewVirtualConferenceProvider creates a new VirtualConferenceProvider.

func VirtualConferenceProviderFromID added in v0.17.0

func VirtualConferenceProviderFromID(id objc.ID) *VirtualConferenceProvider

VirtualConferenceProviderFromID adopts an existing Objective-C object as a VirtualConferenceProvider (nil for 0), retaining it and registering a release finalizer.

func (*VirtualConferenceProvider) Description added in v0.17.0

func (vcp *VirtualConferenceProvider) Description() string

Description returns the object's -description text.

func (*VirtualConferenceProvider) FetchAvailableRoomTypes added in v0.17.0

func (vcp *VirtualConferenceProvider) FetchAvailableRoomTypes(ctx context.Context) (result obj.Object, err error)

FetchAvailableRoomTypes provides an array of room types where events take place.

FetchAvailableRoomTypes blocks until the operation completes or ctx is cancelled.

func (*VirtualConferenceProvider) FetchVirtualConferenceForIdentifier added in v0.17.0

func (vcp *VirtualConferenceProvider) FetchVirtualConferenceForIdentifier(ctx context.Context, identifier obj.Object) (result *VirtualConferenceDescriptor, err error)

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

FetchVirtualConferenceForIdentifier blocks until the operation completes or ctx is cancelled.

func (*VirtualConferenceProvider) IsEqual added in v0.17.0

func (vcp *VirtualConferenceProvider) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*VirtualConferenceProvider) IsKind added in v0.17.0

func (vcp *VirtualConferenceProvider) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*VirtualConferenceProvider) String added in v0.17.0

func (vcp *VirtualConferenceProvider) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type VirtualConferenceRoomTypeDescriptor added in v0.17.0

type VirtualConferenceRoomTypeDescriptor struct {
	objref.Handle
}

VirtualConferenceRoomTypeDescriptor is an idiomatic wrapper over the Objective-C class EKVirtualConferenceRoomTypeDescriptor.

Details about a room where virtual conferences take place.

func NewVirtualConferenceRoomTypeDescriptorWithTitleIdentifier added in v0.17.0

func NewVirtualConferenceRoomTypeDescriptorWithTitleIdentifier(title string, identifier obj.Object) *VirtualConferenceRoomTypeDescriptor

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

func VirtualConferenceRoomTypeDescriptorFromID added in v0.17.0

func VirtualConferenceRoomTypeDescriptorFromID(id objc.ID) *VirtualConferenceRoomTypeDescriptor

VirtualConferenceRoomTypeDescriptorFromID adopts an existing Objective-C object as a VirtualConferenceRoomTypeDescriptor (nil for 0), retaining it and registering a release finalizer.

func (*VirtualConferenceRoomTypeDescriptor) Description added in v0.17.0

func (vcrtd *VirtualConferenceRoomTypeDescriptor) Description() string

Description returns the object's -description text.

func (*VirtualConferenceRoomTypeDescriptor) Identifier added in v0.17.0

Identifier returns the identifier.

func (*VirtualConferenceRoomTypeDescriptor) IsEqual added in v0.17.0

func (vcrtd *VirtualConferenceRoomTypeDescriptor) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*VirtualConferenceRoomTypeDescriptor) IsKind added in v0.17.0

func (vcrtd *VirtualConferenceRoomTypeDescriptor) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*VirtualConferenceRoomTypeDescriptor) String added in v0.17.0

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*VirtualConferenceRoomTypeDescriptor) Title added in v0.17.0

Title returns the title.

type VirtualConferenceURLDescriptor added in v0.17.0

type VirtualConferenceURLDescriptor struct {
	objref.Handle
}

VirtualConferenceURLDescriptor is an idiomatic wrapper over the Objective-C class EKVirtualConferenceURLDescriptor.

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

func NewVirtualConferenceURLDescriptorWithTitleURL added in v0.17.0

func NewVirtualConferenceURLDescriptorWithTitleURL(title string, url string) *VirtualConferenceURLDescriptor

NewVirtualConferenceURLDescriptorWithTitleURL creates a URL descriptor with the given title and URL.

func VirtualConferenceURLDescriptorFromID added in v0.17.0

func VirtualConferenceURLDescriptorFromID(id objc.ID) *VirtualConferenceURLDescriptor

VirtualConferenceURLDescriptorFromID adopts an existing Objective-C object as a VirtualConferenceURLDescriptor (nil for 0), retaining it and registering a release finalizer.

func (*VirtualConferenceURLDescriptor) Description added in v0.17.0

func (vcud *VirtualConferenceURLDescriptor) Description() string

Description returns the object's -description text.

func (*VirtualConferenceURLDescriptor) IsEqual added in v0.17.0

func (vcud *VirtualConferenceURLDescriptor) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*VirtualConferenceURLDescriptor) IsKind added in v0.17.0

func (vcud *VirtualConferenceURLDescriptor) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*VirtualConferenceURLDescriptor) String added in v0.17.0

func (vcud *VirtualConferenceURLDescriptor) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*VirtualConferenceURLDescriptor) Title added in v0.17.0

func (vcud *VirtualConferenceURLDescriptor) Title() string

Title returns the title.

func (*VirtualConferenceURLDescriptor) URL added in v0.17.0

URL returns the URL.

type VirtualMemoryGuardExceptionCode added in v0.17.0

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

func (VirtualMemoryGuardExceptionCode) String added in v0.17.0

String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.

type Weekday added in v0.17.0

type Weekday int64

The day of the week.

const (
	// The value for Sunday.
	WeekdaySunday Weekday = 1
	// The value for Monday.
	WeekdayMonday Weekday = 2
	// The value for Tuesday.
	WeekdayTuesday Weekday = 3
	// The value for Wednesday.
	WeekdayWednesday Weekday = 4
	// The value for Thursday.
	WeekdayThursday Weekday = 5
	// The value for Friday.
	WeekdayFriday Weekday = 6
	// The value for Saturday.
	WeekdaySaturday Weekday = 7
	// The value for Sunday.
	Sunday Weekday = 1
	// The value for Monday.
	Monday Weekday = 2
	// The value for Tuesday.
	Tuesday Weekday = 3
	// The value for Wednesday.
	Wednesday Weekday = 4
	// The value for Thursday.
	Thursday Weekday = 5
	// The value for Friday.
	Friday Weekday = 6
	// The value for Saturday.
	Saturday Weekday = 7
)

func (Weekday) String added in v0.17.0

func (e Weekday) String() string

String returns the Weekday constant's name, or its numeric form when the value is not a known constant.

type XpcListenerCreateFlags added in v0.17.0

type XpcListenerCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcListenerCreateFlagsNone            XpcListenerCreateFlags = 0
	XpcListenerCreateFlagsInactive        XpcListenerCreateFlags = 1
	XpcListenerCreateFlagsForceMach       XpcListenerCreateFlags = 2
	XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4
)

func (XpcListenerCreateFlags) String added in v0.17.0

func (e XpcListenerCreateFlags) String() string

String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.

type XpcSessionCreateFlags added in v0.17.0

type XpcSessionCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcSessionCreateFlagsNone           XpcSessionCreateFlags = 0
	XpcSessionCreateFlagsInactive       XpcSessionCreateFlags = 1
	XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2
)

func (XpcSessionCreateFlags) String added in v0.17.0

func (e XpcSessionCreateFlags) String() string

String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.

Jump to

Keyboard shortcuts

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