sharedwithyou

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: 15 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package sharedwithyou provides a fluent Go API over the macOS SharedWithYou 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.

Main-thread requirements

Methods, setters, and constructors of classes Apple isolates to the main thread run there automatically; callers never need to arrange main-thread dispatch for the generated API.

Delegates

A …Delegate interface is implemented by a plain Go value and installed with the matching With… setter; the package builds the Objective-C delegate object behind the scenes. Optional protocol methods are separate one-method …Handler interfaces — implement the ones you need on the same value and the framework calls them too.

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 ErrCodeAccessDenied = errkit.New("SWHighlightCenterErrorDomain", 3)

ErrCodeAccessDenied matches the SharedWithYou error SWHighlightCenterErrorCodeAccessDenied.

View Source
var ErrCodeInternalError = errkit.New("SWHighlightCenterErrorDomain", 1)

ErrCodeInternalError matches the SharedWithYou error SWHighlightCenterErrorCodeInternalError.

View Source
var ErrCodeInvalidURL = errkit.New("SWHighlightCenterErrorDomain", 2)

ErrCodeInvalidURL matches the SharedWithYou error SWHighlightCenterErrorCodeInvalidURL.

View Source
var ErrCodeNoError = errkit.New("SWHighlightCenterErrorDomain", 0)

ErrCodeNoError matches the SharedWithYou error SWHighlightCenterErrorCodeNoError.

Functions

func HighlightCollectionTitle added in v0.17.0

func HighlightCollectionTitle() string

HighlightCollectionTitle returns localized title to display with a collection of highlights Use this string as the title for a collection of shared highlight links displayed to the user.

func IsSystemCollaborationSupportAvailable added in v0.17.0

func IsSystemCollaborationSupportAvailable() bool

IsSystemCollaborationSupportAvailable reports whether the current software version has full support for Messages collaboration features. Use this property at runtime to conditionally enable Messages collaboration features in your app. This property will be permantently set to true on a software version with full support for these features.

func NSPasteboardTypeCollaborationMetadata

func NSPasteboardTypeCollaborationMetadata() obj.Object

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

func SWCollaborationMetadataTypeIdentifier

func SWCollaborationMetadataTypeIdentifier() obj.Object

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

func ShowAlertWithParticipantHighlightInWindow added in v0.17.0

func ShowAlertWithParticipantHighlightInWindow(participant obj.Object, highlight *CollaborationHighlight, window obj.Object)

ShowAlertWithParticipantHighlightInWindow shows alert with participant highlight in window.

Types

type AttributionView added in v0.17.0

type AttributionView struct {
	objref.Handle
}

AttributionView is an idiomatic wrapper over the Objective-C class SWAttributionView.

A view that displays the sender who shares a highlight and provides related actions.

func AttributionViewFromID added in v0.17.0

func AttributionViewFromID(id objc.ID) *AttributionView

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

func NewAttributionView added in v0.17.0

func NewAttributionView() *AttributionView

NewAttributionView creates a new AttributionView.

func (*AttributionView) BackgroundStyle added in v0.17.0

func (av *AttributionView) BackgroundStyle() AttributionViewBackgroundStyle

BackgroundStyle returns the background style of the inner view containing names and avatars. If you do not specify a background style, one will be chosen automatically. In general, .color looks best on monochrome backgrounds, while .material looks better on colored backgrounds.

func (*AttributionView) Description added in v0.17.0

func (av *AttributionView) Description() string

Description returns the object's -description text.

func (*AttributionView) DisplayContext added in v0.17.0

func (av *AttributionView) DisplayContext() AttributionViewDisplayContext

DisplayContext returns the context for the content being displayed with this view. Set this prior to adding this view to your view hierarchy.

func (*AttributionView) Highlight added in v0.17.0

func (av *AttributionView) Highlight() *Highlight

Highlight returns the SWHighlight to use for displaying this attribution. When this property is set to a new highlight, the contents of the view will be reloaded.

func (*AttributionView) HighlightMenu added in v0.17.0

func (av *AttributionView) HighlightMenu() obj.Object

HighlightMenu returns the highlight menu.

func (*AttributionView) HorizontalAlignment added in v0.17.0

func (av *AttributionView) HorizontalAlignment() AttributionViewHorizontalAlignment

