Documentation
¶
Overview ¶
Package externalaccessory provides a fluent Go API over the macOS ExternalAccessory 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.
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.
Index ¶
- Constants
- Variables
- func EAAccessoryDidConnectNotification() obj.Object
- func EAAccessoryDidDisconnectNotification() obj.Object
- func EAAccessoryKey() obj.Object
- func EAAccessorySelectedKey() obj.Object
- func EABluetoothAccessoryPickerErrorDomain() obj.Object
- type Accessory
- func (a *Accessory) ConnectionID() int
- func (a *Accessory) Delegate() unsafe.Pointer
- func (a *Accessory) Description() string
- func (a *Accessory) DockType() string
- func (a *Accessory) FirmwareRevision() unsafe.Pointer
- func (a *Accessory) HardwareRevision() unsafe.Pointer
- func (a *Accessory) IsConnected() bool
- func (a *Accessory) IsEqual(other obj.Object) bool
- func (a *Accessory) IsKind(className string) bool
- func (a *Accessory) Manufacturer() unsafe.Pointer
- func (a *Accessory) ModelNumber() unsafe.Pointer
- func (a *Accessory) Name() unsafe.Pointer
- func (a *Accessory) ProtocolStrings() unsafe.Pointer
- func (a *Accessory) SerialNumber() unsafe.Pointer
- func (a *Accessory) String() string
- func (a *Accessory) WithDelegate(delegate unsafe.Pointer) *Accessory
- type AccessoryDelegate
- type AccessoryDelegateAccessoryDidDisconnectHandler
- type AccessoryManager
- type BluetoothAccessoryPickerErrorCode
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type FilesecProperty
- type Flag
- type Idtype
- type IpcInfoObjectType
- type LaunchDataType
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type OSClockid
- type Perm
- type PtrauthKey
- type QosClass
- type Session
- func (s *Session) Accessory() unsafe.Pointer
- func (s *Session) Description() string
- func (s *Session) InputStream() unsafe.Pointer
- func (s *Session) IsEqual(other obj.Object) bool
- func (s *Session) IsKind(className string) bool
- func (s *Session) OutputStream() unsafe.Pointer
- func (s *Session) ProtocolString() unsafe.Pointer
- func (s *Session) String() string
- type Tag
- type Type
- type VirtualMemoryGuardExceptionCode
- type WiFiUnconfiguredAccessoryBrowserDelegate
- type WiFiUnconfiguredAccessoryBrowserState
- type WiFiUnconfiguredAccessoryConfigurationStatus
- type WiFiUnconfiguredAccessoryProperties
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
const (
ConnectionIDNone = 0
)
Variables ¶
var ErrEABluetoothAccessoryPickerAlreadyConnected = errkit.New("EABluetoothAccessoryPickerErrorDomain", 0)
ErrEABluetoothAccessoryPickerAlreadyConnected matches the ExternalAccessory error EABluetoothAccessoryPickerAlreadyConnected.
var ErrEABluetoothAccessoryPickerResultCancelled = errkit.New("EABluetoothAccessoryPickerErrorDomain", 2)
ErrEABluetoothAccessoryPickerResultCancelled matches the ExternalAccessory error EABluetoothAccessoryPickerResultCancelled.
var ErrEABluetoothAccessoryPickerResultFailed = errkit.New("EABluetoothAccessoryPickerErrorDomain", 3)
ErrEABluetoothAccessoryPickerResultFailed matches the ExternalAccessory error EABluetoothAccessoryPickerResultFailed.
var ErrEABluetoothAccessoryPickerResultNotFound = errkit.New("EABluetoothAccessoryPickerErrorDomain", 1)
ErrEABluetoothAccessoryPickerResultNotFound matches the ExternalAccessory error EABluetoothAccessoryPickerResultNotFound.
Functions ¶
func EAAccessoryDidConnectNotification ¶
EAAccessoryDidConnectNotification returns the string constant EAAccessoryDidConnectNotification, for use as a dictionary key or argument.
func EAAccessoryDidDisconnectNotification ¶
EAAccessoryDidDisconnectNotification returns the string constant EAAccessoryDidDisconnectNotification, for use as a dictionary key or argument.
func EAAccessoryKey ¶
EAAccessoryKey returns the string constant EAAccessoryKey, for use as a dictionary key or argument.
func EAAccessorySelectedKey ¶
EAAccessorySelectedKey returns the string constant EAAccessorySelectedKey, for use as a dictionary key or argument.
func EABluetoothAccessoryPickerErrorDomain ¶
EABluetoothAccessoryPickerErrorDomain returns the string constant EABluetoothAccessoryPickerErrorDomain, for use as a dictionary key or argument.
Types ¶
type Accessory ¶ added in v0.17.0
Accessory is an idiomatic wrapper over the Objective-C class EAAccessory.
An object that contains information about a single, connected hardware accessory.
func AccessoryFromID ¶ added in v0.17.0
AccessoryFromID adopts an existing Objective-C object as a Accessory (nil for 0), retaining it and registering a release finalizer.
func NewAccessory ¶ added in v0.17.0
func NewAccessory() *Accessory
NewAccessory creates a new Accessory.
func (*Accessory) ConnectionID ¶ added in v0.17.0
ConnectionID returns the connection ID.
func (*Accessory) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Accessory) FirmwareRevision ¶ added in v0.18.0
FirmwareRevision returns the firmware revision.
func (*Accessory) HardwareRevision ¶ added in v0.18.0
HardwareRevision returns the hardware revision.
func (*Accessory) IsConnected ¶ added in v0.17.0
IsConnected reports whether the object is connected.
func (*Accessory) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Accessory) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Accessory) Manufacturer ¶ added in v0.18.0
Manufacturer returns the manufacturer.
func (*Accessory) ModelNumber ¶ added in v0.18.0
ModelNumber returns the model number.
func (*Accessory) ProtocolStrings ¶ added in v0.18.0
ProtocolStrings returns the protocol strings.
func (*Accessory) SerialNumber ¶ added in v0.18.0
SerialNumber returns the serial number.
type AccessoryDelegate ¶ added in v0.17.0
type AccessoryDelegate interface {
}
AccessoryDelegate receives the callbacks of the Objective-C protocol EAAccessoryDelegate. 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 (AccessoryDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type AccessoryDelegateAccessoryDidDisconnectHandler ¶ added in v0.17.0
type AccessoryDelegateAccessoryDidDisconnectHandler interface {
AccessoryDidDisconnect(accessory *Accessory)
}
AccessoryDelegateAccessoryDidDisconnectHandler is the optional EAAccessoryDelegate method accessoryDidDisconnect:. Implement it on a AccessoryDelegate value to receive that callback; a value without it is simply never sent one.
type AccessoryManager ¶ added in v0.17.0
AccessoryManager is an idiomatic wrapper over the Objective-C class EAAccessoryManager.
The object you use to identify connected accessories, and begin delivery of connection and disconnection notifications.
func AccessoryManagerFromID ¶ added in v0.17.0
func AccessoryManagerFromID(id objc.ID) *AccessoryManager
AccessoryManagerFromID adopts an existing Objective-C object as a AccessoryManager (nil for 0), retaining it and registering a release finalizer.
func NewAccessoryManager ¶ added in v0.17.0
func NewAccessoryManager() *AccessoryManager
NewAccessoryManager creates a new AccessoryManager.
func SharedAccessoryManager ¶ added in v0.17.0
func SharedAccessoryManager() *AccessoryManager
SharedAccessoryManager returns the shared accessory manager object for the iOS-based device.
func (*AccessoryManager) ConnectedAccessories ¶ added in v0.18.0
func (am *AccessoryManager) ConnectedAccessories() unsafe.Pointer
ConnectedAccessories returns the connected accessories.
func (*AccessoryManager) Description ¶ added in v0.17.0
func (am *AccessoryManager) Description() string
Description returns the object's -description text.
func (*AccessoryManager) IsEqual ¶ added in v0.17.0
func (am *AccessoryManager) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*AccessoryManager) IsKind ¶ added in v0.17.0
func (am *AccessoryManager) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*AccessoryManager) String ¶ added in v0.17.0
func (am *AccessoryManager) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type BluetoothAccessoryPickerErrorCode ¶ added in v0.17.0
type BluetoothAccessoryPickerErrorCode int64
The error codes that may be passed in an error object for the Bluetooth picker completion block.
const ( BluetoothAccessoryPickerAlreadyConnected BluetoothAccessoryPickerErrorCode = 0 BluetoothAccessoryPickerResultNotFound BluetoothAccessoryPickerErrorCode = 1 BluetoothAccessoryPickerResultCancelled BluetoothAccessoryPickerErrorCode = 2 BluetoothAccessoryPickerResultFailed BluetoothAccessoryPickerErrorCode = 3 )
func (BluetoothAccessoryPickerErrorCode) String ¶ added in v0.17.0
func (e BluetoothAccessoryPickerErrorCode) String() string
String returns the BluetoothAccessoryPickerErrorCode 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
func (e DispatchAutoreleaseFrequency) String() string
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 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 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 )
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 )
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 Session ¶ added in v0.17.0
Session is an idiomatic wrapper over the Objective-C class EASession.
The object you use to manage communications between your app and a connected hardware accessory.
func NewSessionWithAccessoryForProtocol ¶ added in v0.17.0
NewSessionWithAccessoryForProtocol initializes the session for the specified accessory and protocol.
func SessionFromID ¶ added in v0.17.0
SessionFromID adopts an existing Objective-C object as a Session (nil for 0), retaining it and registering a release finalizer.
func (*Session) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Session) InputStream ¶ added in v0.18.0
InputStream returns the input stream.
func (*Session) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Session) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Session) OutputStream ¶ added in v0.18.0
OutputStream returns the output stream.
func (*Session) ProtocolString ¶ added in v0.18.0
ProtocolString returns the protocol string.
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
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.
type WiFiUnconfiguredAccessoryBrowserDelegate ¶ added in v0.17.0
type WiFiUnconfiguredAccessoryBrowserDelegate interface {
}
WiFiUnconfiguredAccessoryBrowserDelegate is the Go form of the Objective-C protocol EAWiFiUnconfiguredAccessoryBrowserDelegate.
type WiFiUnconfiguredAccessoryBrowserState ¶ added in v0.17.0
type WiFiUnconfiguredAccessoryBrowserState int64
The possible states of an accessory browser.
const ( WiFiUnconfiguredAccessoryBrowserStateWiFiUnavailable WiFiUnconfiguredAccessoryBrowserState = 0 // The browser is not actively searching for unconfigured accessories. WiFiUnconfiguredAccessoryBrowserStateStopped WiFiUnconfiguredAccessoryBrowserState = 1 // The browser is actively searching for unconfigured accessory. WiFiUnconfiguredAccessoryBrowserStateSearching WiFiUnconfiguredAccessoryBrowserState = 2 // The browser is actively configuring an accessory. WiFiUnconfiguredAccessoryBrowserStateConfiguring WiFiUnconfiguredAccessoryBrowserState = 3 )
func (WiFiUnconfiguredAccessoryBrowserState) String ¶ added in v0.17.0
func (e WiFiUnconfiguredAccessoryBrowserState) String() string
String returns the WiFiUnconfiguredAccessoryBrowserState constant's name, or its numeric form when the value is not a known constant.
type WiFiUnconfiguredAccessoryConfigurationStatus ¶ added in v0.17.0
type WiFiUnconfiguredAccessoryConfigurationStatus int64
Values that represent the state of the configuration process for an EAWiFiUnconfiguredAccessory object.
const ( // The configuration of the accessory succeeded. WiFiUnconfiguredAccessoryConfigurationStatusSuccess WiFiUnconfiguredAccessoryConfigurationStatus = 0 // The user cancelled the configuration process. WiFiUnconfiguredAccessoryConfigurationStatusUserCancelledConfiguration WiFiUnconfiguredAccessoryConfigurationStatus = 1 // The configuration failed. WiFiUnconfiguredAccessoryConfigurationStatusFailed WiFiUnconfiguredAccessoryConfigurationStatus = 2 )
func (WiFiUnconfiguredAccessoryConfigurationStatus) String ¶ added in v0.17.0
func (e WiFiUnconfiguredAccessoryConfigurationStatus) String() string
String returns the WiFiUnconfiguredAccessoryConfigurationStatus constant's name, or its numeric form when the value is not a known constant.
type WiFiUnconfiguredAccessoryProperties ¶ added in v0.17.0
type WiFiUnconfiguredAccessoryProperties uint64
Options that can be combined using the C bitwise OR operator to represent the properties of an unconfigured accessory. Bitmask — values may be combined with |.
const ( // The accessory indicates that it supports AirPlay. WiFiUnconfiguredAccessoryPropertySupportsAirPlay WiFiUnconfiguredAccessoryProperties = 1 // The accessory indicates that it supports AirPrint. WiFiUnconfiguredAccessoryPropertySupportsAirPrint WiFiUnconfiguredAccessoryProperties = 2 // The accessory indicates that it supports HomeKit. WiFiUnconfiguredAccessoryPropertySupportsHomeKit WiFiUnconfiguredAccessoryProperties = 4 )
func (WiFiUnconfiguredAccessoryProperties) String ¶ added in v0.17.0
func (e WiFiUnconfiguredAccessoryProperties) String() string
String returns the WiFiUnconfiguredAccessoryProperties 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.
Source Files
¶
- EAAccessoryDelegate_delegate_generated.go
- EAAccessoryManager_generated.go
- EAAccessory_generated.go
- EASession_generated.go
- doc.go
- externalaccessory_classmethods_generated.go
- externalaccessory_constants_generated.go
- externalaccessory_enums_generated.go
- externalaccessory_errors_generated.go
- externalaccessory_protocols_generated.go
- externalaccessory_runtime_generated.go