Documentation
¶
Overview ¶
Package arkit provides a fluent Go API over the macOS ARKit 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.
Index ¶
- func ArAnchorGetIdentifier(anchor obj.Object) (outIdentifier uint8)
- func ArAnchorGetOriginFromAnchorTransform(anchor obj.Object) unsafe.Pointer
- func ArAnchorGetTimestamp(anchor obj.Object) float64
- func ArAuthorizationResultsEnumerateResults(authorizationResults obj.Object, ...)
- func ArAuthorizationResultsEnumerateResultsF(authorizationResults obj.Object, context_ unsafe.Pointer, ...)
- func ArAuthorizationResultsGetCount(authorizationResults obj.Object) int
- func ArDataProvidersAddDataProvider(dataProviders obj.Object, dataProviderToAdd obj.Object)
- func ArDataProvidersAddDataProviders(dataProviders obj.Object, dataProvidersToAdd obj.Object)
- func ArDataProvidersCreate() *foundation.Object
- func ArDataProvidersEnumerateDataProviders(dataProviders obj.Object, dataProvidersEnumerator func(obj.Object) bool)
- func ArDataProvidersEnumerateDataProvidersF(dataProviders obj.Object, context_ unsafe.Pointer, ...)
- func ArDataProvidersGetCount(dataProviders obj.Object) int
- func ArDataProvidersRemoveDataProvider(dataProviders obj.Object, dataProviderToRemove obj.Object)
- func ArDataProvidersRemoveDataProviders(dataProviders obj.Object, dataProvidersToRemove obj.Object)
- func ArDeviceAnchorCreate() *foundation.Object
- func ArDeviceAnchorGetIdentifier(anchor obj.Object) (outIdentifier uint8)
- func ArDeviceAnchorGetOriginFromAnchorTransform(anchor obj.Object) unsafe.Pointer
- func ArDeviceAnchorGetOriginFromAnchorTransformWithCorrection(anchor obj.Object, transformCorrection TransformCorrection) unsafe.Pointer
- func ArDeviceAnchorGetTimestamp(anchor obj.Object) float64
- func ArDeviceAnchorIsTracked(anchor obj.Object) bool
- func ArErrorCopyCfError(err obj.Object) corefoundation.CFErrorRef
- func ArErrorGetErrorCode(err obj.Object) int
- func ArRelease(object unsafe.Pointer)
- func ArRetain(object unsafe.Pointer) unsafe.Pointer
- func ArSessionCopyDataProviders(session obj.Object) *foundation.Object
- func ArSessionCreateWithDevice(device obj.Object) *foundation.Object
- func ArSessionRun(session obj.Object, dataProviders obj.Object)
- func ArSessionSetDataProviderStateChangeHandler(session obj.Object, queue dispatch.Queue, ...)
- func ArSessionSetDataProviderStateChangeHandlerF(session obj.Object, queue dispatch.Queue, context_ unsafe.Pointer, ...)
- func ArSessionStop(session obj.Object)
- func ArTrackableAnchorIsTracked(anchor obj.Object) bool
- func ArWorldTrackingConfigurationCreate() *foundation.Object
- func ArWorldTrackingProviderCreate(worldTrackingConfiguration obj.Object) *foundation.Object
- func ArWorldTrackingProviderIsSupported() bool
- func Ar_error_domain() obj.Object
- type ACLEntryID
- type ACLFlag
- type ACLPerm
- type ACLTag
- type ACLType
- type AuthorizationStatus
- type AuthorizationType
- type Clockid
- type DataProviderState
- type DeviceAnchorQueryStatus
- type DeviceAnchorTrackingState
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EvCmd
- type FilesecProperty
- type GCDevice
- type HandAnchorQueryStatus
- type HandChirality
- type HandFidelity
- type HandSkeletonJointName
- type Idtype
- type IpcInfoObjectType
- type LaunchDataType
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type NXMouseButton
- type OSClockid
- type OS_ar_anchor
- type OS_ar_authorization_result
- type OS_ar_authorization_results
- type OS_ar_data
- type OS_ar_data_provider
- type OS_ar_data_providers
- type OS_ar_device
- type OS_ar_device_anchor
- type OS_ar_error
- type OS_ar_hand_anchor
- type OS_ar_hand_skeleton
- type OS_ar_hand_tracking_provider
- type OS_ar_session
- type OS_ar_skeleton_joint
- type OS_ar_strings
- type OS_ar_trackable_anchor
- type OS_ar_world_tracking_configuration
- type OS_ar_world_tracking_provider
- type PMPageToPaperMappingType
- type PtrauthKey
- type QosClass
- type SessionErrorCode
- type TaskSharedRegionStubs
- type TransformCorrection
- type VirtualMemoryGuardExceptionCode
- type WorldAnchorSharingAvailability
- type WorldTrackingErrorCode
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArAnchorGetIdentifier ¶
ArAnchorGetIdentifier calls the ARKit framework function ar_anchor_get_identifier.
func ArAnchorGetOriginFromAnchorTransform ¶
ArAnchorGetOriginFromAnchorTransform calls the ARKit framework function ar_anchor_get_origin_from_anchor_transform.
func ArAnchorGetTimestamp ¶
ArAnchorGetTimestamp calls the ARKit framework function ar_anchor_get_timestamp.
func ArAuthorizationResultsEnumerateResults ¶
func ArAuthorizationResultsEnumerateResults(authorizationResults obj.Object, authorizationResultsEnumerator func(obj.Object) bool)
ArAuthorizationResultsEnumerateResults calls the ARKit framework function ar_authorization_results_enumerate_results.
func ArAuthorizationResultsEnumerateResultsF ¶
func ArAuthorizationResultsEnumerateResultsF(authorizationResults obj.Object, context_ unsafe.Pointer, authorizationResultsEnumeratorFunction unsafe.Pointer)
ArAuthorizationResultsEnumerateResultsF calls the ARKit framework function ar_authorization_results_enumerate_results_f.
func ArAuthorizationResultsGetCount ¶
ArAuthorizationResultsGetCount calls the ARKit framework function ar_authorization_results_get_count.
func ArDataProvidersAddDataProvider ¶
ArDataProvidersAddDataProvider calls the ARKit framework function ar_data_providers_add_data_provider.
func ArDataProvidersAddDataProviders ¶
ArDataProvidersAddDataProviders calls the ARKit framework function ar_data_providers_add_data_providers.
func ArDataProvidersCreate ¶
func ArDataProvidersCreate() *foundation.Object
ArDataProvidersCreate calls the ARKit framework function ar_data_providers_create.
func ArDataProvidersEnumerateDataProviders ¶
func ArDataProvidersEnumerateDataProviders(dataProviders obj.Object, dataProvidersEnumerator func(obj.Object) bool)
ArDataProvidersEnumerateDataProviders calls the ARKit framework function ar_data_providers_enumerate_data_providers.
func ArDataProvidersEnumerateDataProvidersF ¶
func ArDataProvidersEnumerateDataProvidersF(dataProviders obj.Object, context_ unsafe.Pointer, dataProvidersEnumeratorFunction unsafe.Pointer)
ArDataProvidersEnumerateDataProvidersF calls the ARKit framework function ar_data_providers_enumerate_data_providers_f.
func ArDataProvidersGetCount ¶
ArDataProvidersGetCount calls the ARKit framework function ar_data_providers_get_count.
func ArDataProvidersRemoveDataProvider ¶
ArDataProvidersRemoveDataProvider calls the ARKit framework function ar_data_providers_remove_data_provider.
func ArDataProvidersRemoveDataProviders ¶
ArDataProvidersRemoveDataProviders calls the ARKit framework function ar_data_providers_remove_data_providers.
func ArDeviceAnchorCreate ¶
func ArDeviceAnchorCreate() *foundation.Object
ArDeviceAnchorCreate calls the ARKit framework function ar_device_anchor_create.
func ArDeviceAnchorGetIdentifier ¶
ArDeviceAnchorGetIdentifier calls the ARKit framework function ar_device_anchor_get_identifier.
func ArDeviceAnchorGetOriginFromAnchorTransform ¶
ArDeviceAnchorGetOriginFromAnchorTransform calls the ARKit framework function ar_device_anchor_get_origin_from_anchor_transform.
func ArDeviceAnchorGetOriginFromAnchorTransformWithCorrection ¶
func ArDeviceAnchorGetOriginFromAnchorTransformWithCorrection(anchor obj.Object, transformCorrection TransformCorrection) unsafe.Pointer
ArDeviceAnchorGetOriginFromAnchorTransformWithCorrection calls the ARKit framework function ar_device_anchor_get_origin_from_anchor_transform_with_correction.
func ArDeviceAnchorGetTimestamp ¶
ArDeviceAnchorGetTimestamp calls the ARKit framework function ar_device_anchor_get_timestamp.
func ArDeviceAnchorIsTracked ¶
ArDeviceAnchorIsTracked calls the ARKit framework function ar_device_anchor_is_tracked.
func ArErrorCopyCfError ¶
func ArErrorCopyCfError(err obj.Object) corefoundation.CFErrorRef
ArErrorCopyCfError calls the ARKit framework function ar_error_copy_cf_error.
func ArErrorGetErrorCode ¶
ArErrorGetErrorCode calls the ARKit framework function ar_error_get_error_code.
func ArSessionCopyDataProviders ¶
func ArSessionCopyDataProviders(session obj.Object) *foundation.Object
ArSessionCopyDataProviders calls the ARKit framework function ar_session_copy_data_providers.
func ArSessionCreateWithDevice ¶
func ArSessionCreateWithDevice(device obj.Object) *foundation.Object
ArSessionCreateWithDevice calls the ARKit framework function ar_session_create_with_device.
func ArSessionRun ¶
ArSessionRun calls the ARKit framework function ar_session_run.
func ArSessionSetDataProviderStateChangeHandler ¶
func ArSessionSetDataProviderStateChangeHandler(session obj.Object, queue dispatch.Queue, dataProviderStateChangeHandler func(obj.Object, DataProviderState, obj.Object, obj.Object))
ArSessionSetDataProviderStateChangeHandler calls the ARKit framework function ar_session_set_data_provider_state_change_handler.
func ArSessionSetDataProviderStateChangeHandlerF ¶
func ArSessionSetDataProviderStateChangeHandlerF(session obj.Object, queue dispatch.Queue, context_ unsafe.Pointer, dataProviderStateChangeHandlerFunction unsafe.Pointer)
ArSessionSetDataProviderStateChangeHandlerF calls the ARKit framework function ar_session_set_data_provider_state_change_handler_f.
func ArSessionStop ¶
ArSessionStop calls the ARKit framework function ar_session_stop.
func ArTrackableAnchorIsTracked ¶
ArTrackableAnchorIsTracked calls the ARKit framework function ar_trackable_anchor_is_tracked.
func ArWorldTrackingConfigurationCreate ¶
func ArWorldTrackingConfigurationCreate() *foundation.Object
ArWorldTrackingConfigurationCreate calls the ARKit framework function ar_world_tracking_configuration_create.
func ArWorldTrackingProviderCreate ¶
func ArWorldTrackingProviderCreate(worldTrackingConfiguration obj.Object) *foundation.Object
ArWorldTrackingProviderCreate calls the ARKit framework function ar_world_tracking_provider_create.
func ArWorldTrackingProviderIsSupported ¶
func ArWorldTrackingProviderIsSupported() bool
ArWorldTrackingProviderIsSupported calls the ARKit framework function ar_world_tracking_provider_is_supported.
func Ar_error_domain ¶
Ar_error_domain returns the value of the constant ar_error_domain.
Types ¶
type ACLEntryID ¶ added in v0.17.0
type ACLEntryID int32
const ( ACLEntryIDFirstEntry ACLEntryID = 0 ACLEntryIDNextEntry ACLEntryID = -1 ACLEntryIDLastEntry ACLEntryID = -2 )
func (ACLEntryID) String ¶ added in v0.17.0
func (e ACLEntryID) String() string
String returns the ACLEntryID constant's name, or its numeric form when the value is not a known constant.
type ACLPerm ¶ added in v0.17.0
type ACLPerm int32
const ( ACLPermReadData ACLPerm = 2 ACLPermListDirectory ACLPerm = 2 ACLPermWriteData ACLPerm = 4 ACLPermAddFile ACLPerm = 4 ACLPermExecute ACLPerm = 8 ACLPermSearch ACLPerm = 8 ACLPermDelete ACLPerm = 16 ACLPermAppendData ACLPerm = 32 ACLPermAddSubdirectory ACLPerm = 32 ACLPermDeleteChild ACLPerm = 64 ACLPermReadAttributes ACLPerm = 128 ACLPermWriteAttributes ACLPerm = 256 ACLPermReadExtattributes ACLPerm = 512 ACLPermWriteExtattributes ACLPerm = 1024 ACLPermReadSecurity ACLPerm = 2048 ACLPermWriteSecurity ACLPerm = 4096 ACLPermChangeOwner ACLPerm = 8192 ACLPermSynchronize ACLPerm = 1048576 )
type AuthorizationStatus ¶ added in v0.17.0
type AuthorizationStatus int64
The authorization states for a type of ARKit data.
const ( Ar_authorization_status_not_determined AuthorizationStatus = 0 Ar_authorization_status_allowed AuthorizationStatus = 1 Ar_authorization_status_denied AuthorizationStatus = 2 )
func ArAuthorizationResultGetStatus ¶
func ArAuthorizationResultGetStatus(authorizationResult obj.Object) AuthorizationStatus
ArAuthorizationResultGetStatus calls the ARKit framework function ar_authorization_result_get_status.
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 AuthorizationType ¶ added in v0.17.0
type AuthorizationType uint64
The authorization types you can request from ARKit. Bitmask — values may be combined with |.
const ( Ar_authorization_type_none AuthorizationType = 0 Ar_authorization_type_hand_tracking AuthorizationType = 1 Ar_authorization_type_world_sensing AuthorizationType = 2 Ar_authorization_type_camera_access AuthorizationType = 8 Ar_authorization_type_accessory_tracking AuthorizationType = 32 )
func ArAuthorizationResultGetAuthorizationType ¶
func ArAuthorizationResultGetAuthorizationType(authorizationResult obj.Object) AuthorizationType
ArAuthorizationResultGetAuthorizationType calls the ARKit framework function ar_authorization_result_get_authorization_type.
func ArDataProviderGetRequiredAuthorizationType ¶
func ArDataProviderGetRequiredAuthorizationType(dataProvider obj.Object) AuthorizationType
ArDataProviderGetRequiredAuthorizationType calls the ARKit framework function ar_data_provider_get_required_authorization_type.
func ArWorldTrackingProviderGetRequiredAuthorizationType ¶
func ArWorldTrackingProviderGetRequiredAuthorizationType() AuthorizationType
ArWorldTrackingProviderGetRequiredAuthorizationType calls the ARKit framework function ar_world_tracking_provider_get_required_authorization_type.
func (AuthorizationType) String ¶ added in v0.17.0
func (e AuthorizationType) String() string
String returns the AuthorizationType constant's name, or its numeric form when the value is not a known constant.
type DataProviderState ¶ added in v0.17.0
type DataProviderState int64
The possible states of a data provider.
const ( // The data provider has been created. Ar_data_provider_state_initialized DataProviderState = 0 // The data provider is running. Ar_data_provider_state_running DataProviderState = 1 // The data provider is paused. Ar_data_provider_state_paused DataProviderState = 2 // The data provider is stopped. Ar_data_provider_state_stopped DataProviderState = 3 )
func ArDataProviderGetState ¶
func ArDataProviderGetState(dataProvider obj.Object) DataProviderState
ArDataProviderGetState calls the ARKit framework function ar_data_provider_get_state.
func (DataProviderState) String ¶ added in v0.17.0
func (e DataProviderState) String() string
String returns the DataProviderState constant's name, or its numeric form when the value is not a known constant.
type DeviceAnchorQueryStatus ¶ added in v0.17.0
type DeviceAnchorQueryStatus int64
const ( // The device anchor query succeeded. Ar_device_anchor_query_status_success DeviceAnchorQueryStatus = 0 // The device anchor query failed. Ar_device_anchor_query_status_failure DeviceAnchorQueryStatus = 1 )
func ArWorldTrackingProviderQueryDeviceAnchorAtTimestamp ¶
func ArWorldTrackingProviderQueryDeviceAnchorAtTimestamp(worldTrackingProvider obj.Object, timestamp float64, deviceAnchor obj.Object) DeviceAnchorQueryStatus
ArWorldTrackingProviderQueryDeviceAnchorAtTimestamp calls the ARKit framework function ar_world_tracking_provider_query_device_anchor_at_timestamp.
func (DeviceAnchorQueryStatus) String ¶ added in v0.17.0
func (e DeviceAnchorQueryStatus) String() string
String returns the DeviceAnchorQueryStatus constant's name, or its numeric form when the value is not a known constant.
type DeviceAnchorTrackingState ¶ added in v0.17.0
type DeviceAnchorTrackingState int64
Values that describe the tracking states of a device anchor.
const ( // The value that indicates the framework isn’t tracking the anchor. Ar_device_anchor_tracking_state_untracked DeviceAnchorTrackingState = 0 // The value that indicates that the framework is only currently tracking orientation. Ar_device_anchor_tracking_state_orientation_tracked DeviceAnchorTrackingState = 1 // The value that indicates that the framework is currently tracking both position and orientation. Ar_device_anchor_tracking_state_tracked DeviceAnchorTrackingState = 2 )
func ArDeviceAnchorGetTrackingState ¶
func ArDeviceAnchorGetTrackingState(anchor obj.Object) DeviceAnchorTrackingState
ArDeviceAnchorGetTrackingState calls the ARKit framework function ar_device_anchor_get_tracking_state.
func (DeviceAnchorTrackingState) String ¶ added in v0.17.0
func (e DeviceAnchorTrackingState) String() string
String returns the DeviceAnchorTrackingState 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 GCDevice ¶
type GCDevice interface {
}
GCDevice is the Go form of the Objective-C protocol GCDevice.
type HandAnchorQueryStatus ¶
type HandAnchorQueryStatus int64
An enumeration that describes the status of a hand anchor query.
const (
Ar_hand_anchor_query_status_failure HandAnchorQueryStatus = 1
)
func (HandAnchorQueryStatus) String ¶
func (e HandAnchorQueryStatus) String() string
String returns the HandAnchorQueryStatus constant's name, or its numeric form when the value is not a known constant.
type HandChirality ¶
type HandChirality int64
The values identifying hand chirality.
func (HandChirality) String ¶
func (e HandChirality) String() string
String returns the HandChirality constant's name, or its numeric form when the value is not a known constant.
type HandFidelity ¶
type HandFidelity int64
Enum for hand fidelity.
func (HandFidelity) String ¶
func (e HandFidelity) String() string
String returns the HandFidelity constant's name, or its numeric form when the value is not a known constant.
type HandSkeletonJointName ¶
type HandSkeletonJointName uint64
An enumeration that describes hand joint names.
const ( Ar_hand_skeleton_joint_name_thumb_intermediate_tip HandSkeletonJointName = 3 Ar_hand_skeleton_joint_name_thumb_tip HandSkeletonJointName = 4 Ar_hand_skeleton_joint_name_index_finger_metacarpal HandSkeletonJointName = 5 Ar_hand_skeleton_joint_name_index_finger_knuckle HandSkeletonJointName = 6 Ar_hand_skeleton_joint_name_index_finger_intermediate_base HandSkeletonJointName = 7 Ar_hand_skeleton_joint_name_index_finger_intermediate_tip HandSkeletonJointName = 8 Ar_hand_skeleton_joint_name_index_finger_tip HandSkeletonJointName = 9 Ar_hand_skeleton_joint_name_middle_finger_metacarpal HandSkeletonJointName = 10 Ar_hand_skeleton_joint_name_middle_finger_knuckle HandSkeletonJointName = 11 Ar_hand_skeleton_joint_name_middle_finger_intermediate_base HandSkeletonJointName = 12 Ar_hand_skeleton_joint_name_middle_finger_intermediate_tip HandSkeletonJointName = 13 Ar_hand_skeleton_joint_name_middle_finger_tip HandSkeletonJointName = 14 Ar_hand_skeleton_joint_name_ring_finger_metacarpal HandSkeletonJointName = 15 Ar_hand_skeleton_joint_name_ring_finger_knuckle HandSkeletonJointName = 16 Ar_hand_skeleton_joint_name_ring_finger_intermediate_base HandSkeletonJointName = 17 Ar_hand_skeleton_joint_name_ring_finger_intermediate_tip HandSkeletonJointName = 18 Ar_hand_skeleton_joint_name_ring_finger_tip HandSkeletonJointName = 19 Ar_hand_skeleton_joint_name_little_finger_metacarpal HandSkeletonJointName = 20 Ar_hand_skeleton_joint_name_little_finger_knuckle HandSkeletonJointName = 21 Ar_hand_skeleton_joint_name_little_finger_intermediate_base HandSkeletonJointName = 22 Ar_hand_skeleton_joint_name_little_finger_intermediate_tip HandSkeletonJointName = 23 Ar_hand_skeleton_joint_name_little_finger_tip HandSkeletonJointName = 24 Ar_hand_skeleton_joint_name_forearm_wrist HandSkeletonJointName = 25 Ar_hand_skeleton_joint_name_forearm_arm HandSkeletonJointName = 26 )
func (HandSkeletonJointName) String ¶
func (e HandSkeletonJointName) String() string
String returns the HandSkeletonJointName 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 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 OS_ar_anchor ¶
type OS_ar_anchor interface {
}
OS_ar_anchor is the Go form of the Objective-C protocol OS_ar_anchor.
type OS_ar_authorization_result ¶
type OS_ar_authorization_result interface {
}
OS_ar_authorization_result is the Go form of the Objective-C protocol OS_ar_authorization_result.
type OS_ar_authorization_results ¶
type OS_ar_authorization_results interface {
}
OS_ar_authorization_results is the Go form of the Objective-C protocol OS_ar_authorization_results.
type OS_ar_data ¶
type OS_ar_data interface {
}
OS_ar_data is the Go form of the Objective-C protocol OS_ar_data.
type OS_ar_data_provider ¶
type OS_ar_data_provider interface {
}
OS_ar_data_provider is the Go form of the Objective-C protocol OS_ar_data_provider.
type OS_ar_data_providers ¶
type OS_ar_data_providers interface {
}
OS_ar_data_providers is the Go form of the Objective-C protocol OS_ar_data_providers.
type OS_ar_device ¶
type OS_ar_device interface {
}
OS_ar_device is the Go form of the Objective-C protocol OS_ar_device.
type OS_ar_device_anchor ¶
type OS_ar_device_anchor interface {
}
OS_ar_device_anchor is the Go form of the Objective-C protocol OS_ar_device_anchor.
type OS_ar_error ¶
type OS_ar_error interface {
}
OS_ar_error is the Go form of the Objective-C protocol OS_ar_error.
type OS_ar_hand_anchor ¶
type OS_ar_hand_anchor interface {
}
OS_ar_hand_anchor is the Go form of the Objective-C protocol OS_ar_hand_anchor.
type OS_ar_hand_skeleton ¶
type OS_ar_hand_skeleton interface {
}
OS_ar_hand_skeleton is the Go form of the Objective-C protocol OS_ar_hand_skeleton.
type OS_ar_hand_tracking_provider ¶
type OS_ar_hand_tracking_provider interface {
}
OS_ar_hand_tracking_provider is the Go form of the Objective-C protocol OS_ar_hand_tracking_provider.
type OS_ar_session ¶
type OS_ar_session interface {
}
OS_ar_session is the Go form of the Objective-C protocol OS_ar_session.
type OS_ar_skeleton_joint ¶
type OS_ar_skeleton_joint interface {
}
OS_ar_skeleton_joint is the Go form of the Objective-C protocol OS_ar_skeleton_joint.
type OS_ar_strings ¶
type OS_ar_strings interface {
}
OS_ar_strings is the Go form of the Objective-C protocol OS_ar_strings.
type OS_ar_trackable_anchor ¶
type OS_ar_trackable_anchor interface {
}
OS_ar_trackable_anchor is the Go form of the Objective-C protocol OS_ar_trackable_anchor.
type OS_ar_world_tracking_configuration ¶
type OS_ar_world_tracking_configuration interface {
}
OS_ar_world_tracking_configuration is the Go form of the Objective-C protocol OS_ar_world_tracking_configuration.
type OS_ar_world_tracking_provider ¶
type OS_ar_world_tracking_provider interface {
}
OS_ar_world_tracking_provider is the Go form of the Objective-C protocol OS_ar_world_tracking_provider.
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 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 SessionErrorCode ¶ added in v0.17.0
type SessionErrorCode int64
The error codes for ARKit sessions.
const ( Ar_session_error_code_data_provider_not_authorized SessionErrorCode = 100 // The error code for when a data provider fails to run. Ar_session_error_code_data_provider_failed_to_run SessionErrorCode = 101 )
func (SessionErrorCode) String ¶ added in v0.17.0
func (e SessionErrorCode) String() string
String returns the SessionErrorCode constant's name, or its numeric form when the value is not a known constant.
type TaskSharedRegionStubs ¶
type TaskSharedRegionStubs uint8
const ( )
func (TaskSharedRegionStubs) String ¶
func (e TaskSharedRegionStubs) String() string
String returns the TaskSharedRegionStubs constant's name, or its numeric form when the value is not a known constant.
type TransformCorrection ¶
type TransformCorrection int64
A correction type to apply for transforms returned from ARKit APIs.
const ( // Transforms are unaltered and represent actual locations. Ar_transform_correction_none TransformCorrection = 0 // Transforms are corrected to render over physical objects in passthrough displays. Ar_transform_correction_rendered TransformCorrection = 1 )
func (TransformCorrection) String ¶
func (e TransformCorrection) String() string
String returns the TransformCorrection 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 // Guard exception sent to a thread when a CoW defeatured map attempts to copy memory which is not permitted by system policy. KGUARD_EXC_COW_DEFEATURED_COPY_DENIED VirtualMemoryGuardExceptionCode = 13 // Guard exception sent to a thread when it attempts to extract a given type of memory in a way which is not permitted for CoW defeatured maps. KGUARD_EXC_COW_DEFEATURED_EXTRACT_DENIED VirtualMemoryGuardExceptionCode = 14 // Guard exception sent to a thread when it attempts to copy-map a memory entry which was created for sharing by a CoW defeatured map. KGUARD_EXC_COW_DEFEATURED_SHARE_MAP_AS_COPY_DENIED VirtualMemoryGuardExceptionCode = 15 KGUARD_EXC_COW_DEFEATURED_FIRST VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_COW_DEFEATURED_LAST VirtualMemoryGuardExceptionCode = 15 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 16 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 WorldAnchorSharingAvailability ¶
type WorldAnchorSharingAvailability int64
Enumeration indicating the availability of world anchor sharing.
const ( Ar_world_anchor_sharing_availability_unavailable WorldAnchorSharingAvailability = 1 )
func (WorldAnchorSharingAvailability) String ¶
func (e WorldAnchorSharingAvailability) String() string
String returns the WorldAnchorSharingAvailability constant's name, or its numeric form when the value is not a known constant.
type WorldTrackingErrorCode ¶ added in v0.17.0
type WorldTrackingErrorCode int64
The error codes for errors that world tracking providers throw.
const ( // The error code for when a world tracking provider reaches its world anchor limit. Ar_world_tracking_error_code_anchor_max_limit_reached WorldTrackingErrorCode = 201 // The error code for when a world tracking provider can’t remove a world anchor. Ar_world_tracking_error_code_remove_anchor_failed WorldTrackingErrorCode = 202 )
func (WorldTrackingErrorCode) String ¶ added in v0.17.0
func (e WorldTrackingErrorCode) String() string
String returns the WorldTrackingErrorCode 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.