HorizontalAlignment returns the horizontal alignment of the view. You should specify a value, in case the internal default ever changes. This value specifies the horizontal anchor for the view's contents. This only has an effect when the width of the contents are less than the available width.

func (*AttributionView) IsEqual added in v0.17.0

func (av *AttributionView) IsEqual(other obj.Object) bool

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

func (*AttributionView) IsKind added in v0.17.0

func (av *AttributionView) IsKind(className string) bool

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

func (*AttributionView) MenuTitleForHideAction added in v0.17.0

func (av *AttributionView) MenuTitleForHideAction() string

MenuTitleForHideAction returns a custom localized string to be used as the title for the "Hide" menu item title. A nil value will result in the default title. SWAttributionView manages a context menu which includes the option for the user to hide the content for the SWHighlight represented by this view. Set a title to be used as the title for that context menu. An app that displays articles, for example, might set

func (*AttributionView) PreferredMaxLayoutWidth added in v0.17.0

func (av *AttributionView) PreferredMaxLayoutWidth() float64

PreferredMaxLayoutWidth returns for use when embedding this view in a SwiftUI view representable. When using this view in SwiftUI, this view will constrain its contents to this width. If you are not using SwiftUI this property should not be necessary, as SWAttributionView otherwise derives the maximum width from the frame or constraints you set.

func (*AttributionView) String added in v0.17.0

func (av *AttributionView) String() string

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

func (*AttributionView) SupplementalMenu added in v0.17.0

func (av *AttributionView) SupplementalMenu() obj.Object

SupplementalMenu returns the supplemental menu.

func (*AttributionView) WithBackgroundStyle added in v0.17.0

func (av *AttributionView) WithBackgroundStyle(backgroundStyle AttributionViewBackgroundStyle) *AttributionView

WithBackgroundStyle sets the background style of the child view that contains names and avatars.

func (*AttributionView) WithDisplayContext added in v0.17.0

func (av *AttributionView) WithDisplayContext(displayContext AttributionViewDisplayContext) *AttributionView

WithDisplayContext sets the context for the content the system displays with this view.

func (*AttributionView) WithHighlight added in v0.17.0

func (av *AttributionView) WithHighlight(highlight HighlightProvider) *AttributionView

WithHighlight sets the highlight you use to display this attribution.

func (*AttributionView) WithHorizontalAlignment added in v0.17.0

func (av *AttributionView) WithHorizontalAlignment(horizontalAlignment AttributionViewHorizontalAlignment) *AttributionView

WithHorizontalAlignment sets the horizontal alignment of the view.

func (*AttributionView) WithMenuTitleForHideAction added in v0.17.0

func (av *AttributionView) WithMenuTitleForHideAction(menuTitleForHideAction string) *AttributionView

WithMenuTitleForHideAction sets a localized string the system uses as a custom title for the hide menu item.

func (*AttributionView) WithPreferredMaxLayoutWidth added in v0.17.0

func (av *AttributionView) WithPreferredMaxLayoutWidth(preferredMaxLayoutWidth float64) *AttributionView

WithPreferredMaxLayoutWidth sets a width the system uses to constrain the view contents.

func (*AttributionView) WithSupplementalMenu added in v0.17.0

func (av *AttributionView) WithSupplementalMenu(supplementalMenu obj.Object) *AttributionView

WithSupplementalMenu sets a supplemental menu to augment the attribution view’s existing menu.

type AttributionViewBackgroundStyle added in v0.17.0

type AttributionViewBackgroundStyle int64

The background styling of the attribution view’s contents.

const (
	// The default background style, to be chosen by SWAttributionView
	AttributionViewBackgroundStyleDefault AttributionViewBackgroundStyle = 0
	// A non-material background color for the view's contents, best when placed over monochrome backgrounds
	AttributionViewBackgroundStyleColor AttributionViewBackgroundStyle = 1
	// A material background blur for the view's contents, best when placed over multicolored backgrounds
	AttributionViewBackgroundStyleMaterial AttributionViewBackgroundStyle = 2
)

func (AttributionViewBackgroundStyle) String added in v0.17.0

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

type AttributionViewDisplayContext added in v0.17.0

type AttributionViewDisplayContext int64

The context for the content that influences the ranking of this view’s highlight.

