Documentation
¶
Overview ¶
Package corelocation provides purego-based Go bindings for the macOS CoreLocation framework.
Apple documentation: https://developer.apple.com/documentation/corelocation
Index ¶
- func CLLocationManagerDeferredLocationUpdatesAvailable() booldeprecated
- func CLLocationManagerHeadingAvailable() bool
- func CLLocationManagerIsMonitoringAvailableForClass(regionClass objc.Class) bool
- func CLLocationManagerIsRangingAvailable() bool
- func CLLocationManagerLocationServicesEnabled() bool
- func CLLocationManagerRegionMonitoringAvailable() booldeprecated
- func CLLocationManagerRegionMonitoringEnabled() booldeprecated
- func CLLocationManagerSignificantLocationChangeMonitoringAvailable() bool
- func CLMonitorRequestMonitorWithConfigurationCompletion(config *CLMonitorConfiguration, completionHandler func(*CLMonitor))
- func KCLErrorDomain() uintptr
- func KCLErrorUserInfoAlternateRegionKey() uintptr
- func KCLHeadingFilterNone() uintptr
- type Acl_entry_id_t
- type Acl_flag_t
- type Acl_perm_t
- type Acl_tag_t
- type Acl_type_t
- type CLAccuracyAuthorization
- type CLActivityType
- type CLAuthorizationStatus
- type CLBeacon
- func (o *CLBeacon) Accuracy() unsafe.Pointer
- func (o *CLBeacon) Major() *foundation.NSNumber
- func (o *CLBeacon) Minor() *foundation.NSNumber
- func (o *CLBeacon) Proximity() CLProximity
- func (o *CLBeacon) ProximityUUID() *foundation.NSUUIDdeprecated
- func (o *CLBeacon) Rssi() int
- func (o *CLBeacon) Timestamp() *foundation.NSDate
- func (o *CLBeacon) UUID() *foundation.NSUUID
- type CLBeaconIdentityCondition
- func (o *CLBeaconIdentityCondition) InitWithUUID(uuid *foundation.NSUUID) *CLBeaconIdentityCondition
- func (o *CLBeaconIdentityCondition) InitWithUUIDMajor(uuid *foundation.NSUUID, major uint16) *CLBeaconIdentityCondition
- func (o *CLBeaconIdentityCondition) InitWithUUIDMajorMinor(uuid *foundation.NSUUID, major uint16, minor uint16) *CLBeaconIdentityCondition
- func (o *CLBeaconIdentityCondition) Major() *foundation.NSNumber
- func (o *CLBeaconIdentityCondition) Minor() *foundation.NSNumber
- func (o *CLBeaconIdentityCondition) UUID() *foundation.NSUUID
- type CLBeaconIdentityConstraint
- type CLBeaconRegion
- func (o *CLBeaconRegion) BeaconIdentityConstraint() *CLBeaconIdentityConstraint
- func (o *CLBeaconRegion) InitWithBeaconIdentityConstraintIdentifier(beaconIdentityConstraint *CLBeaconIdentityConstraint, ...) *CLBeaconRegion
- func (o *CLBeaconRegion) InitWithProximityUUIDIdentifier(proximityUUID *foundation.NSUUID, identifier *foundation.NSString) *CLBeaconRegion
- func (o *CLBeaconRegion) InitWithProximityUUIDMajorIdentifier(proximityUUID *foundation.NSUUID, major uint16, ...) *CLBeaconRegion
- func (o *CLBeaconRegion) InitWithProximityUUIDMajorMinorIdentifier(proximityUUID *foundation.NSUUID, major uint16, minor uint16, ...) *CLBeaconRegion
- func (o *CLBeaconRegion) InitWithUUIDIdentifier(uuid *foundation.NSUUID, identifier *foundation.NSString) *CLBeaconRegion
- func (o *CLBeaconRegion) InitWithUUIDMajorIdentifier(uuid *foundation.NSUUID, major uint16, identifier *foundation.NSString) *CLBeaconRegion
- func (o *CLBeaconRegion) InitWithUUIDMajorMinorIdentifier(uuid *foundation.NSUUID, major uint16, minor uint16, ...) *CLBeaconRegion
- func (o *CLBeaconRegion) Major() *foundation.NSNumber
- func (o *CLBeaconRegion) Minor() *foundation.NSNumber
- func (o *CLBeaconRegion) NotifyEntryStateOnDisplay() bool
- func (o *CLBeaconRegion) PeripheralDataWithMeasuredPower(measuredPower *foundation.NSNumber) *foundation.NSMutableDictionary[*foundation.NSString, objc.ID]
- func (o *CLBeaconRegion) ProximityUUID() *foundation.NSUUIDdeprecated
- func (o *CLBeaconRegion) SetNotifyEntryStateOnDisplay(notifyEntryStateOnDisplay bool)
- func (o *CLBeaconRegion) UUID() *foundation.NSUUID
- type CLCircularGeographicCondition
- type CLCircularRegion
- type CLCondition
- type CLDeviceOrientation
- type CLError
- type CLGeocoder
- func (o *CLGeocoder) CancelGeocode()
- func (o *CLGeocoder) GeocodeAddressDictionaryCompletionHandler(addressDictionary *foundation.NSDictionary[objc.ID, objc.ID], ...)
- func (o *CLGeocoder) GeocodeAddressStringCompletionHandler(addressString *foundation.NSString, ...)
- func (o *CLGeocoder) GeocodeAddressStringInRegionCompletionHandler(addressString *foundation.NSString, region *CLRegion, ...)
- func (o *CLGeocoder) GeocodeAddressStringInRegionPreferredLocaleCompletionHandler(addressString *foundation.NSString, region *CLRegion, ...)
- func (o *CLGeocoder) GeocodePostalAddressCompletionHandler(postalAddress *contacts.CNPostalAddress, ...)
- func (o *CLGeocoder) GeocodePostalAddressPreferredLocaleCompletionHandler(postalAddress *contacts.CNPostalAddress, locale *foundation.NSLocale, ...)
- func (o *CLGeocoder) IsGeocoding() bool
- func (o *CLGeocoder) ReverseGeocodeLocationCompletionHandler(location unsafe.Pointer, ...)
- func (o *CLGeocoder) ReverseGeocodeLocationPreferredLocaleCompletionHandler(location unsafe.Pointer, locale *foundation.NSLocale, ...)
- type CLHeading
- func (o *CLHeading) HeadingAccuracy() unsafe.Pointer
- func (o *CLHeading) MagneticHeading() unsafe.Pointer
- func (o *CLHeading) Timestamp() *foundation.NSDate
- func (o *CLHeading) TrueHeading() unsafe.Pointer
- func (o *CLHeading) X() float64
- func (o *CLHeading) Y() float64
- func (o *CLHeading) Z() float64
- type CLLiveUpdateConfiguration
- type CLLocationCoordinate2D
- type CLLocationManager
- func (o *CLLocationManager) AccuracyAuthorization() CLAccuracyAuthorization
- func (o *CLLocationManager) ActivityType() CLActivityType
- func (o *CLLocationManager) AllowDeferredLocationUpdatesUntilTraveledTimeout(distance unsafe.Pointer, timeout float64)deprecated
- func (o *CLLocationManager) AllowsBackgroundLocationUpdates() bool
- func (o *CLLocationManager) AuthorizationStatus() CLAuthorizationStatus
- func (o *CLLocationManager) Delegate() CLLocationManagerDelegate
- func (o *CLLocationManager) DesiredAccuracy() unsafe.Pointer
- func (o *CLLocationManager) DisallowDeferredLocationUpdates()deprecated
- func (o *CLLocationManager) DismissHeadingCalibrationDisplay()
- func (o *CLLocationManager) DistanceFilter() unsafe.Pointer
- func (o *CLLocationManager) Heading() *CLHeading
- func (o *CLLocationManager) HeadingAvailable() booldeprecated
- func (o *CLLocationManager) HeadingFilter() unsafe.Pointer
- func (o *CLLocationManager) HeadingOrientation() CLDeviceOrientation
- func (o *CLLocationManager) IsAuthorizedForWidgetUpdates() bool
- func (o *CLLocationManager) Location() unsafe.Pointer
- func (o *CLLocationManager) LocationServicesEnabled() booldeprecated
- func (o *CLLocationManager) MaximumRegionMonitoringDistance() unsafe.Pointer
- func (o *CLLocationManager) MonitoredRegions() *foundation.NSSet[*CLRegion]
- func (o *CLLocationManager) PausesLocationUpdatesAutomatically() bool
- func (o *CLLocationManager) Purpose() *foundation.NSStringdeprecated
- func (o *CLLocationManager) RangedBeaconConstraints() *foundation.NSSet[*CLBeaconIdentityConstraint]
- func (o *CLLocationManager) RangedRegions() *foundation.NSSet[*CLRegion]deprecated
- func (o *CLLocationManager) RequestAlwaysAuthorization()
- func (o *CLLocationManager) RequestLocation()
- func (o *CLLocationManager) RequestStateForRegion(region *CLRegion)deprecated
- func (o *CLLocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKey(purposeKey *foundation.NSString)
- func (o *CLLocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKeyCompletion(purposeKey *foundation.NSString, completion func(unsafe.Pointer))
- func (o *CLLocationManager) RequestWhenInUseAuthorization()
- func (o *CLLocationManager) SetActivityType(activityType CLActivityType)
- func (o *CLLocationManager) SetAllowsBackgroundLocationUpdates(allowsBackgroundLocationUpdates bool)
- func (o *CLLocationManager) SetDelegate(delegate CLLocationManagerDelegate)
- func (o *CLLocationManager) SetDesiredAccuracy(desiredAccuracy unsafe.Pointer)
- func (o *CLLocationManager) SetDistanceFilter(distanceFilter unsafe.Pointer)
- func (o *CLLocationManager) SetHeadingFilter(headingFilter unsafe.Pointer)
- func (o *CLLocationManager) SetHeadingOrientation(headingOrientation CLDeviceOrientation)
- func (o *CLLocationManager) SetPausesLocationUpdatesAutomatically(pausesLocationUpdatesAutomatically bool)
- func (o *CLLocationManager) SetPurpose(purpose *foundation.NSString)deprecated
- func (o *CLLocationManager) StartMonitoringForRegion(region *CLRegion)deprecated
- func (o *CLLocationManager) StartMonitoringForRegionDesiredAccuracy(region *CLRegion, accuracy unsafe.Pointer)deprecated
- func (o *CLLocationManager) StartMonitoringSignificantLocationChanges()
- func (o *CLLocationManager) StartMonitoringVisits()
- func (o *CLLocationManager) StartRangingBeaconsInRegion(region *CLBeaconRegion)deprecated
- func (o *CLLocationManager) StartRangingBeaconsSatisfyingConstraint(constraint *CLBeaconIdentityConstraint)
- func (o *CLLocationManager) StartUpdatingHeading()
- func (o *CLLocationManager) StartUpdatingLocation()
- func (o *CLLocationManager) StopMonitoringForRegion(region *CLRegion)deprecated
- func (o *CLLocationManager) StopMonitoringSignificantLocationChanges()
- func (o *CLLocationManager) StopMonitoringVisits()
- func (o *CLLocationManager) StopRangingBeaconsInRegion(region *CLBeaconRegion)deprecated
- func (o *CLLocationManager) StopRangingBeaconsSatisfyingConstraint(constraint *CLBeaconIdentityConstraint)
- func (o *CLLocationManager) StopUpdatingLocation()
- type CLLocationManagerDelegate
- type CLLocationUpdater
- func CLLocationUpdaterFromID(id objc.ID) *CLLocationUpdater
- func CLLocationUpdaterLiveUpdaterWithConfigurationQueueHandler(configuration CLLiveUpdateConfiguration, queue *foundation.NSObject, ...) *CLLocationUpdater
- func CLLocationUpdaterLiveUpdaterWithQueueHandler(queue *foundation.NSObject, handler func(*CLUpdate)) *CLLocationUpdater
- type CLMonitor
- func (o *CLMonitor) AddConditionForMonitoringIdentifier(condition *CLCondition, identifier *foundation.NSString)
- func (o *CLMonitor) AddConditionForMonitoringIdentifierAssumedState(condition *CLCondition, identifier *foundation.NSString, ...)
- func (o *CLMonitor) MonitoredIdentifiers() *foundation.NSArray[*foundation.NSString]
- func (o *CLMonitor) MonitoringRecordForIdentifier(identifier *foundation.NSString) *CLMonitoringRecord
- func (o *CLMonitor) Name() *foundation.NSString
- func (o *CLMonitor) RemoveConditionFromMonitoringWithIdentifier(identifier *foundation.NSString)
- type CLMonitorConfiguration
- type CLMonitoringEvent
- func (o *CLMonitoringEvent) AccuracyLimited() bool
- func (o *CLMonitoringEvent) AuthorizationDenied() bool
- func (o *CLMonitoringEvent) AuthorizationDeniedGlobally() bool
- func (o *CLMonitoringEvent) AuthorizationRequestInProgress() bool
- func (o *CLMonitoringEvent) AuthorizationRestricted() bool
- func (o *CLMonitoringEvent) ConditionLimitExceeded() bool
- func (o *CLMonitoringEvent) ConditionUnsupported() bool
- func (o *CLMonitoringEvent) Date() *foundation.NSDate
- func (o *CLMonitoringEvent) Identifier() *foundation.NSString
- func (o *CLMonitoringEvent) InsufficientlyInUse() bool
- func (o *CLMonitoringEvent) PersistenceUnavailable() bool
- func (o *CLMonitoringEvent) Refinement() *CLCondition
- func (o *CLMonitoringEvent) ServiceSessionRequired() bool
- func (o *CLMonitoringEvent) State() CLMonitoringState
- type CLMonitoringRecord
- type CLMonitoringState
- type CLPlacemark
- func (o *CLPlacemark) AddressDictionary() *foundation.NSDictionary[objc.ID, objc.ID]deprecated
- func (o *CLPlacemark) AdministrativeArea() *foundation.NSString
- func (o *CLPlacemark) AreasOfInterest() *foundation.NSArray[*foundation.NSString]
- func (o *CLPlacemark) Country() *foundation.NSString
- func (o *CLPlacemark) ISOcountryCode() *foundation.NSString
- func (o *CLPlacemark) InitWithPlacemark(placemark *CLPlacemark) *CLPlacemark
- func (o *CLPlacemark) InlandWater() *foundation.NSString
- func (o *CLPlacemark) Locality() *foundation.NSString
- func (o *CLPlacemark) Location() unsafe.Pointer
- func (o *CLPlacemark) Name() *foundation.NSStringdeprecated
- func (o *CLPlacemark) Ocean() *foundation.NSString
- func (o *CLPlacemark) PostalAddress() *contacts.CNPostalAddressdeprecated
- func (o *CLPlacemark) PostalCode() *foundation.NSString
- func (o *CLPlacemark) Region() *CLRegion
- func (o *CLPlacemark) SubAdministrativeArea() *foundation.NSString
- func (o *CLPlacemark) SubLocality() *foundation.NSString
- func (o *CLPlacemark) SubThoroughfare() *foundation.NSString
- func (o *CLPlacemark) Thoroughfare() *foundation.NSStringdeprecated
- func (o *CLPlacemark) TimeZone() *foundation.NSTimeZone
- type CLProximity
- type CLRegion
- func (o *CLRegion) Center() unsafe.Pointerdeprecated
- func (o *CLRegion) ContainsCoordinate(coordinate unsafe.Pointer) bool
- func (o *CLRegion) Identifier() *foundation.NSString
- func (o *CLRegion) InitCircularRegionWithCenterRadiusIdentifier(center unsafe.Pointer, radius unsafe.Pointer, identifier *foundation.NSString) *CLRegion
- func (o *CLRegion) NotifyOnEntry() bool
- func (o *CLRegion) NotifyOnExit() bool
- func (o *CLRegion) Radius() unsafe.Pointerdeprecated
- func (o *CLRegion) SetNotifyOnEntry(notifyOnEntry bool)
- func (o *CLRegion) SetNotifyOnExit(notifyOnExit bool)
- type CLRegionState
- type CLUpdate
- func (o *CLUpdate) AccuracyLimited() bool
- func (o *CLUpdate) AuthorizationDenied() bool
- func (o *CLUpdate) AuthorizationDeniedGlobally() bool
- func (o *CLUpdate) AuthorizationRequestInProgress() bool
- func (o *CLUpdate) AuthorizationRestricted() bool
- func (o *CLUpdate) InsufficientlyInUse() bool
- func (o *CLUpdate) IsStationary() booldeprecated
- func (o *CLUpdate) Location() unsafe.Pointer
- func (o *CLUpdate) LocationUnavailable() bool
- func (o *CLUpdate) ServiceSessionRequired() bool
- func (o *CLUpdate) Stationary() bool
- type CLVisit
- type Clockid_t
- type Dispatch_autorelease_frequency_t
- type Dispatch_block_flags_t
- type Filesec_property_t
- type Idtype_t
- type Ipc_info_object_type_t
- type Launch_data_type_t
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type Mach_vm_range_flags_t
- type Mach_vm_range_flavor_t
- type Mach_vm_range_tag_t
- type Mpo_flags_t
- type Os_clockid_t
- type Ptrauth_key
- type Qos_class_t
- type Virtual_memory_guard_exception_code_t
- type Xpc_listener_create_flags_t
- type Xpc_session_create_flags_t
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CLLocationManagerDeferredLocationUpdatesAvailable
deprecated
func CLLocationManagerDeferredLocationUpdatesAvailable() bool
Deprecated: You can remove calls to this method
func CLLocationManagerHeadingAvailable ¶
func CLLocationManagerHeadingAvailable() bool
Returns a Boolean value indicating whether the location manager is able to generate heading-related events.
func CLLocationManagerIsMonitoringAvailableForClass ¶
Returns a Boolean value indicating whether the device supports region monitoring using the specified class.
func CLLocationManagerIsRangingAvailable ¶
func CLLocationManagerIsRangingAvailable() bool
Returns a Boolean value indicating whether the device supports ranging of beacons that use the iBeacon protocol.
func CLLocationManagerLocationServicesEnabled ¶
func CLLocationManagerLocationServicesEnabled() bool
Returns a Boolean value indicating whether location services are enabled on the device.
func CLLocationManagerRegionMonitoringAvailable
deprecated
func CLLocationManagerRegionMonitoringAvailable() bool
Deprecated: since macOS 10.10.
func CLLocationManagerRegionMonitoringEnabled
deprecated
func CLLocationManagerRegionMonitoringEnabled() bool
Deprecated: Use +isMonitoringAvailableForClass: and -authorizationStatus instead
func CLLocationManagerSignificantLocationChangeMonitoringAvailable ¶
func CLLocationManagerSignificantLocationChangeMonitoringAvailable() bool
Returns a Boolean value indicating whether the significant-change location service is available on the device.
func CLMonitorRequestMonitorWithConfigurationCompletion ¶
func CLMonitorRequestMonitorWithConfigurationCompletion(config *CLMonitorConfiguration, completionHandler func(*CLMonitor))
func KCLErrorDomain ¶
func KCLErrorDomain() uintptr
func KCLErrorUserInfoAlternateRegionKey ¶
func KCLErrorUserInfoAlternateRegionKey() uintptr
func KCLHeadingFilterNone ¶
func KCLHeadingFilterNone() uintptr
Types ¶
type Acl_entry_id_t ¶
type Acl_entry_id_t int64
const ( ACL_FIRST_ENTRY Acl_entry_id_t = 0 ACL_NEXT_ENTRY Acl_entry_id_t = -1 ACL_LAST_ENTRY Acl_entry_id_t = -2 )
func (Acl_entry_id_t) String ¶
func (e Acl_entry_id_t) String() string
type Acl_flag_t ¶
type Acl_flag_t int64
const ( ACL_FLAG_DEFER_INHERIT Acl_flag_t = 1 ACL_FLAG_NO_INHERIT Acl_flag_t = 131072 ACL_ENTRY_INHERITED Acl_flag_t = 16 ACL_ENTRY_FILE_INHERIT Acl_flag_t = 32 ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64 ACL_ENTRY_LIMIT_INHERIT Acl_flag_t = 128 ACL_ENTRY_ONLY_INHERIT Acl_flag_t = 256 )
func (Acl_flag_t) String ¶
func (e Acl_flag_t) String() string
type Acl_perm_t ¶
type Acl_perm_t int64
const ( ACL_READ_DATA Acl_perm_t = 2 ACL_LIST_DIRECTORY Acl_perm_t = 2 ACL_WRITE_DATA Acl_perm_t = 4 ACL_ADD_FILE Acl_perm_t = 4 ACL_EXECUTE Acl_perm_t = 8 ACL_SEARCH Acl_perm_t = 8 ACL_DELETE Acl_perm_t = 16 ACL_APPEND_DATA Acl_perm_t = 32 ACL_ADD_SUBDIRECTORY Acl_perm_t = 32 ACL_DELETE_CHILD Acl_perm_t = 64 ACL_READ_ATTRIBUTES Acl_perm_t = 128 ACL_WRITE_ATTRIBUTES Acl_perm_t = 256 ACL_READ_EXTATTRIBUTES Acl_perm_t = 512 ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024 ACL_READ_SECURITY Acl_perm_t = 2048 ACL_WRITE_SECURITY Acl_perm_t = 4096 ACL_CHANGE_OWNER Acl_perm_t = 8192 ACL_SYNCHRONIZE Acl_perm_t = 1048576 )
func (Acl_perm_t) String ¶
func (e Acl_perm_t) String() string
type Acl_type_t ¶
type Acl_type_t int64
const ( ACL_TYPE_EXTENDED Acl_type_t = 256 ACL_TYPE_ACCESS Acl_type_t = 0 ACL_TYPE_DEFAULT Acl_type_t = 1 ACL_TYPE_AFS Acl_type_t = 2 ACL_TYPE_CODA Acl_type_t = 3 ACL_TYPE_NTFS Acl_type_t = 4 ACL_TYPE_NWFS Acl_type_t = 5 )
func (Acl_type_t) String ¶
func (e Acl_type_t) String() string
type CLAccuracyAuthorization ¶
type CLAccuracyAuthorization int64
Constants that indicate the level of location accuracy the app has authorization to use.
const ( // The user authorized the app to access location data with full accuracy. CLAccuracyAuthorizationFullAccuracy CLAccuracyAuthorization = 0 // The user authorized the app to access location data with reduced accuracy. CLAccuracyAuthorizationReducedAccuracy CLAccuracyAuthorization = 1 )
func (CLAccuracyAuthorization) String ¶
func (e CLAccuracyAuthorization) String() string
type CLActivityType ¶
type CLActivityType int64
Constants that indicate the type of activity associated with location updates.
const ( // The value that indicates the app is using location manager for an unspecified activity. CLActivityTypeOther CLActivityType = 1 CLActivityTypeAutomotiveNavigation CLActivityType = 2 // The value that indicates positioning during dedicated fitness sessions, such as walking workouts, running workouts, cycling workouts, and so on. CLActivityTypeFitness CLActivityType = 3 CLActivityTypeOtherNavigation CLActivityType = 4 // The value that indicates activities in the air. CLActivityTypeAirborne CLActivityType = 5 )
func (CLActivityType) String ¶
func (e CLActivityType) String() string
type CLAuthorizationStatus ¶
type CLAuthorizationStatus int32
Constants that indicate the app’s authorization to use location services.
const ( // The user has not chosen whether the app can use location services. KCLAuthorizationStatusNotDetermined CLAuthorizationStatus = 0 // The app is not authorized to use location services. KCLAuthorizationStatusRestricted CLAuthorizationStatus = 1 // The user denied the use of location services for the app or they are disabled globally in Settings. KCLAuthorizationStatusDenied CLAuthorizationStatus = 2 // The user authorized the app to start location services at any time. KCLAuthorizationStatusAuthorizedAlways CLAuthorizationStatus = 3 // The user authorized the app to use location services. KCLAuthorizationStatusAuthorized CLAuthorizationStatus = 3 )
func CLLocationManagerAuthorizationStatus
deprecated
func CLLocationManagerAuthorizationStatus() CLAuthorizationStatus
Deprecated: since macOS 11.0.
func (CLAuthorizationStatus) String ¶
func (e CLAuthorizationStatus) String() string
type CLBeacon ¶
type CLBeacon struct {
foundation.NSObject
}
Information about an observed iBeacon device and its relative distance to a person’s device.
Apple documentation: https://developer.apple.com/documentation/corelocation/clbeacon
func CLBeaconFromID ¶
func (*CLBeacon) Major ¶
func (o *CLBeacon) Major() *foundation.NSNumber
func (*CLBeacon) Minor ¶
func (o *CLBeacon) Minor() *foundation.NSNumber
func (*CLBeacon) Proximity ¶
func (o *CLBeacon) Proximity() CLProximity
func (*CLBeacon) ProximityUUID
deprecated
func (o *CLBeacon) ProximityUUID() *foundation.NSUUID
Deprecated: since macOS 10.15.
func (*CLBeacon) Timestamp ¶
func (o *CLBeacon) Timestamp() *foundation.NSDate
func (*CLBeacon) UUID ¶
func (o *CLBeacon) UUID() *foundation.NSUUID
type CLBeaconIdentityCondition ¶
type CLBeaconIdentityCondition struct {
CLCondition
}
A condition that describes the identity characteristics of a beacon.
Apple documentation: https://developer.apple.com/documentation/corelocation/clbeaconidentitycondition
func CLBeaconIdentityConditionFromID ¶
func CLBeaconIdentityConditionFromID(id objc.ID) *CLBeaconIdentityCondition
func (*CLBeaconIdentityCondition) InitWithUUID ¶
func (o *CLBeaconIdentityCondition) InitWithUUID(uuid *foundation.NSUUID) *CLBeaconIdentityCondition
Creates a new beacon identity condition with the identifier you specify.
func (*CLBeaconIdentityCondition) InitWithUUIDMajor ¶
func (o *CLBeaconIdentityCondition) InitWithUUIDMajor(uuid *foundation.NSUUID, major uint16) *CLBeaconIdentityCondition
Creates a new beacon identity condition with the identifier and major value you specify.
func (*CLBeaconIdentityCondition) InitWithUUIDMajorMinor ¶
func (o *CLBeaconIdentityCondition) InitWithUUIDMajorMinor(uuid *foundation.NSUUID, major uint16, minor uint16) *CLBeaconIdentityCondition
Creates a new beacon identity condition with the identifier, and major and minor values you specify.
func (*CLBeaconIdentityCondition) Major ¶
func (o *CLBeaconIdentityCondition) Major() *foundation.NSNumber
func (*CLBeaconIdentityCondition) Minor ¶
func (o *CLBeaconIdentityCondition) Minor() *foundation.NSNumber
func (*CLBeaconIdentityCondition) UUID ¶
func (o *CLBeaconIdentityCondition) UUID() *foundation.NSUUID
type CLBeaconIdentityConstraint ¶
type CLBeaconIdentityConstraint struct {
CLBeaconIdentityCondition
}
Identity characteristics that can match one or more beacons.
Apple documentation: https://developer.apple.com/documentation/corelocation/clbeaconidentityconstraint Deprecated: since macOS API_TO_BE_DEPRECATED.
func CLBeaconIdentityConstraintFromID ¶
func CLBeaconIdentityConstraintFromID(id objc.ID) *CLBeaconIdentityConstraint
type CLBeaconRegion ¶
type CLBeaconRegion struct {
CLRegion
}
A region for detecting the presence of iBeacon devices.
Apple documentation: https://developer.apple.com/documentation/corelocation/clbeaconregion Deprecated: since macOS API_TO_BE_DEPRECATED.
func CLBeaconRegionFromID ¶
func CLBeaconRegionFromID(id objc.ID) *CLBeaconRegion
func (*CLBeaconRegion) BeaconIdentityConstraint ¶
func (o *CLBeaconRegion) BeaconIdentityConstraint() *CLBeaconIdentityConstraint
func (*CLBeaconRegion) InitWithBeaconIdentityConstraintIdentifier ¶
func (o *CLBeaconRegion) InitWithBeaconIdentityConstraintIdentifier(beaconIdentityConstraint *CLBeaconIdentityConstraint, identifier *foundation.NSString) *CLBeaconRegion
Creates and returns a region object that targets beacons that satisfy the specified beacon identity constraints.
func (*CLBeaconRegion) InitWithProximityUUIDIdentifier ¶
func (o *CLBeaconRegion) InitWithProximityUUIDIdentifier(proximityUUID *foundation.NSUUID, identifier *foundation.NSString) *CLBeaconRegion
Creates and returns a region object that targets a beacon with the specified UUID. Deprecated: since macOS 10.15.
func (*CLBeaconRegion) InitWithProximityUUIDMajorIdentifier ¶
func (o *CLBeaconRegion) InitWithProximityUUIDMajorIdentifier(proximityUUID *foundation.NSUUID, major uint16, identifier *foundation.NSString) *CLBeaconRegion
Creates and returns a region object that targets a beacon with the specified proximity ID and major value. Deprecated: since macOS 10.15.
func (*CLBeaconRegion) InitWithProximityUUIDMajorMinorIdentifier ¶
func (o *CLBeaconRegion) InitWithProximityUUIDMajorMinorIdentifier(proximityUUID *foundation.NSUUID, major uint16, minor uint16, identifier *foundation.NSString) *CLBeaconRegion
Creates and returns a region object that targets a beacon with the specified proximity ID, major value, and minor value. Deprecated: since macOS 10.15.
func (*CLBeaconRegion) InitWithUUIDIdentifier ¶
func (o *CLBeaconRegion) InitWithUUIDIdentifier(uuid *foundation.NSUUID, identifier *foundation.NSString) *CLBeaconRegion
Creates and returns a region object that targets beacons with the specified UUID.
func (*CLBeaconRegion) InitWithUUIDMajorIdentifier ¶
func (o *CLBeaconRegion) InitWithUUIDMajorIdentifier(uuid *foundation.NSUUID, major uint16, identifier *foundation.NSString) *CLBeaconRegion
Creates and returns a region object that targets beacons with the specified UUID and major value.
func (*CLBeaconRegion) InitWithUUIDMajorMinorIdentifier ¶
func (o *CLBeaconRegion) InitWithUUIDMajorMinorIdentifier(uuid *foundation.NSUUID, major uint16, minor uint16, identifier *foundation.NSString) *CLBeaconRegion
Creates and returns a region object that targets beacons with the specified UUID, and major and minor values.
func (*CLBeaconRegion) Major ¶
func (o *CLBeaconRegion) Major() *foundation.NSNumber
func (*CLBeaconRegion) Minor ¶
func (o *CLBeaconRegion) Minor() *foundation.NSNumber
func (*CLBeaconRegion) NotifyEntryStateOnDisplay ¶
func (o *CLBeaconRegion) NotifyEntryStateOnDisplay() bool
func (*CLBeaconRegion) PeripheralDataWithMeasuredPower ¶
func (o *CLBeaconRegion) PeripheralDataWithMeasuredPower(measuredPower *foundation.NSNumber) *foundation.NSMutableDictionary[*foundation.NSString, objc.ID]
Retrieves data that you can use to advertise the current device as a beacon.
func (*CLBeaconRegion) ProximityUUID
deprecated
func (o *CLBeaconRegion) ProximityUUID() *foundation.NSUUID
Deprecated: since macOS 10.15.
func (*CLBeaconRegion) SetNotifyEntryStateOnDisplay ¶
func (o *CLBeaconRegion) SetNotifyEntryStateOnDisplay(notifyEntryStateOnDisplay bool)
func (*CLBeaconRegion) UUID ¶
func (o *CLBeaconRegion) UUID() *foundation.NSUUID
type CLCircularGeographicCondition ¶
type CLCircularGeographicCondition struct {
CLCondition
}
A circular geographic condition that a center point and radius define.
Apple documentation: https://developer.apple.com/documentation/corelocation/clcirculargeographiccondition
func CLCircularGeographicConditionFromID ¶
func CLCircularGeographicConditionFromID(id objc.ID) *CLCircularGeographicCondition
func (*CLCircularGeographicCondition) Center ¶
func (o *CLCircularGeographicCondition) Center() unsafe.Pointer
func (*CLCircularGeographicCondition) InitWithCenterRadius ¶
func (o *CLCircularGeographicCondition) InitWithCenterRadius(center unsafe.Pointer, radius unsafe.Pointer) *CLCircularGeographicCondition
Creates a new circular geographic condition with the center point and radius you provide.
func (*CLCircularGeographicCondition) Radius ¶
func (o *CLCircularGeographicCondition) Radius() unsafe.Pointer
type CLCircularRegion ¶
type CLCircularRegion struct {
CLRegion
}
A circular geographic region that a center point and radius deine.
Apple documentation: https://developer.apple.com/documentation/corelocation/clcircularregion Deprecated: since macOS API_TO_BE_DEPRECATED.
func CLCircularRegionFromID ¶
func CLCircularRegionFromID(id objc.ID) *CLCircularRegion
func (*CLCircularRegion) InitWithCenterRadiusIdentifier ¶
func (o *CLCircularRegion) InitWithCenterRadiusIdentifier(center unsafe.Pointer, radius unsafe.Pointer, identifier *foundation.NSString) *CLCircularRegion
Creates and returns a region object defining a circular geographic area.
type CLCondition ¶
type CLCondition struct {
foundation.NSObject
}
The abstract base class for all other monitor conditions.
Apple documentation: https://developer.apple.com/documentation/corelocation/clcondition
func CLConditionFromID ¶
func CLConditionFromID(id objc.ID) *CLCondition
type CLDeviceOrientation ¶
type CLDeviceOrientation int32
Constants indicating the physical orientation of the device.
const ( // The orientation is currently not known. CLDeviceOrientationUnknown CLDeviceOrientation = 0 // The device is in portrait mode, with the device held upright and the home button at the bottom. CLDeviceOrientationPortrait CLDeviceOrientation = 1 // The device is in portrait mode but upside down, with the device held upright and the home button at the top. CLDeviceOrientationPortraitUpsideDown CLDeviceOrientation = 2 // The device is in landscape mode, with the device held upright and the home button on the right side. CLDeviceOrientationLandscapeLeft CLDeviceOrientation = 3 // The device is in landscape mode, with the device held upright and the home button on the left side. CLDeviceOrientationLandscapeRight CLDeviceOrientation = 4 // The device is held parallel to the ground with the screen facing upwards. CLDeviceOrientationFaceUp CLDeviceOrientation = 5 // The device is held parallel to the ground with the screen facing downwards. CLDeviceOrientationFaceDown CLDeviceOrientation = 6 )
func (CLDeviceOrientation) String ¶
func (e CLDeviceOrientation) String() string
type CLError ¶
type CLError int64
A Core Location error.
const ( KCLErrorLocationUnknown CLError = 0 KCLErrorDenied CLError = 1 KCLErrorNetwork CLError = 2 KCLErrorHeadingFailure CLError = 3 KCLErrorRegionMonitoringDenied CLError = 4 KCLErrorRegionMonitoringFailure CLError = 5 KCLErrorRegionMonitoringSetupDelayed CLError = 6 KCLErrorRegionMonitoringResponseDelayed CLError = 7 KCLErrorGeocodeFoundNoResult CLError = 8 KCLErrorGeocodeFoundPartialResult CLError = 9 KCLErrorGeocodeCanceled CLError = 10 KCLErrorDeferredFailed CLError = 11 KCLErrorDeferredNotUpdatingLocation CLError = 12 KCLErrorDeferredAccuracyTooLow CLError = 13 KCLErrorDeferredDistanceFiltered CLError = 14 KCLErrorDeferredCanceled CLError = 15 KCLErrorRangingFailure CLError = 17 KCLErrorPromptDeclined CLError = 18 KCLErrorHistoricalLocationError CLError = 19 )
type CLGeocoder ¶
type CLGeocoder struct {
foundation.NSObject
}
An interface for converting between geographic coordinates and place names.
Apple documentation: https://developer.apple.com/documentation/corelocation/clgeocoder Deprecated: Use MapKit
func CLGeocoderFromID ¶
func CLGeocoderFromID(id objc.ID) *CLGeocoder
func (*CLGeocoder) CancelGeocode ¶
func (o *CLGeocoder) CancelGeocode()
Cancels a pending geocoding request. Deprecated: Use MKGeocodingRequest
func (*CLGeocoder) GeocodeAddressDictionaryCompletionHandler ¶
func (o *CLGeocoder) GeocodeAddressDictionaryCompletionHandler(addressDictionary *foundation.NSDictionary[objc.ID, objc.ID], completionHandler func(*foundation.NSArray[*CLPlacemark], unsafe.Pointer))
Submits a forward-geocoding request using the specified address dictionary. Deprecated: Use MKReverseGeocodingRequest
func (*CLGeocoder) GeocodeAddressStringCompletionHandler ¶
func (o *CLGeocoder) GeocodeAddressStringCompletionHandler(addressString *foundation.NSString, completionHandler func(*foundation.NSArray[*CLPlacemark], unsafe.Pointer))
Submits a forward-geocoding request using the specified string. Deprecated: Use MKGeocodingRequest
func (*CLGeocoder) GeocodeAddressStringInRegionCompletionHandler ¶
func (o *CLGeocoder) GeocodeAddressStringInRegionCompletionHandler(addressString *foundation.NSString, region *CLRegion, completionHandler func(*foundation.NSArray[*CLPlacemark], unsafe.Pointer))
Submits a forward-geocoding request using the specified string and region information. Deprecated: Use MKReverseGeocodingRequest
func (*CLGeocoder) GeocodeAddressStringInRegionPreferredLocaleCompletionHandler ¶
func (o *CLGeocoder) GeocodeAddressStringInRegionPreferredLocaleCompletionHandler(addressString *foundation.NSString, region *CLRegion, locale *foundation.NSLocale, completionHandler func(*foundation.NSArray[*CLPlacemark], unsafe.Pointer))
Submits a forward-geocoding requesting using the specified address string and locale information. Deprecated: Use MKGeocodingRequest
func (*CLGeocoder) GeocodePostalAddressCompletionHandler ¶
func (o *CLGeocoder) GeocodePostalAddressCompletionHandler(postalAddress *contacts.CNPostalAddress, completionHandler func(*foundation.NSArray[*CLPlacemark], unsafe.Pointer))
Submits a forward-geocoding requesting using the specified Contacts framework information. Deprecated: Use MKReverseGeocodingRequest
func (*CLGeocoder) GeocodePostalAddressPreferredLocaleCompletionHandler ¶
func (o *CLGeocoder) GeocodePostalAddressPreferredLocaleCompletionHandler(postalAddress *contacts.CNPostalAddress, locale *foundation.NSLocale, completionHandler func(*foundation.NSArray[*CLPlacemark], unsafe.Pointer))
Submits a forward-geocoding requesting using the specified locale and Contacts framework information. Deprecated: Use MKReverseGeocodingRequest
func (*CLGeocoder) IsGeocoding ¶
func (o *CLGeocoder) IsGeocoding() bool
func (*CLGeocoder) ReverseGeocodeLocationCompletionHandler ¶
func (o *CLGeocoder) ReverseGeocodeLocationCompletionHandler(location unsafe.Pointer, completionHandler func(*foundation.NSArray[*CLPlacemark], unsafe.Pointer))
Submits a reverse-geocoding request for the specified location. Deprecated: Use MKReverseGeocodingRequest
func (*CLGeocoder) ReverseGeocodeLocationPreferredLocaleCompletionHandler ¶
func (o *CLGeocoder) ReverseGeocodeLocationPreferredLocaleCompletionHandler(location unsafe.Pointer, locale *foundation.NSLocale, completionHandler func(*foundation.NSArray[*CLPlacemark], unsafe.Pointer))
Submits a reverse-geocoding request for the specified location and locale. Deprecated: Use MKReverseGeocodingRequest
type CLHeading ¶
type CLHeading struct {
foundation.NSObject
}
The orientation of the user’s device, relative to true or magnetic north.
Apple documentation: https://developer.apple.com/documentation/corelocation/clheading
func CLHeadingFromID ¶
func (*CLHeading) HeadingAccuracy ¶
func (*CLHeading) MagneticHeading ¶
func (*CLHeading) Timestamp ¶
func (o *CLHeading) Timestamp() *foundation.NSDate
func (*CLHeading) TrueHeading ¶
type CLLiveUpdateConfiguration ¶
type CLLiveUpdateConfiguration int64
Specifies the types of locations that a location updater generates.
const ( // The default configuration. CLLiveUpdateConfigurationDefault CLLiveUpdateConfiguration = 0 CLLiveUpdateConfigurationAutomotiveNavigation CLLiveUpdateConfiguration = 1 CLLiveUpdateConfigurationOtherNavigation CLLiveUpdateConfiguration = 2 // A configuration for fitness use cases. CLLiveUpdateConfigurationFitness CLLiveUpdateConfiguration = 3 // A configuration for airborne use cases. CLLiveUpdateConfigurationAirborne CLLiveUpdateConfiguration = 4 )
func (CLLiveUpdateConfiguration) String ¶
func (e CLLiveUpdateConfiguration) String() string
type CLLocationCoordinate2D ¶
type CLLocationCoordinate2D struct{}
The latitude and longitude associated with a location, specified using the WGS 84 reference frame. CLLocationCoordinate2D is an opaque type.
type CLLocationManager ¶
type CLLocationManager struct {
foundation.NSObject
}
The object you use to start and stop the delivery of location-related events to your app.
Apple documentation: https://developer.apple.com/documentation/corelocation/cllocationmanager
func CLLocationManagerFromID ¶
func CLLocationManagerFromID(id objc.ID) *CLLocationManager
func (*CLLocationManager) AccuracyAuthorization ¶
func (o *CLLocationManager) AccuracyAuthorization() CLAccuracyAuthorization
func (*CLLocationManager) ActivityType ¶
func (o *CLLocationManager) ActivityType() CLActivityType
func (*CLLocationManager) AllowDeferredLocationUpdatesUntilTraveledTimeout
deprecated
func (o *CLLocationManager) AllowDeferredLocationUpdatesUntilTraveledTimeout(distance unsafe.Pointer, timeout float64)
Deprecated: You can remove calls to this method
func (*CLLocationManager) AllowsBackgroundLocationUpdates ¶
func (o *CLLocationManager) AllowsBackgroundLocationUpdates() bool
func (*CLLocationManager) AuthorizationStatus ¶
func (o *CLLocationManager) AuthorizationStatus() CLAuthorizationStatus
func (*CLLocationManager) Delegate ¶
func (o *CLLocationManager) Delegate() CLLocationManagerDelegate
func (*CLLocationManager) DesiredAccuracy ¶
func (o *CLLocationManager) DesiredAccuracy() unsafe.Pointer
func (*CLLocationManager) DisallowDeferredLocationUpdates
deprecated
func (o *CLLocationManager) DisallowDeferredLocationUpdates()
Deprecated: You can remove calls to this method
func (*CLLocationManager) DismissHeadingCalibrationDisplay ¶
func (o *CLLocationManager) DismissHeadingCalibrationDisplay()
Dismisses the heading calibration view from the screen immediately.
func (*CLLocationManager) DistanceFilter ¶
func (o *CLLocationManager) DistanceFilter() unsafe.Pointer
func (*CLLocationManager) Heading ¶
func (o *CLLocationManager) Heading() *CLHeading
func (*CLLocationManager) HeadingAvailable
deprecated
func (o *CLLocationManager) HeadingAvailable() bool
Deprecated: since macOS 10.15.
func (*CLLocationManager) HeadingFilter ¶
func (o *CLLocationManager) HeadingFilter() unsafe.Pointer
func (*CLLocationManager) HeadingOrientation ¶
func (o *CLLocationManager) HeadingOrientation() CLDeviceOrientation
func (*CLLocationManager) IsAuthorizedForWidgetUpdates ¶
func (o *CLLocationManager) IsAuthorizedForWidgetUpdates() bool
func (*CLLocationManager) Location ¶
func (o *CLLocationManager) Location() unsafe.Pointer
func (*CLLocationManager) LocationServicesEnabled
deprecated
func (o *CLLocationManager) LocationServicesEnabled() bool
Deprecated: since macOS 10.15.
func (*CLLocationManager) MaximumRegionMonitoringDistance ¶
func (o *CLLocationManager) MaximumRegionMonitoringDistance() unsafe.Pointer
func (*CLLocationManager) MonitoredRegions ¶
func (o *CLLocationManager) MonitoredRegions() *foundation.NSSet[*CLRegion]
func (*CLLocationManager) PausesLocationUpdatesAutomatically ¶
func (o *CLLocationManager) PausesLocationUpdatesAutomatically() bool
func (*CLLocationManager) Purpose
deprecated
func (o *CLLocationManager) Purpose() *foundation.NSString
Deprecated: Set the purpose string in Info.plist using key NSLocationUsageDescription
func (*CLLocationManager) RangedBeaconConstraints ¶
func (o *CLLocationManager) RangedBeaconConstraints() *foundation.NSSet[*CLBeaconIdentityConstraint]
func (*CLLocationManager) RangedRegions
deprecated
func (o *CLLocationManager) RangedRegions() *foundation.NSSet[*CLRegion]
Deprecated: Use -rangedBeaconConstraints
func (*CLLocationManager) RequestAlwaysAuthorization ¶
func (o *CLLocationManager) RequestAlwaysAuthorization()
Requests the user’s permission to use location services regardless of whether the app is in use.
func (*CLLocationManager) RequestLocation ¶
func (o *CLLocationManager) RequestLocation()
Requests the one-time delivery of the user’s current location.
func (*CLLocationManager) RequestStateForRegion
deprecated
func (o *CLLocationManager) RequestStateForRegion(region *CLRegion)
Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*CLLocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKey ¶
func (o *CLLocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKey(purposeKey *foundation.NSString)
Requests permission to temporarily use location services with full accuracy.
func (*CLLocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKeyCompletion ¶
func (o *CLLocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKeyCompletion(purposeKey *foundation.NSString, completion func(unsafe.Pointer))
Requests permission to temporarily use location services with full accuracy and reports the results to the provided completion handler.
func (*CLLocationManager) RequestWhenInUseAuthorization ¶
func (o *CLLocationManager) RequestWhenInUseAuthorization()
Requests the user’s permission to use location services while the app is in use.
func (*CLLocationManager) SetActivityType ¶
func (o *CLLocationManager) SetActivityType(activityType CLActivityType)
func (*CLLocationManager) SetAllowsBackgroundLocationUpdates ¶
func (o *CLLocationManager) SetAllowsBackgroundLocationUpdates(allowsBackgroundLocationUpdates bool)
func (*CLLocationManager) SetDelegate ¶
func (o *CLLocationManager) SetDelegate(delegate CLLocationManagerDelegate)
func (*CLLocationManager) SetDesiredAccuracy ¶
func (o *CLLocationManager) SetDesiredAccuracy(desiredAccuracy unsafe.Pointer)
func (*CLLocationManager) SetDistanceFilter ¶
func (o *CLLocationManager) SetDistanceFilter(distanceFilter unsafe.Pointer)
func (*CLLocationManager) SetHeadingFilter ¶
func (o *CLLocationManager) SetHeadingFilter(headingFilter unsafe.Pointer)
func (*CLLocationManager) SetHeadingOrientation ¶
func (o *CLLocationManager) SetHeadingOrientation(headingOrientation CLDeviceOrientation)
func (*CLLocationManager) SetPausesLocationUpdatesAutomatically ¶
func (o *CLLocationManager) SetPausesLocationUpdatesAutomatically(pausesLocationUpdatesAutomatically bool)
func (*CLLocationManager) SetPurpose
deprecated
func (o *CLLocationManager) SetPurpose(purpose *foundation.NSString)
Deprecated: Set the purpose string in Info.plist using key NSLocationUsageDescription
func (*CLLocationManager) StartMonitoringForRegion
deprecated
func (o *CLLocationManager) StartMonitoringForRegion(region *CLRegion)
Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*CLLocationManager) StartMonitoringForRegionDesiredAccuracy
deprecated
func (o *CLLocationManager) StartMonitoringForRegionDesiredAccuracy(region *CLRegion, accuracy unsafe.Pointer)
Deprecated: since macOS 10.15.
func (*CLLocationManager) StartMonitoringSignificantLocationChanges ¶
func (o *CLLocationManager) StartMonitoringSignificantLocationChanges()
Starts the generation of updates based on significant location changes.
func (*CLLocationManager) StartMonitoringVisits ¶
func (o *CLLocationManager) StartMonitoringVisits()
Starts the delivery of visit-related events.
func (*CLLocationManager) StartRangingBeaconsInRegion
deprecated
func (o *CLLocationManager) StartRangingBeaconsInRegion(region *CLBeaconRegion)
Deprecated: Use -startRangingBeaconsSatisfyingConstraint:
func (*CLLocationManager) StartRangingBeaconsSatisfyingConstraint ¶
func (o *CLLocationManager) StartRangingBeaconsSatisfyingConstraint(constraint *CLBeaconIdentityConstraint)
Starts the delivery of notifications for the specified beacon constraints.
func (*CLLocationManager) StartUpdatingHeading ¶
func (o *CLLocationManager) StartUpdatingHeading()
Starts the generation of updates that report the user’s current heading.
func (*CLLocationManager) StartUpdatingLocation ¶
func (o *CLLocationManager) StartUpdatingLocation()
Starts the generation of updates that report the user’s current location.
func (*CLLocationManager) StopMonitoringForRegion
deprecated
func (o *CLLocationManager) StopMonitoringForRegion(region *CLRegion)
Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*CLLocationManager) StopMonitoringSignificantLocationChanges ¶
func (o *CLLocationManager) StopMonitoringSignificantLocationChanges()
Stops the delivery of location events based on significant location changes.
func (*CLLocationManager) StopMonitoringVisits ¶
func (o *CLLocationManager) StopMonitoringVisits()
Stops the delivery of visit-related events.
func (*CLLocationManager) StopRangingBeaconsInRegion
deprecated
func (o *CLLocationManager) StopRangingBeaconsInRegion(region *CLBeaconRegion)
Deprecated: Use -stopRangingBeaconsSatisfyingConstraint:
func (*CLLocationManager) StopRangingBeaconsSatisfyingConstraint ¶
func (o *CLLocationManager) StopRangingBeaconsSatisfyingConstraint(constraint *CLBeaconIdentityConstraint)
Stops the delivery of notifications for the specified beacon constraints.
func (*CLLocationManager) StopUpdatingLocation ¶
func (o *CLLocationManager) StopUpdatingLocation()
Stops the generation of location updates.
type CLLocationManagerDelegate ¶
type CLLocationManagerDelegate interface {
}
CLLocationManagerDelegate wraps the ObjC protocol CLLocationManagerDelegate.
type CLLocationUpdater ¶
type CLLocationUpdater struct {
foundation.NSObject
}
An object that provides device location updates.
Apple documentation: https://developer.apple.com/documentation/corelocation/cllocationupdater
func CLLocationUpdaterFromID ¶
func CLLocationUpdaterFromID(id objc.ID) *CLLocationUpdater
func CLLocationUpdaterLiveUpdaterWithConfigurationQueueHandler ¶
func CLLocationUpdaterLiveUpdaterWithConfigurationQueueHandler(configuration CLLiveUpdateConfiguration, queue *foundation.NSObject, handler func(*CLUpdate)) *CLLocationUpdater
Creates a location updater with the configuration and queue that you specify.
func CLLocationUpdaterLiveUpdaterWithQueueHandler ¶
func CLLocationUpdaterLiveUpdaterWithQueueHandler(queue *foundation.NSObject, handler func(*CLUpdate)) *CLLocationUpdater
Creates a location updater on the queue you specify.
func (*CLLocationUpdater) Invalidate ¶
func (o *CLLocationUpdater) Invalidate()
Invalidates the updater.
type CLMonitor ¶
type CLMonitor struct {
foundation.NSObject
}
An object that monitors the conditions you add to it.
Apple documentation: https://developer.apple.com/documentation/corelocation/clmonitor
func CLMonitorFromID ¶
func (*CLMonitor) AddConditionForMonitoringIdentifier ¶
func (o *CLMonitor) AddConditionForMonitoringIdentifier(condition *CLCondition, identifier *foundation.NSString)
func (*CLMonitor) AddConditionForMonitoringIdentifierAssumedState ¶
func (o *CLMonitor) AddConditionForMonitoringIdentifierAssumedState(condition *CLCondition, identifier *foundation.NSString, state CLMonitoringState)
func (*CLMonitor) MonitoredIdentifiers ¶
func (o *CLMonitor) MonitoredIdentifiers() *foundation.NSArray[*foundation.NSString]
func (*CLMonitor) MonitoringRecordForIdentifier ¶
func (o *CLMonitor) MonitoringRecordForIdentifier(identifier *foundation.NSString) *CLMonitoringRecord
func (*CLMonitor) Name ¶
func (o *CLMonitor) Name() *foundation.NSString
func (*CLMonitor) RemoveConditionFromMonitoringWithIdentifier ¶
func (o *CLMonitor) RemoveConditionFromMonitoringWithIdentifier(identifier *foundation.NSString)
type CLMonitorConfiguration ¶
type CLMonitorConfiguration struct {
foundation.NSObject
}
An object for configuring a location monitor instance.
Apple documentation: https://developer.apple.com/documentation/corelocation/clmonitorconfiguration
func CLMonitorConfigurationConfigWithMonitorNameQueueEventHandler ¶
func CLMonitorConfigurationConfigWithMonitorNameQueueEventHandler(name *foundation.NSString, queue *foundation.NSObject, eventHandler func(*CLMonitor, *CLMonitoringEvent)) *CLMonitorConfiguration
Creates a location monitor instance with the name, dispatch queue, and event handler you specify.
func CLMonitorConfigurationFromID ¶
func CLMonitorConfigurationFromID(id objc.ID) *CLMonitorConfiguration
func (*CLMonitorConfiguration) EventHandler ¶
func (o *CLMonitorConfiguration) EventHandler() objc.Block
func (*CLMonitorConfiguration) Name ¶
func (o *CLMonitorConfiguration) Name() *foundation.NSString
func (*CLMonitorConfiguration) Queue ¶
func (o *CLMonitorConfiguration) Queue() *foundation.NSObject
type CLMonitoringEvent ¶
type CLMonitoringEvent struct {
foundation.NSObject
}
The object that the framework passes to the monitor’s callback handler upon receiving an event.
Apple documentation: https://developer.apple.com/documentation/corelocation/clmonitoringevent
func CLMonitoringEventFromID ¶
func CLMonitoringEventFromID(id objc.ID) *CLMonitoringEvent
func (*CLMonitoringEvent) AccuracyLimited ¶
func (o *CLMonitoringEvent) AccuracyLimited() bool
func (*CLMonitoringEvent) AuthorizationDenied ¶
func (o *CLMonitoringEvent) AuthorizationDenied() bool
func (*CLMonitoringEvent) AuthorizationDeniedGlobally ¶
func (o *CLMonitoringEvent) AuthorizationDeniedGlobally() bool
func (*CLMonitoringEvent) AuthorizationRequestInProgress ¶
func (o *CLMonitoringEvent) AuthorizationRequestInProgress() bool
func (*CLMonitoringEvent) AuthorizationRestricted ¶
func (o *CLMonitoringEvent) AuthorizationRestricted() bool
func (*CLMonitoringEvent) ConditionLimitExceeded ¶
func (o *CLMonitoringEvent) ConditionLimitExceeded() bool
func (*CLMonitoringEvent) ConditionUnsupported ¶
func (o *CLMonitoringEvent) ConditionUnsupported() bool
func (*CLMonitoringEvent) Date ¶
func (o *CLMonitoringEvent) Date() *foundation.NSDate
func (*CLMonitoringEvent) Identifier ¶
func (o *CLMonitoringEvent) Identifier() *foundation.NSString
func (*CLMonitoringEvent) InsufficientlyInUse ¶
func (o *CLMonitoringEvent) InsufficientlyInUse() bool
func (*CLMonitoringEvent) PersistenceUnavailable ¶
func (o *CLMonitoringEvent) PersistenceUnavailable() bool
func (*CLMonitoringEvent) Refinement ¶
func (o *CLMonitoringEvent) Refinement() *CLCondition
func (*CLMonitoringEvent) ServiceSessionRequired ¶
func (o *CLMonitoringEvent) ServiceSessionRequired() bool
func (*CLMonitoringEvent) State ¶
func (o *CLMonitoringEvent) State() CLMonitoringState
type CLMonitoringRecord ¶
type CLMonitoringRecord struct {
foundation.NSObject
}
An object that represents a condition and its associated information that a location monitor is monitoring.
Apple documentation: https://developer.apple.com/documentation/corelocation/clmonitoringrecord
func CLMonitoringRecordFromID ¶
func CLMonitoringRecordFromID(id objc.ID) *CLMonitoringRecord
func (*CLMonitoringRecord) Condition ¶
func (o *CLMonitoringRecord) Condition() *CLCondition
func (*CLMonitoringRecord) LastEvent ¶
func (o *CLMonitoringRecord) LastEvent() *CLMonitoringEvent
type CLMonitoringState ¶
type CLMonitoringState uint64
Values that represent the current state of a monitoring condition.
const ( // The condition is in an unknown state. CLMonitoringStateUnknown CLMonitoringState = 0 // The condition is in a satisfied state. CLMonitoringStateSatisfied CLMonitoringState = 1 // The condition is in an unsatisfied state. CLMonitoringStateUnsatisfied CLMonitoringState = 2 // The condition is in an unmonitored state. CLMonitoringStateUnmonitored CLMonitoringState = 3 )
func (CLMonitoringState) String ¶
func (e CLMonitoringState) String() string
type CLPlacemark ¶
type CLPlacemark struct {
foundation.NSObject
}
A user-friendly description of a geographic coordinate, often containing the name of the place, its address, and other relevant information.
Apple documentation: https://developer.apple.com/documentation/corelocation/clplacemark Deprecated: Use either GeoToolbox.PlaceDescriptor or MapKit
func CLPlacemarkFromID ¶
func CLPlacemarkFromID(id objc.ID) *CLPlacemark
func (*CLPlacemark) AddressDictionary
deprecated
func (o *CLPlacemark) AddressDictionary() *foundation.NSDictionary[objc.ID, objc.ID]
Deprecated: Use @properties
func (*CLPlacemark) AdministrativeArea ¶
func (o *CLPlacemark) AdministrativeArea() *foundation.NSString
func (*CLPlacemark) AreasOfInterest ¶
func (o *CLPlacemark) AreasOfInterest() *foundation.NSArray[*foundation.NSString]
func (*CLPlacemark) Country ¶
func (o *CLPlacemark) Country() *foundation.NSString
func (*CLPlacemark) ISOcountryCode ¶
func (o *CLPlacemark) ISOcountryCode() *foundation.NSString
func (*CLPlacemark) InitWithPlacemark ¶
func (o *CLPlacemark) InitWithPlacemark(placemark *CLPlacemark) *CLPlacemark
Initializes and returns a placemark object from another placemark object.
func (*CLPlacemark) InlandWater ¶
func (o *CLPlacemark) InlandWater() *foundation.NSString
func (*CLPlacemark) Locality ¶
func (o *CLPlacemark) Locality() *foundation.NSString
func (*CLPlacemark) Location ¶
func (o *CLPlacemark) Location() unsafe.Pointer
func (*CLPlacemark) Name
deprecated
func (o *CLPlacemark) Name() *foundation.NSString
Deprecated: Use @properties
func (*CLPlacemark) Ocean ¶
func (o *CLPlacemark) Ocean() *foundation.NSString
func (*CLPlacemark) PostalAddress
deprecated
func (o *CLPlacemark) PostalAddress() *contacts.CNPostalAddress
Deprecated: Use either GeoToolbox.PlaceDescriptor or MapKit
func (*CLPlacemark) PostalCode ¶
func (o *CLPlacemark) PostalCode() *foundation.NSString
func (*CLPlacemark) Region ¶
func (o *CLPlacemark) Region() *CLRegion
func (*CLPlacemark) SubAdministrativeArea ¶
func (o *CLPlacemark) SubAdministrativeArea() *foundation.NSString
func (*CLPlacemark) SubLocality ¶
func (o *CLPlacemark) SubLocality() *foundation.NSString
func (*CLPlacemark) SubThoroughfare ¶
func (o *CLPlacemark) SubThoroughfare() *foundation.NSString
func (*CLPlacemark) Thoroughfare
deprecated
func (o *CLPlacemark) Thoroughfare() *foundation.NSString
Deprecated: Use @properties
func (*CLPlacemark) TimeZone ¶
func (o *CLPlacemark) TimeZone() *foundation.NSTimeZone
type CLProximity ¶
type CLProximity int64
Constants that reflect the relative distance to a beacon.
const ( // The proximity of the beacon could not be determined. CLProximityUnknown CLProximity = 0 // The beacon is in the user’s immediate vicinity. CLProximityImmediate CLProximity = 1 // The beacon is relatively close to the user. CLProximityNear CLProximity = 2 // The beacon is far away. CLProximityFar CLProximity = 3 )
func (CLProximity) String ¶
func (e CLProximity) String() string
type CLRegion ¶
type CLRegion struct {
foundation.NSObject
}
A base class representing an area that can be monitored.
Apple documentation: https://developer.apple.com/documentation/corelocation/clregion
func CLRegionFromID ¶
func (*CLRegion) ContainsCoordinate ¶
Returns a Boolean value indicating whether the region contains the specified coordinate. Deprecated: Please see CLCircularRegion
func (*CLRegion) Identifier ¶
func (o *CLRegion) Identifier() *foundation.NSString
func (*CLRegion) InitCircularRegionWithCenterRadiusIdentifier ¶
func (o *CLRegion) InitCircularRegionWithCenterRadiusIdentifier(center unsafe.Pointer, radius unsafe.Pointer, identifier *foundation.NSString) *CLRegion
Initializes and returns a region object defining a circular area. Deprecated: Please see CLCircularRegion
func (*CLRegion) NotifyOnEntry ¶
func (*CLRegion) NotifyOnExit ¶
func (*CLRegion) SetNotifyOnEntry ¶
func (*CLRegion) SetNotifyOnExit ¶
type CLRegionState ¶
type CLRegionState int64
Constants that reflect the relationship of the current location to the region boundaries.
const ( // It is unknown whether the location is inside or outside of the region. CLRegionStateUnknown CLRegionState = 0 // The location is inside of the given region. CLRegionStateInside CLRegionState = 1 // The location is outside of the given region. CLRegionStateOutside CLRegionState = 2 )
func (CLRegionState) String ¶
func (e CLRegionState) String() string
type CLUpdate ¶
type CLUpdate struct {
foundation.NSObject
}
An object that represents a location update.
Apple documentation: https://developer.apple.com/documentation/corelocation/clupdate
func CLUpdateFromID ¶
func (*CLUpdate) AccuracyLimited ¶
func (*CLUpdate) AuthorizationDenied ¶
func (*CLUpdate) AuthorizationDeniedGlobally ¶
func (*CLUpdate) AuthorizationRequestInProgress ¶
func (*CLUpdate) AuthorizationRestricted ¶
func (*CLUpdate) InsufficientlyInUse ¶
func (*CLUpdate) IsStationary
deprecated
func (*CLUpdate) LocationUnavailable ¶
func (*CLUpdate) ServiceSessionRequired ¶
func (*CLUpdate) Stationary ¶
type CLVisit ¶
type CLVisit struct {
foundation.NSObject
}
Information about the user’s location during a specific period of time.
Apple documentation: https://developer.apple.com/documentation/corelocation/clvisit
func CLVisitFromID ¶
func (*CLVisit) ArrivalDate ¶
func (o *CLVisit) ArrivalDate() *foundation.NSDate
func (*CLVisit) Coordinate ¶
func (*CLVisit) DepartureDate ¶
func (o *CLVisit) DepartureDate() *foundation.NSDate
func (*CLVisit) HorizontalAccuracy ¶
type Dispatch_autorelease_frequency_t ¶
type Dispatch_autorelease_frequency_t uint64
const ( DISPATCH_AUTORELEASE_FREQUENCY_INHERIT Dispatch_autorelease_frequency_t = 0 DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1 DISPATCH_AUTORELEASE_FREQUENCY_NEVER Dispatch_autorelease_frequency_t = 2 )
func (Dispatch_autorelease_frequency_t) String ¶
func (e Dispatch_autorelease_frequency_t) String() string
type Dispatch_block_flags_t ¶
type Dispatch_block_flags_t uint64
const ( DISPATCH_BLOCK_BARRIER Dispatch_block_flags_t = 1 DISPATCH_BLOCK_DETACHED Dispatch_block_flags_t = 2 DISPATCH_BLOCK_ASSIGN_CURRENT Dispatch_block_flags_t = 4 DISPATCH_BLOCK_NO_QOS_CLASS Dispatch_block_flags_t = 8 DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16 DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32 )
func (Dispatch_block_flags_t) String ¶
func (e Dispatch_block_flags_t) String() string
type Filesec_property_t ¶
type Filesec_property_t int64
const ( FILESEC_OWNER Filesec_property_t = 1 FILESEC_GROUP Filesec_property_t = 2 FILESEC_UUID Filesec_property_t = 3 FILESEC_MODE Filesec_property_t = 4 FILESEC_ACL Filesec_property_t = 5 FILESEC_GRPUUID Filesec_property_t = 6 FILESEC_ACL_RAW Filesec_property_t = 100 FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101 )
func (Filesec_property_t) String ¶
func (e Filesec_property_t) String() string
type Ipc_info_object_type_t ¶
type Ipc_info_object_type_t int64
const ( IPC_OTYPE_NONE Ipc_info_object_type_t = 0 IPC_OTYPE_THREAD_CONTROL Ipc_info_object_type_t = 1 IPC_OTYPE_TASK_CONTROL Ipc_info_object_type_t = 2 IPC_OTYPE_HOST Ipc_info_object_type_t = 3 IPC_OTYPE_HOST_PRIV Ipc_info_object_type_t = 4 IPC_OTYPE_PROCESSOR Ipc_info_object_type_t = 5 IPC_OTYPE_PROCESSOR_SET Ipc_info_object_type_t = 6 IPC_OTYPE_PROCESSOR_SET_NAME Ipc_info_object_type_t = 7 IPC_OTYPE_TIMER Ipc_info_object_type_t = 8 IPC_OTYPE_PORT_SUBST_ONCE Ipc_info_object_type_t = 9 IPC_OTYPE_MIG Ipc_info_object_type_t = 10 IPC_OTYPE_MEMORY_OBJECT Ipc_info_object_type_t = 11 IPC_OTYPE_XMM_PAGER Ipc_info_object_type_t = 12 IPC_OTYPE_XMM_KERNEL Ipc_info_object_type_t = 13 IPC_OTYPE_XMM_REPLY Ipc_info_object_type_t = 14 IPC_OTYPE_UND_REPLY Ipc_info_object_type_t = 15 IPC_OTYPE_HOST_NOTIFY Ipc_info_object_type_t = 16 IPC_OTYPE_HOST_SECURITY Ipc_info_object_type_t = 17 IPC_OTYPE_LEDGER Ipc_info_object_type_t = 18 IPC_OTYPE_MAIN_DEVICE Ipc_info_object_type_t = 19 IPC_OTYPE_TASK_NAME Ipc_info_object_type_t = 20 IPC_OTYPE_SUBSYSTEM Ipc_info_object_type_t = 21 IPC_OTYPE_IO_DONE_QUEUE Ipc_info_object_type_t = 22 IPC_OTYPE_SEMAPHORE Ipc_info_object_type_t = 23 IPC_OTYPE_LOCK_SET Ipc_info_object_type_t = 24 IPC_OTYPE_CLOCK Ipc_info_object_type_t = 25 IPC_OTYPE_CLOCK_CTRL Ipc_info_object_type_t = 26 IPC_OTYPE_IOKIT_IDENT Ipc_info_object_type_t = 27 IPC_OTYPE_NAMED_ENTRY Ipc_info_object_type_t = 28 IPC_OTYPE_IOKIT_CONNECT Ipc_info_object_type_t = 29 IPC_OTYPE_IOKIT_OBJECT Ipc_info_object_type_t = 30 IPC_OTYPE_UPL Ipc_info_object_type_t = 31 IPC_OTYPE_MEM_OBJ_CONTROL Ipc_info_object_type_t = 32 IPC_OTYPE_AU_SESSIONPORT Ipc_info_object_type_t = 33 IPC_OTYPE_FILEPORT Ipc_info_object_type_t = 34 IPC_OTYPE_LABELH Ipc_info_object_type_t = 35 IPC_OTYPE_TASK_RESUME Ipc_info_object_type_t = 36 IPC_OTYPE_VOUCHER Ipc_info_object_type_t = 37 IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38 IPC_OTYPE_WORK_INTERVAL Ipc_info_object_type_t = 39 IPC_OTYPE_UX_HANDLER Ipc_info_object_type_t = 40 IPC_OTYPE_UEXT_OBJECT Ipc_info_object_type_t = 41 IPC_OTYPE_ARCADE_REG Ipc_info_object_type_t = 42 IPC_OTYPE_EVENTLINK Ipc_info_object_type_t = 43 IPC_OTYPE_TASK_INSPECT Ipc_info_object_type_t = 44 IPC_OTYPE_TASK_READ Ipc_info_object_type_t = 45 IPC_OTYPE_THREAD_INSPECT Ipc_info_object_type_t = 46 IPC_OTYPE_THREAD_READ Ipc_info_object_type_t = 47 IPC_OTYPE_SUID_CRED Ipc_info_object_type_t = 48 IPC_OTYPE_HYPERVISOR Ipc_info_object_type_t = 49 IPC_OTYPE_TASK_ID_TOKEN Ipc_info_object_type_t = 50 IPC_OTYPE_TASK_FATAL Ipc_info_object_type_t = 51 IPC_OTYPE_KCDATA Ipc_info_object_type_t = 52 IPC_OTYPE_EXCLAVES_RESOURCE Ipc_info_object_type_t = 53 IPC_OTYPE_THREAD_RESUME Ipc_info_object_type_t = 54 IPC_OTYPE_UNKNOWN Ipc_info_object_type_t = 4294967295 )
func (Ipc_info_object_type_t) String ¶
func (e Ipc_info_object_type_t) String() string
type Launch_data_type_t ¶
type Launch_data_type_t int64
const ( LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1 LAUNCH_DATA_ARRAY Launch_data_type_t = 2 LAUNCH_DATA_FD Launch_data_type_t = 3 LAUNCH_DATA_INTEGER Launch_data_type_t = 4 LAUNCH_DATA_REAL Launch_data_type_t = 5 LAUNCH_DATA_BOOL Launch_data_type_t = 6 LAUNCH_DATA_STRING Launch_data_type_t = 7 LAUNCH_DATA_OPAQUE Launch_data_type_t = 8 LAUNCH_DATA_ERRNO Launch_data_type_t = 9 LAUNCH_DATA_MACHPORT Launch_data_type_t = 10 )
func (Launch_data_type_t) String ¶
func (e Launch_data_type_t) String() string
type MDLabelDomain ¶
type MDLabelDomain int64
@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int64
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int64
@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
type Mach_vm_range_flags_t ¶
type Mach_vm_range_flags_t int64
const (
MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)
func (Mach_vm_range_flags_t) String ¶
func (e Mach_vm_range_flags_t) String() string
type Mach_vm_range_flavor_t ¶
type Mach_vm_range_flavor_t int64
const ( MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0 MACH_VM_RANGE_FLAVOR_V1 Mach_vm_range_flavor_t = 1 )
func (Mach_vm_range_flavor_t) String ¶
func (e Mach_vm_range_flavor_t) String() string
type Mach_vm_range_tag_t ¶
type Mach_vm_range_tag_t int64
const ( MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0 MACH_VM_RANGE_DATA Mach_vm_range_tag_t = 1 MACH_VM_RANGE_FIXED Mach_vm_range_tag_t = 2 )
func (Mach_vm_range_tag_t) String ¶
func (e Mach_vm_range_tag_t) String() string
type Mpo_flags_t ¶
type Mpo_flags_t int64
const ( MPO_PORT Mpo_flags_t = 0 MPO_SERVICE_PORT Mpo_flags_t = 1024 MPO_CONNECTION_PORT Mpo_flags_t = 2048 MPO_REPLY_PORT Mpo_flags_t = 4096 MPO_WEAK_REPLY_PORT Mpo_flags_t = 16384 MPO_NOTIFICATION_PORT Mpo_flags_t = 17408 MPO_EXCEPTION_PORT Mpo_flags_t = 32768 MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536 )
func (Mpo_flags_t) String ¶
func (e Mpo_flags_t) String() string
type Os_clockid_t ¶
type Os_clockid_t int64
const (
OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)
func (Os_clockid_t) String ¶
func (e Os_clockid_t) String() string
type Ptrauth_key ¶
type Ptrauth_key int64
const ( Ptrauth_key_none Ptrauth_key = -1 Ptrauth_key_asia Ptrauth_key = 0 Ptrauth_key_asib Ptrauth_key = 1 Ptrauth_key_asda Ptrauth_key = 2 Ptrauth_key_asdb Ptrauth_key = 3 Ptrauth_key_process_independent_code Ptrauth_key = 0 Ptrauth_key_process_dependent_code Ptrauth_key = 1 Ptrauth_key_process_independent_data Ptrauth_key = 2 Ptrauth_key_process_dependent_data Ptrauth_key = 3 Ptrauth_key_return_address Ptrauth_key = 1 Ptrauth_key_frame_pointer Ptrauth_key = 3 Ptrauth_key_function_pointer Ptrauth_key = 0 Ptrauth_key_block_function Ptrauth_key = 0 Ptrauth_key_cxx_vtable_pointer Ptrauth_key = 2 Ptrauth_key_method_list_pointer Ptrauth_key = 2 Ptrauth_key_objc_isa_pointer Ptrauth_key = 2 Ptrauth_key_objc_super_pointer Ptrauth_key = 2 Ptrauth_key_objc_sel_pointer Ptrauth_key = 3 Ptrauth_key_objc_class_ro_pointer Ptrauth_key = 2 Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2 Ptrauth_key_init_fini_pointer Ptrauth_key = 0 )
func (Ptrauth_key) String ¶
func (e Ptrauth_key) String() string
type Qos_class_t ¶
type Qos_class_t uint32
const ( QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33 QOS_CLASS_USER_INITIATED Qos_class_t = 25 QOS_CLASS_DEFAULT Qos_class_t = 21 QOS_CLASS_UTILITY Qos_class_t = 17 QOS_CLASS_BACKGROUND Qos_class_t = 9 QOS_CLASS_UNSPECIFIED Qos_class_t = 0 )
func (Qos_class_t) String ¶
func (e Qos_class_t) String() string
type Virtual_memory_guard_exception_code_t ¶
type Virtual_memory_guard_exception_code_t int64
const ( KGUARD_EXC_DEALLOC_GAP Virtual_memory_guard_exception_code_t = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE Virtual_memory_guard_exception_code_t = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE Virtual_memory_guard_exception_code_t = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE Virtual_memory_guard_exception_code_t = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE Virtual_memory_guard_exception_code_t = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE Virtual_memory_guard_exception_code_t = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE Virtual_memory_guard_exception_code_t = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION Virtual_memory_guard_exception_code_t = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY Virtual_memory_guard_exception_code_t = 13 KGUARD_EXC_SEC_ACCESS_FAULT Virtual_memory_guard_exception_code_t = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT Virtual_memory_guard_exception_code_t = 99 KGUARD_EXC_SEC_COPY_DENIED Virtual_memory_guard_exception_code_t = 100 KGUARD_EXC_SEC_SHARING_DENIED Virtual_memory_guard_exception_code_t = 101 KGUARD_EXC_MTE_SYNC_FAULT Virtual_memory_guard_exception_code_t = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204 )
func (Virtual_memory_guard_exception_code_t) String ¶
func (e Virtual_memory_guard_exception_code_t) String() string
type Xpc_listener_create_flags_t ¶
type Xpc_listener_create_flags_t int64
const ( XPC_LISTENER_CREATE_NONE Xpc_listener_create_flags_t = 0 XPC_LISTENER_CREATE_INACTIVE Xpc_listener_create_flags_t = 1 XPC_LISTENER_CREATE_FORCE_MACH Xpc_listener_create_flags_t = 2 XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4 )
func (Xpc_listener_create_flags_t) String ¶
func (e Xpc_listener_create_flags_t) String() string
type Xpc_session_create_flags_t ¶
type Xpc_session_create_flags_t int64
const ( XPC_SESSION_CREATE_NONE Xpc_session_create_flags_t = 0 XPC_SESSION_CREATE_INACTIVE Xpc_session_create_flags_t = 1 XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2 )
func (Xpc_session_create_flags_t) String ¶
func (e Xpc_session_create_flags_t) String() string
Source Files
¶
- CLBeacon.go
- CLBeaconIdentityCondition.go
- CLBeaconIdentityConstraint.go
- CLBeaconRegion.go
- CLCircularGeographicCondition.go
- CLCircularRegion.go
- CLCondition.go
- CLGeocoder.go
- CLHeading.go
- CLLocationManager.go
- CLLocationUpdater.go
- CLMonitor.go
- CLMonitorConfiguration.go
- CLMonitoringEvent.go
- CLMonitoringRecord.go
- CLPlacemark.go
- CLRegion.go
- CLUpdate.go
- CLVisit.go
- corelocation_enums.go
- corelocation_externs.go
- corelocation_protocols.go
- corelocation_runtime.go
- corelocation_structs.go
- doc.go