const (
	// The default context. Indicates that the attributed content shown along with this view is being offered to the user for consumption
	AttributionViewDisplayContextSummary AttributionViewDisplayContext = 0
	// Indicates that the attributed content shown along with this view is being actively consumed by the user
	AttributionViewDisplayContextDetail AttributionViewDisplayContext = 1
)

func (AttributionViewDisplayContext) String added in v0.17.0

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

type AttributionViewHorizontalAlignment added in v0.17.0

type AttributionViewHorizontalAlignment int64

The horizontal alignment of attribution view’s contents.

const (
	// The default horizontal alignment, to be chosen by SWAttributionView
	AttributionViewHorizontalAlignmentDefault AttributionViewHorizontalAlignment = 0
	// Horizontally align with the leading edge of the view (depends on the user interface layout direction)
	AttributionViewHorizontalAlignmentLeading AttributionViewHorizontalAlignment = 1
	// Horizontally align with the center of the view
	AttributionViewHorizontalAlignmentCenter AttributionViewHorizontalAlignment = 2
	// Horizontally align with the trailing edge of the view (depends on the user interface layout direction)
	AttributionViewHorizontalAlignmentTrailing AttributionViewHorizontalAlignment = 3
)

func (AttributionViewHorizontalAlignment) String added in v0.17.0

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

type CGLCPContextPriorityRequest

type CGLCPContextPriorityRequest int32
const (
	KCGLCPContextPriorityRequestHigh   CGLCPContextPriorityRequest = 0
	KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1
	KCGLCPContextPriorityRequestLow    CGLCPContextPriorityRequest = 2
)

func (CGLCPContextPriorityRequest) String

String returns the CGLCPContextPriorityRequest 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 CollaborationHighlight added in v0.17.0

type CollaborationHighlight struct {
	Highlight
}

CollaborationHighlight is an idiomatic wrapper over the Objective-C class SWCollaborationHighlight.

It embeds Highlight, promoting that type's methods.

A highlight object that represents an active collaboration.

func CollaborationHighlightFromID added in v0.17.0

func CollaborationHighlightFromID(id objc.ID) *CollaborationHighlight

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

func NewCollaborationHighlight added in v0.17.0

func NewCollaborationHighlight() *CollaborationHighlight

NewCollaborationHighlight creates a new CollaborationHighlight.

func (*CollaborationHighlight) CollaborationIdentifier added in v0.17.0

func (ch *CollaborationHighlight) CollaborationIdentifier() string

CollaborationIdentifier returns unique identifier as provided by the app hosting the collaboration This identifier is unique across platforms and shares

func (*CollaborationHighlight) ContentType added in v0.17.0

func (ch *CollaborationHighlight) ContentType() obj.Object

ContentType returns UTI type for this collaboration highlight

func (*CollaborationHighlight) CreationDate added in v0.17.0

func (ch *CollaborationHighlight) CreationDate() time.Time

CreationDate returns date when the file was created

func (*CollaborationHighlight) Title added in v0.17.0

func (ch *CollaborationHighlight) Title() string

Title returns title of the collaboration highlight Title of the collaboration if provided by the app hosting the collaboration

type CollaborationView added in v0.17.0

type CollaborationView struct {
	objref.Handle
}

CollaborationView is an idiomatic wrapper over the Objective-C class SWCollaborationView.

A view that contains the collaboration content and options.

func CollaborationViewFromID added in v0.17.0

func CollaborationViewFromID(id objc.ID) *CollaborationView

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

func NewCollaborationViewWithItemProvider added in v0.17.0

func NewCollaborationViewWithItemProvider(itemProvider obj.Object) *CollaborationView

NewCollaborationViewWithItemProvider creates and initializes a collaboration view.

func (*CollaborationView) ActiveParticipantCount added in v0.17.0

func (cv *CollaborationView) ActiveParticipantCount() int

ActiveParticipantCount returns the active participant count.

func (*CollaborationView) Description added in v0.17.0

func (cv *CollaborationView) Description() string

Description returns the object's -description text.

func (*CollaborationView) DismissPopover added in v0.17.0

func (cv *CollaborationView) DismissPopover(ctx context.Context) error

DismissPopover dismisses the popover.

DismissPopover blocks until the operation completes or ctx is cancelled.

func (*CollaborationView) HeaderImage added in v0.17.0

func (cv *CollaborationView) HeaderImage() obj.Object

HeaderImage returns the header image.

func (*CollaborationView) HeaderSubtitle added in v0.17.0

func (cv *CollaborationView) HeaderSubtitle() string

HeaderSubtitle returns the header subtitle.

func (*CollaborationView) HeaderTitle added in v0.17.0

func (cv *CollaborationView) HeaderTitle() string

HeaderTitle returns the header title.

func (*CollaborationView) IsEqual added in v0.17.0

func (cv *CollaborationView) IsEqual(other obj.Object) bool

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

func (*CollaborationView) IsKind added in v0.17.0

func (cv *CollaborationView) IsKind(className string) bool

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

func (*CollaborationView) ManageButtonTitle added in v0.17.0

func (cv *CollaborationView) ManageButtonTitle() string

ManageButtonTitle sets the title of the manage participants button in the collaboration popover to the given string, defaults to "Manage Share"

func (*CollaborationView) MenuFormRepresentation added in v0.17.0

func (cv *CollaborationView) MenuFormRepresentation() obj.Object

MenuFormRepresentation returns the menu form representation.

func (*CollaborationView) SetContentView added in v0.17.0

func (cv *CollaborationView) SetContentView(detailViewListContentView obj.Object)

SetContentView sets the content view.

func (*CollaborationView) SetShowManageButton added in v0.17.0

func (cv *CollaborationView) SetShowManageButton(showManageButton bool)

SetShowManageButton a Boolean value the system uses to show or hide the default manage-participants button in the collaboration popover.

func (*CollaborationView) String added in v0.17.0

func (cv *CollaborationView) String() string

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

func (*CollaborationView) WithActiveParticipantCount added in v0.17.0

func (cv *CollaborationView) WithActiveParticipantCount(activeParticipantCount int) *CollaborationView

WithActiveParticipantCount sets the number of participants in a collaboration.

func (*CollaborationView) WithDelegate added in v0.17.0

WithDelegate sets the delegate object for the collaboration view.

func (*CollaborationView) WithHeaderImage added in v0.17.0

func (cv *CollaborationView) WithHeaderImage(headerImage obj.Object) *CollaborationView

WithHeaderImage sets the image that the system displays in the header.

func (*CollaborationView) WithHeaderSubtitle added in v0.17.0

func (cv *CollaborationView) WithHeaderSubtitle(headerSubtitle string) *CollaborationView

WithHeaderSubtitle sets the subtitle that the system displays in the header.

func (*CollaborationView) WithHeaderTitle added in v0.17.0

func (cv *CollaborationView) WithHeaderTitle(headerTitle string) *CollaborationView

WithHeaderTitle sets the title that the system displays in the header.

func (*CollaborationView) WithManageButtonTitle added in v0.17.0

func (cv *CollaborationView) WithManageButtonTitle(manageButtonTitle string) *CollaborationView

WithManageButtonTitle sets the manage button title that the system displays in the header.

type CollaborationViewDelegate added in v0.17.0

type CollaborationViewDelegate interface {
}

CollaborationViewDelegate receives the callbacks of the Objective-C protocol SWCollaborationViewDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (CollaborationViewDelegate…Handler): implement the ones you need on the same value and the framework will call them too.

type CollaborationViewDelegateCollaborationViewDidDismissPopoverHandler added in v0.17.0

type CollaborationViewDelegateCollaborationViewDidDismissPopoverHandler interface {
	CollaborationViewDidDismissPopover(collaborationView *CollaborationView)
}

CollaborationViewDelegateCollaborationViewDidDismissPopoverHandler is the optional SWCollaborationViewDelegate method collaborationViewDidDismissPopover:. Implement it on a CollaborationViewDelegate value to receive that callback; a value without it is simply never sent one.

type CollaborationViewDelegateCollaborationViewShouldPresentPopoverHandler added in v0.17.0

type CollaborationViewDelegateCollaborationViewShouldPresentPopoverHandler interface {
	CollaborationViewShouldPresentPopover(collaborationView *CollaborationView) bool
}

CollaborationViewDelegateCollaborationViewShouldPresentPopoverHandler is the optional SWCollaborationViewDelegate method collaborationViewShouldPresentPopover:. Implement it on a CollaborationViewDelegate value to receive that callback; a value without it is simply never sent one.

type CollaborationViewDelegateCollaborationViewWillPresentPopoverHandler added in v0.17.0

type CollaborationViewDelegateCollaborationViewWillPresentPopoverHandler interface {
	CollaborationViewWillPresentPopover(collaborationView *CollaborationView)
}

CollaborationViewDelegateCollaborationViewWillPresentPopoverHandler is the optional SWCollaborationViewDelegate method collaborationViewWillPresentPopover:. Implement it on a CollaborationViewDelegate value to receive that callback; a value without it is simply never sent one.

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 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 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 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 Highlight added in v0.17.0

type Highlight struct {
	objref.Handle
}

Highlight is an idiomatic wrapper over the Objective-C class SWHighlight.

Highlight is an abstract base — you do not construct it directly. Construct one of CollaborationHighlight and pass it where a Highlight is accepted.

An object that represents a universal link to share by any number of contacts in one or more conversations.

func HighlightFromID added in v0.17.0

func HighlightFromID(id objc.ID) *Highlight

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

func (*Highlight) Description added in v0.17.0

func (h *Highlight) Description() string

Description returns the object's -description text.

func (*Highlight) Identifier added in v0.17.0

func (h *Highlight) Identifier() obj.Object

Identifier returns the unique identifier for this highlight

func (*Highlight) IsEqual added in v0.17.0

func (h *Highlight) IsEqual(other obj.Object) bool

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

func (*Highlight) IsKind added in v0.17.0

func (h *Highlight) IsKind(className string) bool

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

func (*Highlight) String added in v0.17.0

func (h *Highlight) String() string

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

func (*Highlight) URL added in v0.17.0

func (h *Highlight) URL() string

URL returns the surfaced content URL

type HighlightCenter added in v0.17.0

type HighlightCenter struct {
	objref.Handle
}

HighlightCenter is an idiomatic wrapper over the Objective-C class SWHighlightCenter.

An object that contains a priority-ordered list of universal links to share with the current user.

func HighlightCenterFromID added in v0.17.0

func HighlightCenterFromID(id objc.ID) *HighlightCenter

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

func NewHighlightCenter added in v0.17.0

func NewHighlightCenter() *HighlightCenter

NewHighlightCenter creates a new HighlightCenter.

func (*HighlightCenter) ClearNoticesForHighlight added in v0.17.0

func (hc *HighlightCenter) ClearNoticesForHighlight(highlight *CollaborationHighlight)

ClearNoticesForHighlight clears the notices for a specified collaboration highlight.

func (*HighlightCenter) CollaborationHighlightForIdentifier added in v0.17.0

func (hc *HighlightCenter) CollaborationHighlightForIdentifier(collaborationIdentifier obj.Object) (result *CollaborationHighlight, err error)

CollaborationHighlightForIdentifier returns a collaboration highlight for a specified collaboration identifier.

func (*HighlightCenter) Description added in v0.17.0

func (hc *HighlightCenter) Description() string

Description returns the object's -description text.

func (*HighlightCenter) GetCollaborationHighlightForURL added in v0.17.0

func (hc *HighlightCenter) GetCollaborationHighlightForURL(ctx context.Context, url string) (result *CollaborationHighlight, err error)

GetCollaborationHighlightForURL returns a collaboration highlight for a specified URL.

GetCollaborationHighlightForURL blocks until the operation completes or ctx is cancelled.

func (*HighlightCenter) GetHighlightForURL added in v0.17.0

func (hc *HighlightCenter) GetHighlightForURL(ctx context.Context, url string) (result *Highlight, err error)

GetHighlightForURL returns a highlight for a specified URL.

GetHighlightForURL blocks until the operation completes or ctx is cancelled.

func (*HighlightCenter) GetSignedIdentityProofForCollaborationHighlightUsingData added in v0.17.0

func (hc *HighlightCenter) GetSignedIdentityProofForCollaborationHighlightUsingData(ctx context.Context, collaborationHighlight *CollaborationHighlight, data []byte) (result obj.Object, err error)

GetSignedIdentityProofForCollaborationHighlightUsingData signs passed-in data with the local device’s private key.

GetSignedIdentityProofForCollaborationHighlightUsingData blocks until the operation completes or ctx is cancelled.

func (*HighlightCenter) Highlights added in v0.17.0

func (hc *HighlightCenter) Highlights() []*Highlight

Highlights returns the highlights.

Highlights returns the collection as a Go slice.

func (*HighlightCenter) IsEqual added in v0.17.0

func (hc *HighlightCenter) IsEqual(other obj.Object) bool

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

func (*HighlightCenter) IsKind added in v0.17.0

func (hc *HighlightCenter) IsKind(className string) bool

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

func (*HighlightCenter) String added in v0.17.0

func (hc *HighlightCenter) String() string

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

func (*HighlightCenter) WithDelegate added in v0.17.0

func (hc *HighlightCenter) WithDelegate(delegate HighlightCenterDelegate) *HighlightCenter

WithDelegate sets the delegate object for the highlight center.

type HighlightCenterDelegate added in v0.17.0

type HighlightCenterDelegate interface {
	// HighlightCenterHighlightsDidChange notifies the delegate that the list, or rank order of surfaced highlights has changed. When this method is called, it is the app's responsibility to update any displayed highlights to match the updated list. Only the highlights provided should have an indication of having been shared. If no highlights are provided in the list, any links previously indicated as shared should be removed. The array is a priority-ordered list, where the first element in the array is deemed to be most relevant to the user at the time this method is called. The list of provided highlights will be empty if there are no highlights, or when the user has not given permission for a particular app to display highlights.
	HighlightCenterHighlightsDidChange(highlightCenter *HighlightCenter)
}

HighlightCenterDelegate receives the callbacks of the Objective-C protocol SWHighlightCenterDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (HighlightCenterDelegate…Handler): implement the ones you need on the same value and the framework will call them too.

type HighlightCenterErrorCode added in v0.17.0

type HighlightCenterErrorCode int64

The error codes for the highlight center.

const (
	// Reports no error.
	HighlightCenterErrorCodeNoError HighlightCenterErrorCode = 0
	// Reports an internal error.
	HighlightCenterErrorCodeInternalError HighlightCenterErrorCode = 1
	// Reports an invalid URL error.
	HighlightCenterErrorCodeInvalidURL HighlightCenterErrorCode = 2
	// Reports and access denied error.
	HighlightCenterErrorCodeAccessDenied HighlightCenterErrorCode = 3
)

func (HighlightCenterErrorCode) String added in v0.17.0

func (e HighlightCenterErrorCode) String() string

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

type HighlightChangeEvent added in v0.17.0

type HighlightChangeEvent struct {
	objref.Handle
}

HighlightChangeEvent is an idiomatic wrapper over the Objective-C class SWHighlightChangeEvent.

An object that represents change activity for a highlight.

func HighlightChangeEventFromID added in v0.17.0

func HighlightChangeEventFromID(id objc.ID) *HighlightChangeEvent

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

func NewHighlightChangeEventWithHighlightTrigger added in v0.17.0

func NewHighlightChangeEventWithHighlightTrigger(highlight *Highlight, trigger HighlightChangeEventTrigger) *HighlightChangeEvent

NewHighlightChangeEventWithHighlightTrigger creates and initializes a change event.

func (*HighlightChangeEvent) ChangeEventTrigger added in v0.17.0

func (hce *HighlightChangeEvent) ChangeEventTrigger() HighlightChangeEventTrigger

ChangeEventTrigger returns the change event trigger.

func (*HighlightChangeEvent) Description added in v0.17.0

func (hce *HighlightChangeEvent) Description() string

Description returns the object's -description text.

func (*HighlightChangeEvent) HighlightURL added in v0.17.0

func (hce *HighlightChangeEvent) HighlightURL() string

HighlightURL returns the highlight URL.

func (*HighlightChangeEvent) IsEqual added in v0.17.0

func (hce *HighlightChangeEvent) IsEqual(other obj.Object) bool

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

func (*HighlightChangeEvent) IsKind added in v0.17.0

func (hce *HighlightChangeEvent) IsKind(className string) bool

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

func (*HighlightChangeEvent) String added in v0.17.0

func (hce *HighlightChangeEvent) String() string

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

type HighlightChangeEventTrigger added in v0.17.0

type HighlightChangeEventTrigger int64

The type of change event for the highlight

const (
	// Signifies a highlight edit.
	HighlightChangeEventTriggerEdit HighlightChangeEventTrigger = 1
	// Signifies a highlight comment.
	HighlightChangeEventTriggerComment HighlightChangeEventTrigger = 2
)

func (HighlightChangeEventTrigger) String added in v0.17.0

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

type HighlightEvent added in v0.17.0

type HighlightEvent interface {
	HighlightURL() string
}

HighlightEvent is the Go form of the Objective-C protocol SWHighlightEvent.

type HighlightMembershipEvent added in v0.17.0

type HighlightMembershipEvent struct {
	objref.Handle
}

HighlightMembershipEvent is an idiomatic wrapper over the Objective-C class SWHighlightMembershipEvent.

An object that represents membership activity for a highlight.

func HighlightMembershipEventFromID added in v0.17.0

func HighlightMembershipEventFromID(id objc.ID) *HighlightMembershipEvent

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

func NewHighlightMembershipEventWithHighlightTrigger added in v0.17.0

func NewHighlightMembershipEventWithHighlightTrigger(highlight *Highlight, trigger HighlightMembershipEventTrigger) *HighlightMembershipEvent

NewHighlightMembershipEventWithHighlightTrigger creates and initializes a membership event.

func (*HighlightMembershipEvent) Description added in v0.17.0

func (hme *HighlightMembershipEvent) Description() string

Description returns the object's -description text.

func (*HighlightMembershipEvent) IsEqual added in v0.17.0

func (hme *HighlightMembershipEvent) IsEqual(other obj.Object) bool

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

func (*HighlightMembershipEvent) IsKind added in v0.17.0

func (hme *HighlightMembershipEvent) IsKind(className string) bool

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

func (*HighlightMembershipEvent) MembershipEventTrigger added in v0.17.0

func (hme *HighlightMembershipEvent) MembershipEventTrigger() HighlightMembershipEventTrigger

MembershipEventTrigger returns the type of membership event for the highlight.

func (*HighlightMembershipEvent) String added in v0.17.0

func (hme *HighlightMembershipEvent) String() string

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

type HighlightMembershipEventTrigger added in v0.17.0

type HighlightMembershipEventTrigger int64

The type of membership event for the highlight.

const (
	// Signifies the system added a collaborator.
	HighlightMembershipEventTriggerAddedCollaborator HighlightMembershipEventTrigger = 1
	// Signifies the system removed a collaborator.
	HighlightMembershipEventTriggerRemovedCollaborator HighlightMembershipEventTrigger = 2
)

func (HighlightMembershipEventTrigger) String added in v0.17.0

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

type HighlightMentionEvent added in v0.17.0

type HighlightMentionEvent struct {
	objref.Handle
}

HighlightMentionEvent is an idiomatic wrapper over the Objective-C class SWHighlightMentionEvent.

An object that represents mention activity for a highlight.

func HighlightMentionEventFromID added in v0.17.0

func HighlightMentionEventFromID(id objc.ID) *HighlightMentionEvent

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

func NewHighlightMentionEventWithHighlightMentionedPersonCloudKitShareHandle added in v0.17.0

func NewHighlightMentionEventWithHighlightMentionedPersonCloudKitShareHandle(highlight *Highlight, handle string) *HighlightMentionEvent

NewHighlightMentionEventWithHighlightMentionedPersonCloudKitShareHandle creates and initializes a mention event.

func NewHighlightMentionEventWithHighlightMentionedPersonIdentity added in v0.17.0

func NewHighlightMentionEventWithHighlightMentionedPersonIdentity(highlight *Highlight, identity obj.Object) *HighlightMentionEvent

NewHighlightMentionEventWithHighlightMentionedPersonIdentity creates and initializes a mention event.

func (*HighlightMentionEvent) Description added in v0.17.0

func (hme *HighlightMentionEvent) Description() string

Description returns the object's -description text.

func (*HighlightMentionEvent) IsEqual added in v0.17.0

func (hme *HighlightMentionEvent) IsEqual(other obj.Object) bool

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

func (*HighlightMentionEvent) IsKind added in v0.17.0

func (hme *HighlightMentionEvent) IsKind(className string) bool

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

func (*HighlightMentionEvent) MentionedPersonHandle added in v0.17.0

func (hme *HighlightMentionEvent) MentionedPersonHandle() string

MentionedPersonHandle returns the person being mentioned by the sender.

func (*HighlightMentionEvent) String added in v0.17.0

func (hme *HighlightMentionEvent) String() string

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

type HighlightPersistenceEvent added in v0.17.0

type HighlightPersistenceEvent struct {
	objref.Handle
}

HighlightPersistenceEvent is an idiomatic wrapper over the Objective-C class SWHighlightPersistenceEvent.

An object that represents persistence activity for a highlight.

func HighlightPersistenceEventFromID added in v0.17.0

func HighlightPersistenceEventFromID(id objc.ID) *HighlightPersistenceEvent

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

func NewHighlightPersistenceEventWithHighlightTrigger added in v0.17.0

func NewHighlightPersistenceEventWithHighlightTrigger(highlight *Highlight, trigger HighlightPersistenceEventTrigger) *HighlightPersistenceEvent

NewHighlightPersistenceEventWithHighlightTrigger creates and initializes a persistence event.

func (*HighlightPersistenceEvent) Description added in v0.17.0

func (hpe *HighlightPersistenceEvent) Description() string

Description returns the object's -description text.

func (*HighlightPersistenceEvent) IsEqual added in v0.17.0

func (hpe *HighlightPersistenceEvent) IsEqual(other obj.Object) bool

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

func (*HighlightPersistenceEvent) IsKind added in v0.17.0

func (hpe *HighlightPersistenceEvent) IsKind(className string) bool

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

func (*HighlightPersistenceEvent) PersistenceEventTrigger added in v0.17.0

func (hpe *HighlightPersistenceEvent) PersistenceEventTrigger() HighlightPersistenceEventTrigger

PersistenceEventTrigger returns the persistence event trigger.

func (*HighlightPersistenceEvent) String added in v0.17.0

func (hpe *HighlightPersistenceEvent) String() string

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

type HighlightPersistenceEventTrigger added in v0.17.0

type HighlightPersistenceEventTrigger int64

Signifies the type of persistence event trigger.

const (
	// Signifies a creation event.
	HighlightPersistenceEventTriggerCreated HighlightPersistenceEventTrigger = 1
	// Signifies a deletion event.
	HighlightPersistenceEventTriggerDeleted HighlightPersistenceEventTrigger = 2
	// Signifies a rename event.
	HighlightPersistenceEventTriggerRenamed HighlightPersistenceEventTrigger = 3
	// Signifies a move event.
	HighlightPersistenceEventTriggerMoved HighlightPersistenceEventTrigger = 4
)

func (HighlightPersistenceEventTrigger) String added in v0.17.0

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

type HighlightProvider added in v0.17.0

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

HighlightProvider is accepted wherever a SWHighlight (or one of its subclasses) is expected.

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 OSUnfairLockFlags added in v0.17.0

type OSUnfairLockFlags uint32

Bitmask — values may be combined with |.

const (
	OSUnfairLockFlagsNone         OSUnfairLockFlags = 0
	OSUnfairLockFlagsAdaptiveSpin OSUnfairLockFlags = 262144
)

func (OSUnfairLockFlags) String added in v0.17.0

func (e OSUnfairLockFlags) String() string

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

type PMPageToPaperMappingType

type PMPageToPaperMappingType int32
const (
	KPMPageToPaperMappingNone       PMPageToPaperMappingType = 1
	KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2
)

func (PMPageToPaperMappingType) String

func (e PMPageToPaperMappingType) String() string

String returns the PMPageToPaperMappingType 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 RemoveParticipantAlert added in v0.17.0

type RemoveParticipantAlert struct {
	objref.Handle
}

RemoveParticipantAlert is an idiomatic wrapper over the Objective-C class SWRemoveParticipantAlert.

An alert that prompts the user to remove a participant from a Messages group.

func NewRemoveParticipantAlert added in v0.17.0

func NewRemoveParticipantAlert() *RemoveParticipantAlert

NewRemoveParticipantAlert creates a new RemoveParticipantAlert.

func RemoveParticipantAlertFromID added in v0.17.0

func RemoveParticipantAlertFromID(id objc.ID) *RemoveParticipantAlert

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

func (*RemoveParticipantAlert) Description added in v0.17.0

func (rpa *RemoveParticipantAlert) Description() string

Description returns the object's -description text.

func (*RemoveParticipantAlert) IsEqual added in v0.17.0

func (rpa *RemoveParticipantAlert) IsEqual(other obj.Object) bool

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

func (*RemoveParticipantAlert) IsKind added in v0.17.0

func (rpa *RemoveParticipantAlert) IsKind(className string) bool

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

func (*RemoveParticipantAlert) String added in v0.17.0

func (rpa *RemoveParticipantAlert) String() string

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

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