Documentation
¶
Overview ¶
Package corelocation provides a fluent Go API over the macOS CoreLocation 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.
Delegates ¶
A …Delegate interface is implemented by a plain Go value and installed with the matching With… setter; the package builds the Objective-C delegate object behind the scenes. Optional protocol methods are separate one-method …Handler interfaces — implement the ones you need on the same value and the framework calls them too.
Types ¶
Each base type below lists the concrete types you construct and pass where the base is accepted:
- BeaconIdentityCondition: BeaconIdentityConstraint
- Condition: BeaconIdentityCondition, CircularGeographicCondition
- Region: BeaconRegion, CircularRegion
Index ¶
- func DeferredLocationUpdatesAvailable() bool
- func HeadingAvailable() bool
- func IsRangingAvailable() bool
- func KCLErrorDomain() obj.Object
- func KCLErrorUserInfoAlternateRegionKey() obj.Object
- func KCLHeadingFilterNone() uintptr
- func LocationServicesEnabled() bool
- func RegionMonitoringAvailable() bool
- func RegionMonitoringEnabled() bool
- func SignificantLocationChangeMonitoringAvailable() bool
- type AccuracyAuthorization
- type ActivityType
- type AuthorizationStatus
- type Beacon
- func (b *Beacon) Accuracy() unsafe.Pointer
- func (b *Beacon) Description() string
- func (b *Beacon) IsEqual(other obj.Object) bool
- func (b *Beacon) IsKind(className string) bool
- func (b *Beacon) Major() *foundation.Number
- func (b *Beacon) Minor() *foundation.Number
- func (b *Beacon) Proximity() Proximity
- func (b *Beacon) ProximityUUID() *foundation.UUID
- func (b *Beacon) Rssi() int
- func (b *Beacon) String() string
- func (b *Beacon) Timestamp() time.Time
- func (b *Beacon) UUID() *foundation.UUID
- type BeaconIdentityCondition
- func BeaconIdentityConditionFromID(id objc.ID) *BeaconIdentityCondition
- func NewBeaconIdentityConditionWithUUID(uuid obj.Object) *BeaconIdentityCondition
- func NewBeaconIdentityConditionWithUUIDMajor(uuid obj.Object, major uint16) *BeaconIdentityCondition
- func NewBeaconIdentityConditionWithUUIDMajorMinor(uuid obj.Object, major uint16, minor uint16) *BeaconIdentityCondition
- type BeaconIdentityConditionProvider
- type BeaconIdentityConstraint
- type BeaconRegion
- func BeaconRegionFromID(id objc.ID) *BeaconRegion
- func NewBeaconRegionWithBeaconIdentityConstraintIdentifier(beaconIdentityConstraint *BeaconIdentityConstraint, identifier string) *BeaconRegion
- func NewBeaconRegionWithProximityUUIDIdentifier(proximityUUID obj.Object, identifier string) *BeaconRegion
- func NewBeaconRegionWithProximityUUIDMajorIdentifier(proximityUUID obj.Object, major uint16, identifier string) *BeaconRegion
- func NewBeaconRegionWithProximityUUIDMajorMinorIdentifier(proximityUUID obj.Object, major uint16, minor uint16, identifier string) *BeaconRegion
- func NewBeaconRegionWithUUIDIdentifier(uuid obj.Object, identifier string) *BeaconRegion
- func NewBeaconRegionWithUUIDMajorIdentifier(uuid obj.Object, major uint16, identifier string) *BeaconRegion
- func NewBeaconRegionWithUUIDMajorMinorIdentifier(uuid obj.Object, major uint16, minor uint16, identifier string) *BeaconRegion
- func (br *BeaconRegion) BeaconIdentityConstraint() *BeaconIdentityConstraint
- func (br *BeaconRegion) Major() *foundation.Number
- func (br *BeaconRegion) Minor() *foundation.Number
- func (br *BeaconRegion) NotifyEntryStateOnDisplay() bool
- func (br *BeaconRegion) PeripheralDataWithMeasuredPower(measuredPower obj.Object) obj.Object
- func (br *BeaconRegion) ProximityUUID() *foundation.UUID
- func (br *BeaconRegion) UUID() *foundation.UUID
- func (br *BeaconRegion) WithNotifyEntryStateOnDisplay(notifyEntryStateOnDisplay bool) *BeaconRegion
- func (br *BeaconRegion) WithNotifyOnEntry(notifyOnEntry bool) *BeaconRegion
- func (br *BeaconRegion) WithNotifyOnExit(notifyOnExit bool) *BeaconRegion
- type CLLocationCoordinate2D
- type CircularGeographicCondition
- type CircularRegion
- type Clockid
- type Condition
- type ConditionProvider
- type DeviceOrientation
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type Error
- type FilesecProperty
- type Flag
- type Geocoder
- func (g *Geocoder) CancelGeocode()
- func (g *Geocoder) Description() string
- func (g *Geocoder) GeocodeAddressDictionaryCompletionHandler(addressDictionary obj.Object, ...)
- func (g *Geocoder) GeocodeAddressStringCompletionHandler(addressString string, completionHandler func(obj.Object, unsafe.Pointer))
- func (g *Geocoder) GeocodeAddressStringInRegionCompletionHandler(addressString string, region *Region, ...)
- func (g *Geocoder) GeocodeAddressStringInRegionPreferredLocaleCompletionHandler(addressString string, region *Region, locale obj.Object, ...)
- func (g *Geocoder) GeocodePostalAddressCompletionHandler(postalAddress obj.Object, completionHandler func(obj.Object, unsafe.Pointer))
- func (g *Geocoder) GeocodePostalAddressPreferredLocaleCompletionHandler(postalAddress obj.Object, locale obj.Object, ...)
- func (g *Geocoder) IsEqual(other obj.Object) bool
- func (g *Geocoder) IsGeocoding() bool
- func (g *Geocoder) IsKind(className string) bool
- func (g *Geocoder) ReverseGeocodeLocationCompletionHandler(location unsafe.Pointer, completionHandler func(obj.Object, unsafe.Pointer))
- func (g *Geocoder) ReverseGeocodeLocationPreferredLocaleCompletionHandler(location unsafe.Pointer, locale obj.Object, ...)
- func (g *Geocoder) String() string
- type Heading
- func (h *Heading) Description() string
- func (h *Heading) HeadingAccuracy() unsafe.Pointer
- func (h *Heading) IsEqual(other obj.Object) bool
- func (h *Heading) IsKind(className string) bool
- func (h *Heading) MagneticHeading() unsafe.Pointer
- func (h *Heading) String() string
- func (h *Heading) Timestamp() time.Time
- func (h *Heading) TrueHeading() unsafe.Pointer
- func (h *Heading) X() float64
- func (h *Heading) Y() float64
- func (h *Heading) Z() float64
- type Idtype
- type IpcInfoObjectType
- type LaunchDataType
- type LiveUpdateConfiguration
- type LocationManager
- func (lm *LocationManager) AccuracyAuthorization() AccuracyAuthorization
- func (lm *LocationManager) ActivityType() ActivityType
- func (lm *LocationManager) AllowDeferredLocationUpdatesUntilTraveledTimeout(distance unsafe.Pointer, timeout float64)
- func (lm *LocationManager) AllowsBackgroundLocationUpdates() bool
- func (lm *LocationManager) AuthorizationStatus() AuthorizationStatus
- func (lm *LocationManager) Description() string
- func (lm *LocationManager) DesiredAccuracy() unsafe.Pointer
- func (lm *LocationManager) DisallowDeferredLocationUpdates()
- func (lm *LocationManager) DismissHeadingCalibrationDisplay()
- func (lm *LocationManager) DistanceFilter() unsafe.Pointer
- func (lm *LocationManager) Heading() *Heading
- func (lm *LocationManager) HeadingAvailable() bool
- func (lm *LocationManager) HeadingFilter() unsafe.Pointer
- func (lm *LocationManager) HeadingOrientation() DeviceOrientation
- func (lm *LocationManager) IsAuthorizedForWidgetUpdates() bool
- func (lm *LocationManager) IsEqual(other obj.Object) bool
- func (lm *LocationManager) IsKind(className string) bool
- func (lm *LocationManager) Location() unsafe.Pointer
- func (lm *LocationManager) LocationServicesEnabled() bool
- func (lm *LocationManager) MaximumRegionMonitoringDistance() unsafe.Pointer
- func (lm *LocationManager) MonitoredRegions() []*Region
- func (lm *LocationManager) PausesLocationUpdatesAutomatically() bool
- func (lm *LocationManager) Purpose() string
- func (lm *LocationManager) RangedBeaconConstraints() []*BeaconIdentityConstraint
- func (lm *LocationManager) RangedRegions() []*Region
- func (lm *LocationManager) RequestAlwaysAuthorization()
- func (lm *LocationManager) RequestLocation()
- func (lm *LocationManager) RequestStateForRegion(region *Region)
- func (lm *LocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKey(purposeKey string)
- func (lm *LocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKeyCompletion(ctx context.Context, purposeKey string) error
- func (lm *LocationManager) RequestWhenInUseAuthorization()
- func (lm *LocationManager) StartMonitoringForRegion(region *Region)
- func (lm *LocationManager) StartMonitoringForRegionDesiredAccuracy(region *Region, accuracy unsafe.Pointer)
- func (lm *LocationManager) StartMonitoringSignificantLocationChanges()
- func (lm *LocationManager) StartMonitoringVisits()
- func (lm *LocationManager) StartRangingBeaconsInRegion(region *BeaconRegion)
- func (lm *LocationManager) StartRangingBeaconsSatisfyingConstraint(constraint *BeaconIdentityConstraint)
- func (lm *LocationManager) StartUpdatingHeading()
- func (lm *LocationManager) StartUpdatingLocation()
- func (lm *LocationManager) StopMonitoringForRegion(region *Region)
- func (lm *LocationManager) StopMonitoringSignificantLocationChanges()
- func (lm *LocationManager) StopMonitoringVisits()
- func (lm *LocationManager) StopRangingBeaconsInRegion(region *BeaconRegion)
- func (lm *LocationManager) StopRangingBeaconsSatisfyingConstraint(constraint *BeaconIdentityConstraint)
- func (lm *LocationManager) StopUpdatingLocation()
- func (lm *LocationManager) String() string
- func (lm *LocationManager) WithActivityType(activityType ActivityType) *LocationManager
- func (lm *LocationManager) WithAllowsBackgroundLocationUpdates(allowsBackgroundLocationUpdates bool) *LocationManager
- func (lm *LocationManager) WithDelegate(delegate LocationManagerDelegate) *LocationManager
- func (lm *LocationManager) WithDesiredAccuracy(desiredAccuracy unsafe.Pointer) *LocationManager
- func (lm *LocationManager) WithDistanceFilter(distanceFilter unsafe.Pointer) *LocationManager
- func (lm *LocationManager) WithHeadingFilter(headingFilter unsafe.Pointer) *LocationManager
- func (lm *LocationManager) WithHeadingOrientation(headingOrientation DeviceOrientation) *LocationManager
- func (lm *LocationManager) WithPausesLocationUpdatesAutomatically(pausesLocationUpdatesAutomatically bool) *LocationManager
- func (lm *LocationManager) WithPurpose(purpose string) *LocationManager
- type LocationManagerDelegate
- type LocationManagerDelegateLocationManagerDidChangeAuthorizationHandler
- type LocationManagerDelegateLocationManagerDidChangeAuthorizationStatusHandler
- type LocationManagerDelegateLocationManagerDidDetermineStateForRegionHandler
- type LocationManagerDelegateLocationManagerDidEnterRegionHandler
- type LocationManagerDelegateLocationManagerDidExitRegionHandler
- type LocationManagerDelegateLocationManagerDidFailRangingBeaconsForConstraintErrorHandler
- type LocationManagerDelegateLocationManagerDidFailWithErrorHandler
- type LocationManagerDelegateLocationManagerDidFinishDeferredUpdatesWithErrorHandler
- type LocationManagerDelegateLocationManagerDidPauseLocationUpdatesHandler
- type LocationManagerDelegateLocationManagerDidRangeBeaconsInRegionHandler
- type LocationManagerDelegateLocationManagerDidRangeBeaconsSatisfyingConstraintHandler
- type LocationManagerDelegateLocationManagerDidResumeLocationUpdatesHandler
- type LocationManagerDelegateLocationManagerDidStartMonitoringForRegionHandler
- type LocationManagerDelegateLocationManagerDidUpdateHeadingHandler
- type LocationManagerDelegateLocationManagerDidUpdateLocationsHandler
- type LocationManagerDelegateLocationManagerDidVisitHandler
- type LocationManagerDelegateLocationManagerMonitoringDidFailForRegionWithErrorHandler
- type LocationManagerDelegateLocationManagerRangingBeaconsDidFailForRegionWithErrorHandler
- type LocationManagerDelegateLocationManagerShouldDisplayHeadingCalibrationHandler
- type LocationUpdater
- func LiveUpdaterWithConfigurationQueueHandler(configuration LiveUpdateConfiguration, queue dispatch.Queue, ...) *LocationUpdater
- func LiveUpdaterWithQueueHandler(queue dispatch.Queue, handler func(obj.Object)) *LocationUpdater
- func LocationUpdaterFromID(id objc.ID) *LocationUpdater
- func NewLocationUpdater() *LocationUpdater
- func (lu *LocationUpdater) Description() string
- func (lu *LocationUpdater) Invalidate()
- func (lu *LocationUpdater) IsEqual(other obj.Object) bool
- func (lu *LocationUpdater) IsKind(className string) bool
- func (lu *LocationUpdater) Pause()
- func (lu *LocationUpdater) Resume()
- func (lu *LocationUpdater) String() string
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type Monitor
- func (m *Monitor) AddConditionForMonitoringIdentifier(condition *Condition, identifier string)
- func (m *Monitor) AddConditionForMonitoringIdentifierAssumedState(condition *Condition, identifier string, state MonitoringState)
- func (m *Monitor) Description() string
- func (m *Monitor) IsEqual(other obj.Object) bool
- func (m *Monitor) IsKind(className string) bool
- func (m *Monitor) MonitoredIdentifiers() []string
- func (m *Monitor) MonitoringRecordForIdentifier(identifier string) *MonitoringRecord
- func (m *Monitor) Name() string
- func (m *Monitor) RemoveConditionFromMonitoringWithIdentifier(identifier string)
- func (m *Monitor) String() string
- type MonitorConfiguration
- func (mc *MonitorConfiguration) Description() string
- func (mc *MonitorConfiguration) IsEqual(other obj.Object) bool
- func (mc *MonitorConfiguration) IsKind(className string) bool
- func (mc *MonitorConfiguration) Name() string
- func (mc *MonitorConfiguration) Queue() *foundation.Object
- func (mc *MonitorConfiguration) String() string
- type MonitoringEvent
- func (me *MonitoringEvent) AccuracyLimited() bool
- func (me *MonitoringEvent) AuthorizationDenied() bool
- func (me *MonitoringEvent) AuthorizationDeniedGlobally() bool
- func (me *MonitoringEvent) AuthorizationRequestInProgress() bool
- func (me *MonitoringEvent) AuthorizationRestricted() bool
- func (me *MonitoringEvent) ConditionLimitExceeded() bool
- func (me *MonitoringEvent) ConditionUnsupported() bool
- func (me *MonitoringEvent) Date() time.Time
- func (me *MonitoringEvent) Description() string
- func (me *MonitoringEvent) Identifier() string
- func (me *MonitoringEvent) InsufficientlyInUse() bool
- func (me *MonitoringEvent) IsEqual(other obj.Object) bool
- func (me *MonitoringEvent) IsKind(className string) bool
- func (me *MonitoringEvent) PersistenceUnavailable() bool
- func (me *MonitoringEvent) Refinement() *Condition
- func (me *MonitoringEvent) ServiceSessionRequired() bool
- func (me *MonitoringEvent) State() MonitoringState
- func (me *MonitoringEvent) String() string
- type MonitoringRecord
- func (mr *MonitoringRecord) Condition() *Condition
- func (mr *MonitoringRecord) Description() string
- func (mr *MonitoringRecord) IsEqual(other obj.Object) bool
- func (mr *MonitoringRecord) IsKind(className string) bool
- func (mr *MonitoringRecord) LastEvent() *MonitoringEvent
- func (mr *MonitoringRecord) String() string
- type MonitoringState
- type MpoFlags
- type OSClockid
- type Perm
- type Placemark
- func (p *Placemark) AddressDictionary() obj.Object
- func (p *Placemark) AdministrativeArea() string
- func (p *Placemark) AreasOfInterest() []string
- func (p *Placemark) Country() string
- func (p *Placemark) Description() string
- func (p *Placemark) ISOcountryCode() string
- func (p *Placemark) InlandWater() string
- func (p *Placemark) IsEqual(other obj.Object) bool
- func (p *Placemark) IsKind(className string) bool
- func (p *Placemark) Locality() string
- func (p *Placemark) Location() unsafe.Pointer
- func (p *Placemark) Name() string
- func (p *Placemark) Ocean() string
- func (p *Placemark) PostalAddress() obj.Object
- func (p *Placemark) PostalCode() string
- func (p *Placemark) Region() *Region
- func (p *Placemark) String() string
- func (p *Placemark) SubAdministrativeArea() string
- func (p *Placemark) SubLocality() string
- func (p *Placemark) SubThoroughfare() string
- func (p *Placemark) Thoroughfare() string
- func (p *Placemark) TimeZone() *foundation.TimeZone
- type Proximity
- type PtrauthKey
- type QosClass
- type Region
- func (r *Region) Center() unsafe.Pointer
- func (r *Region) ContainsCoordinate(coordinate unsafe.Pointer) bool
- func (r *Region) Description() string
- func (r *Region) Identifier() string
- func (r *Region) IsEqual(other obj.Object) bool
- func (r *Region) IsKind(className string) bool
- func (r *Region) NotifyOnEntry() bool
- func (r *Region) NotifyOnExit() bool
- func (r *Region) Radius() unsafe.Pointer
- func (r *Region) String() string
- func (r *Region) WithNotifyOnEntry(notifyOnEntry bool) *Region
- func (r *Region) WithNotifyOnExit(notifyOnExit bool) *Region
- type RegionProvider
- type RegionState
- type Tag
- type Type
- type Update
- func (u *Update) AccuracyLimited() bool
- func (u *Update) AuthorizationDenied() bool
- func (u *Update) AuthorizationDeniedGlobally() bool
- func (u *Update) AuthorizationRequestInProgress() bool
- func (u *Update) AuthorizationRestricted() bool
- func (u *Update) Description() string
- func (u *Update) InsufficientlyInUse() bool
- func (u *Update) IsEqual(other obj.Object) bool
- func (u *Update) IsKind(className string) bool
- func (u *Update) IsStationary() bool
- func (u *Update) Location() unsafe.Pointer
- func (u *Update) LocationUnavailable() bool
- func (u *Update) ServiceSessionRequired() bool
- func (u *Update) Stationary() bool
- func (u *Update) String() string
- type VirtualMemoryGuardExceptionCode
- type Visit
- func (v_ *Visit) ArrivalDate() time.Time
- func (v_ *Visit) Coordinate() unsafe.Pointer
- func (v_ *Visit) DepartureDate() time.Time
- func (v_ *Visit) Description() string
- func (v_ *Visit) HorizontalAccuracy() unsafe.Pointer
- func (v_ *Visit) IsEqual(other obj.Object) bool
- func (v_ *Visit) IsKind(className string) bool
- func (v_ *Visit) String() string
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeferredLocationUpdatesAvailable ¶ added in v0.17.0
func DeferredLocationUpdatesAvailable() bool
DeferredLocationUpdatesAvailable wraps the corresponding Objective-C method.
func HeadingAvailable ¶ added in v0.17.0
func HeadingAvailable() bool
HeadingAvailable reports whether returns a Boolean value indicating whether the location manager is able to generate heading-related events.
func IsRangingAvailable ¶ added in v0.17.0
func IsRangingAvailable() bool
IsRangingAvailable reports whether returns a Boolean value indicating whether the device supports ranging of beacons that use the iBeacon protocol.
func KCLErrorDomain ¶
KCLErrorDomain returns the string constant kCLErrorDomain, for use as a dictionary key or argument.
func KCLErrorUserInfoAlternateRegionKey ¶
KCLErrorUserInfoAlternateRegionKey returns the string constant kCLErrorUserInfoAlternateRegionKey, for use as a dictionary key or argument.
func KCLHeadingFilterNone ¶
func KCLHeadingFilterNone() uintptr
KCLHeadingFilterNone returns the address of the symbol kCLHeadingFilterNone.
func LocationServicesEnabled ¶ added in v0.17.0
func LocationServicesEnabled() bool
LocationServicesEnabled reports whether returns a Boolean value indicating whether location services are enabled on the device.
func RegionMonitoringAvailable ¶ added in v0.17.0
func RegionMonitoringAvailable() bool
RegionMonitoringAvailable wraps the corresponding Objective-C method.
func RegionMonitoringEnabled ¶ added in v0.17.0
func RegionMonitoringEnabled() bool
RegionMonitoringEnabled wraps the corresponding Objective-C method.
func SignificantLocationChangeMonitoringAvailable ¶ added in v0.17.0
func SignificantLocationChangeMonitoringAvailable() bool
SignificantLocationChangeMonitoringAvailable reports whether returns a Boolean value indicating whether the significant-change location service is available on the device.
Types ¶
type AccuracyAuthorization ¶ added in v0.17.0
type AccuracyAuthorization 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. AccuracyAuthorizationFullAccuracy AccuracyAuthorization = 0 // The user authorized the app to access location data with reduced accuracy. AccuracyAuthorizationReducedAccuracy AccuracyAuthorization = 1 )
func (AccuracyAuthorization) String ¶ added in v0.17.0
func (e AccuracyAuthorization) String() string
String returns the AccuracyAuthorization constant's name, or its numeric form when the value is not a known constant.
type ActivityType ¶ added in v0.17.0
type ActivityType 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. ActivityTypeOther ActivityType = 1 ActivityTypeAutomotiveNavigation ActivityType = 2 // The value that indicates positioning during dedicated fitness sessions, such as walking workouts, running workouts, cycling workouts, and so on. ActivityTypeFitness ActivityType = 3 ActivityTypeOtherNavigation ActivityType = 4 // The value that indicates activities in the air. ActivityTypeAirborne ActivityType = 5 )
func (ActivityType) String ¶ added in v0.17.0
func (e ActivityType) String() string
String returns the ActivityType constant's name, or its numeric form when the value is not a known constant.
type AuthorizationStatus ¶ added in v0.17.0
type AuthorizationStatus 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 AuthorizationStatus = 0 // The app is not authorized to use location services. KCLAuthorizationStatusRestricted AuthorizationStatus = 1 // The user denied the use of location services for the app or they are disabled globally in Settings. KCLAuthorizationStatusDenied AuthorizationStatus = 2 // The user authorized the app to start location services at any time. KCLAuthorizationStatusAuthorizedAlways AuthorizationStatus = 3 // The user authorized the app to use location services. KCLAuthorizationStatusAuthorized AuthorizationStatus = 3 )
func CLLocationManagerAuthorizationStatus ¶
func CLLocationManagerAuthorizationStatus() AuthorizationStatus
CLLocationManagerAuthorizationStatus returns the cl location manager authorization 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 Beacon ¶ added in v0.17.0
Beacon is an idiomatic wrapper over the Objective-C class CLBeacon.
Information about an observed iBeacon device and its relative distance to a person’s device.
func BeaconFromID ¶ added in v0.17.0
BeaconFromID adopts an existing Objective-C object as a Beacon (nil for 0), retaining it and registering a release finalizer.
func (*Beacon) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Beacon) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Beacon) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Beacon) Major ¶ added in v0.17.0
func (b *Beacon) Major() *foundation.Number
Major returns the major.
func (*Beacon) Minor ¶ added in v0.17.0
func (b *Beacon) Minor() *foundation.Number
Minor returns the minor.
func (*Beacon) ProximityUUID ¶ added in v0.17.0
func (b *Beacon) ProximityUUID() *foundation.UUID
ProximityUUID returns the proximity UUID.
func (*Beacon) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Beacon) UUID ¶ added in v0.17.0
func (b *Beacon) UUID() *foundation.UUID
UUID returns the UUID.
type BeaconIdentityCondition ¶ added in v0.17.0
type BeaconIdentityCondition struct {
Condition
}
BeaconIdentityCondition is an idiomatic wrapper over the Objective-C class CLBeaconIdentityCondition.
BeaconIdentityCondition is an abstract base — you do not construct it directly. Construct one of BeaconIdentityConstraint and pass it where a BeaconIdentityCondition is accepted.
A condition that describes the identity characteristics of a beacon.
func BeaconIdentityConditionFromID ¶ added in v0.17.0
func BeaconIdentityConditionFromID(id objc.ID) *BeaconIdentityCondition
BeaconIdentityConditionFromID adopts an existing Objective-C object as a BeaconIdentityCondition (nil for 0), retaining it and registering a release finalizer.
func NewBeaconIdentityConditionWithUUID ¶ added in v0.17.0
func NewBeaconIdentityConditionWithUUID(uuid obj.Object) *BeaconIdentityCondition
NewBeaconIdentityConditionWithUUID creates a new beacon identity condition with the identifier you specify.
func NewBeaconIdentityConditionWithUUIDMajor ¶ added in v0.17.0
func NewBeaconIdentityConditionWithUUIDMajor(uuid obj.Object, major uint16) *BeaconIdentityCondition
NewBeaconIdentityConditionWithUUIDMajor creates a new beacon identity condition with the identifier and major value you specify.
func NewBeaconIdentityConditionWithUUIDMajorMinor ¶ added in v0.17.0
func NewBeaconIdentityConditionWithUUIDMajorMinor(uuid obj.Object, major uint16, minor uint16) *BeaconIdentityCondition
NewBeaconIdentityConditionWithUUIDMajorMinor creates a new beacon identity condition with the identifier, and major and minor values you specify.
func (*BeaconIdentityCondition) Major ¶ added in v0.17.0
func (bic *BeaconIdentityCondition) Major() *foundation.Number
Major returns the major.
func (*BeaconIdentityCondition) Minor ¶ added in v0.17.0
func (bic *BeaconIdentityCondition) Minor() *foundation.Number
Minor returns the minor.
func (*BeaconIdentityCondition) UUID ¶ added in v0.17.0
func (bic *BeaconIdentityCondition) UUID() *foundation.UUID
UUID returns the UUID.
type BeaconIdentityConditionProvider ¶ added in v0.17.0
type BeaconIdentityConditionProvider interface {
objref.Object
// contains filtered or unexported methods
}
BeaconIdentityConditionProvider is accepted wherever a CLBeaconIdentityCondition (or one of its subclasses) is expected.
type BeaconIdentityConstraint ¶ added in v0.17.0
type BeaconIdentityConstraint struct {
BeaconIdentityCondition
}
BeaconIdentityConstraint is an idiomatic wrapper over the Objective-C class CLBeaconIdentityConstraint.
It embeds BeaconIdentityCondition, promoting that type's methods.
Identity characteristics that can match one or more beacons.
func BeaconIdentityConstraintFromID ¶ added in v0.17.0
func BeaconIdentityConstraintFromID(id objc.ID) *BeaconIdentityConstraint
BeaconIdentityConstraintFromID adopts an existing Objective-C object as a BeaconIdentityConstraint (nil for 0), retaining it and registering a release finalizer.
func NewBeaconIdentityConstraint ¶ added in v0.17.0
func NewBeaconIdentityConstraint() *BeaconIdentityConstraint
NewBeaconIdentityConstraint creates a new BeaconIdentityConstraint.
type BeaconRegion ¶ added in v0.17.0
type BeaconRegion struct {
Region
}
BeaconRegion is an idiomatic wrapper over the Objective-C class CLBeaconRegion.
It embeds Region, promoting that type's methods.
A region for detecting the presence of iBeacon devices.
func BeaconRegionFromID ¶ added in v0.17.0
func BeaconRegionFromID(id objc.ID) *BeaconRegion
BeaconRegionFromID adopts an existing Objective-C object as a BeaconRegion (nil for 0), retaining it and registering a release finalizer.
func NewBeaconRegionWithBeaconIdentityConstraintIdentifier ¶ added in v0.17.0
func NewBeaconRegionWithBeaconIdentityConstraintIdentifier(beaconIdentityConstraint *BeaconIdentityConstraint, identifier string) *BeaconRegion
NewBeaconRegionWithBeaconIdentityConstraintIdentifier creates and returns a region object that targets beacons that satisfy the specified beacon identity constraints.
func NewBeaconRegionWithProximityUUIDIdentifier ¶ added in v0.17.0
func NewBeaconRegionWithProximityUUIDIdentifier(proximityUUID obj.Object, identifier string) *BeaconRegion
NewBeaconRegionWithProximityUUIDIdentifier creates and returns a region object that targets a beacon with the specified UUID.
func NewBeaconRegionWithProximityUUIDMajorIdentifier ¶ added in v0.17.0
func NewBeaconRegionWithProximityUUIDMajorIdentifier(proximityUUID obj.Object, major uint16, identifier string) *BeaconRegion
NewBeaconRegionWithProximityUUIDMajorIdentifier creates and returns a region object that targets a beacon with the specified proximity ID and major value.
func NewBeaconRegionWithProximityUUIDMajorMinorIdentifier ¶ added in v0.17.0
func NewBeaconRegionWithProximityUUIDMajorMinorIdentifier(proximityUUID obj.Object, major uint16, minor uint16, identifier string) *BeaconRegion
NewBeaconRegionWithProximityUUIDMajorMinorIdentifier creates and returns a region object that targets a beacon with the specified proximity ID, major value, and minor value.
func NewBeaconRegionWithUUIDIdentifier ¶ added in v0.17.0
func NewBeaconRegionWithUUIDIdentifier(uuid obj.Object, identifier string) *BeaconRegion
NewBeaconRegionWithUUIDIdentifier creates and returns a region object that targets beacons with the specified UUID.
func NewBeaconRegionWithUUIDMajorIdentifier ¶ added in v0.17.0
func NewBeaconRegionWithUUIDMajorIdentifier(uuid obj.Object, major uint16, identifier string) *BeaconRegion
NewBeaconRegionWithUUIDMajorIdentifier creates and returns a region object that targets beacons with the specified UUID and major value.
func NewBeaconRegionWithUUIDMajorMinorIdentifier ¶ added in v0.17.0
func NewBeaconRegionWithUUIDMajorMinorIdentifier(uuid obj.Object, major uint16, minor uint16, identifier string) *BeaconRegion
NewBeaconRegionWithUUIDMajorMinorIdentifier creates and returns a region object that targets beacons with the specified UUID, and major and minor values.
func (*BeaconRegion) BeaconIdentityConstraint ¶ added in v0.17.0
func (br *BeaconRegion) BeaconIdentityConstraint() *BeaconIdentityConstraint
BeaconIdentityConstraint returns the beacon identity constraint.
func (*BeaconRegion) Major ¶ added in v0.17.0
func (br *BeaconRegion) Major() *foundation.Number
Major returns the major.
func (*BeaconRegion) Minor ¶ added in v0.17.0
func (br *BeaconRegion) Minor() *foundation.Number
Minor returns the minor.
func (*BeaconRegion) NotifyEntryStateOnDisplay ¶ added in v0.17.0
func (br *BeaconRegion) NotifyEntryStateOnDisplay() bool
NotifyEntryStateOnDisplay wraps the corresponding Objective-C method.
func (*BeaconRegion) PeripheralDataWithMeasuredPower ¶ added in v0.17.0
func (br *BeaconRegion) PeripheralDataWithMeasuredPower(measuredPower obj.Object) obj.Object
PeripheralDataWithMeasuredPower retrieves data that you can use to advertise the current device as a beacon.
func (*BeaconRegion) ProximityUUID ¶ added in v0.17.0
func (br *BeaconRegion) ProximityUUID() *foundation.UUID
ProximityUUID returns the proximity UUID.
func (*BeaconRegion) UUID ¶ added in v0.17.0
func (br *BeaconRegion) UUID() *foundation.UUID
UUID returns the UUID.
func (*BeaconRegion) WithNotifyEntryStateOnDisplay ¶ added in v0.17.0
func (br *BeaconRegion) WithNotifyEntryStateOnDisplay(notifyEntryStateOnDisplay bool) *BeaconRegion
WithNotifyEntryStateOnDisplay sets a Boolean value that indicates whether Core Location sends beacon notifications when the device’s display is on.
func (*BeaconRegion) WithNotifyOnEntry ¶ added in v0.17.0
func (br *BeaconRegion) WithNotifyOnEntry(notifyOnEntry bool) *BeaconRegion
WithNotifyOnEntry sets a Boolean indicating that notifications are generated upon entry into the region.
func (*BeaconRegion) WithNotifyOnExit ¶ added in v0.17.0
func (br *BeaconRegion) WithNotifyOnExit(notifyOnExit bool) *BeaconRegion
WithNotifyOnExit sets a Boolean indicating that notifications are generated upon exit from the region.
type CLLocationCoordinate2D ¶
type CLLocationCoordinate2D struct{}
The latitude and longitude associated with a location, specified using the WGS 84 reference frame.
type CircularGeographicCondition ¶ added in v0.17.0
type CircularGeographicCondition struct {
Condition
}
CircularGeographicCondition is an idiomatic wrapper over the Objective-C class CLCircularGeographicCondition.
It embeds Condition, promoting that type's methods.
A circular geographic condition that a center point and radius define.
func CircularGeographicConditionFromID ¶ added in v0.17.0
func CircularGeographicConditionFromID(id objc.ID) *CircularGeographicCondition
CircularGeographicConditionFromID adopts an existing Objective-C object as a CircularGeographicCondition (nil for 0), retaining it and registering a release finalizer.
func NewCircularGeographicConditionWithCenterRadius ¶ added in v0.17.0
func NewCircularGeographicConditionWithCenterRadius(center unsafe.Pointer, radius unsafe.Pointer) *CircularGeographicCondition
NewCircularGeographicConditionWithCenterRadius creates a new circular geographic condition with the center point and radius you provide.
func (*CircularGeographicCondition) Center ¶ added in v0.18.0
func (cgc *CircularGeographicCondition) Center() unsafe.Pointer
Center returns the center.
func (*CircularGeographicCondition) Radius ¶ added in v0.18.0
func (cgc *CircularGeographicCondition) Radius() unsafe.Pointer
Radius returns the radius.
type CircularRegion ¶ added in v0.17.0
type CircularRegion struct {
Region
}
CircularRegion is an idiomatic wrapper over the Objective-C class CLCircularRegion.
It embeds Region, promoting that type's methods.
A circular geographic region that a center point and radius deine.
func CircularRegionFromID ¶ added in v0.17.0
func CircularRegionFromID(id objc.ID) *CircularRegion
CircularRegionFromID adopts an existing Objective-C object as a CircularRegion (nil for 0), retaining it and registering a release finalizer.
func NewCircularRegionWithCenterRadiusIdentifier ¶ added in v0.17.0
func NewCircularRegionWithCenterRadiusIdentifier(center unsafe.Pointer, radius unsafe.Pointer, identifier string) *CircularRegion
NewCircularRegionWithCenterRadiusIdentifier creates and returns a region object defining a circular geographic area.
func (*CircularRegion) WithNotifyOnEntry ¶ added in v0.17.0
func (cr *CircularRegion) WithNotifyOnEntry(notifyOnEntry bool) *CircularRegion
WithNotifyOnEntry sets a Boolean indicating that notifications are generated upon entry into the region.
func (*CircularRegion) WithNotifyOnExit ¶ added in v0.17.0
func (cr *CircularRegion) WithNotifyOnExit(notifyOnExit bool) *CircularRegion
WithNotifyOnExit sets a Boolean indicating that notifications are generated upon exit from the region.
type Condition ¶ added in v0.17.0
Condition is an idiomatic wrapper over the Objective-C class CLCondition.
Condition is an abstract base — you do not construct it directly. Construct one of BeaconIdentityCondition, CircularGeographicCondition and pass it where a Condition is accepted.
The abstract base class for all other monitor conditions.
func ConditionFromID ¶ added in v0.17.0
ConditionFromID adopts an existing Objective-C object as a Condition (nil for 0), retaining it and registering a release finalizer.
func (*Condition) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Condition) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
type ConditionProvider ¶ added in v0.17.0
ConditionProvider is accepted wherever a CLCondition (or one of its subclasses) is expected.
type DeviceOrientation ¶ added in v0.17.0
type DeviceOrientation int32
Constants indicating the physical orientation of the device.
const ( // The orientation is currently not known. DeviceOrientationUnknown DeviceOrientation = 0 // The device is in portrait mode, with the device held upright and the home button at the bottom. DeviceOrientationPortrait DeviceOrientation = 1 // The device is in portrait mode but upside down, with the device held upright and the home button at the top. DeviceOrientationPortraitUpsideDown DeviceOrientation = 2 // The device is in landscape mode, with the device held upright and the home button on the right side. DeviceOrientationLandscapeLeft DeviceOrientation = 3 // The device is in landscape mode, with the device held upright and the home button on the left side. DeviceOrientationLandscapeRight DeviceOrientation = 4 // The device is held parallel to the ground with the screen facing upwards. DeviceOrientationFaceUp DeviceOrientation = 5 // The device is held parallel to the ground with the screen facing downwards. DeviceOrientationFaceDown DeviceOrientation = 6 )
func (DeviceOrientation) String ¶ added in v0.17.0
func (e DeviceOrientation) String() string
String returns the DeviceOrientation 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 Error ¶ added in v0.17.0
type Error int64
A Core Location error.
const ( KCLErrorLocationUnknown Error = 0 KCLErrorDenied Error = 1 KCLErrorNetwork Error = 2 KCLErrorHeadingFailure Error = 3 KCLErrorRegionMonitoringDenied Error = 4 KCLErrorRegionMonitoringFailure Error = 5 KCLErrorRegionMonitoringSetupDelayed Error = 6 KCLErrorRegionMonitoringResponseDelayed Error = 7 KCLErrorGeocodeFoundNoResult Error = 8 KCLErrorGeocodeFoundPartialResult Error = 9 KCLErrorGeocodeCanceled Error = 10 KCLErrorDeferredFailed Error = 11 KCLErrorDeferredNotUpdatingLocation Error = 12 KCLErrorDeferredAccuracyTooLow Error = 13 KCLErrorDeferredDistanceFiltered Error = 14 KCLErrorDeferredCanceled Error = 15 KCLErrorRangingFailure Error = 17 KCLErrorPromptDeclined Error = 18 KCLErrorHistoricalLocationError Error = 19 )
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 Geocoder ¶ added in v0.17.0
Geocoder is an idiomatic wrapper over the Objective-C class CLGeocoder.
An interface for converting between geographic coordinates and place names.
func GeocoderFromID ¶ added in v0.17.0
GeocoderFromID adopts an existing Objective-C object as a Geocoder (nil for 0), retaining it and registering a release finalizer.
func NewGeocoder ¶ added in v0.17.0
func NewGeocoder() *Geocoder
NewGeocoder creates a new Geocoder.
func (*Geocoder) CancelGeocode ¶ added in v0.17.0
func (g *Geocoder) CancelGeocode()
CancelGeocode cancels a pending geocoding request.
func (*Geocoder) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Geocoder) GeocodeAddressDictionaryCompletionHandler ¶ added in v0.18.0
func (g *Geocoder) GeocodeAddressDictionaryCompletionHandler(addressDictionary obj.Object, completionHandler func(obj.Object, unsafe.Pointer))
GeocodeAddressDictionaryCompletionHandler submits a forward-geocoding request using the specified address dictionary.
func (*Geocoder) GeocodeAddressStringCompletionHandler ¶ added in v0.18.0
func (g *Geocoder) GeocodeAddressStringCompletionHandler(addressString string, completionHandler func(obj.Object, unsafe.Pointer))
GeocodeAddressStringCompletionHandler submits a forward-geocoding request using the specified string.
func (*Geocoder) GeocodeAddressStringInRegionCompletionHandler ¶ added in v0.18.0
func (g *Geocoder) GeocodeAddressStringInRegionCompletionHandler(addressString string, region *Region, completionHandler func(obj.Object, unsafe.Pointer))
GeocodeAddressStringInRegionCompletionHandler submits a forward-geocoding request using the specified string and region information.
func (*Geocoder) GeocodeAddressStringInRegionPreferredLocaleCompletionHandler ¶ added in v0.18.0
func (g *Geocoder) GeocodeAddressStringInRegionPreferredLocaleCompletionHandler(addressString string, region *Region, locale obj.Object, completionHandler func(obj.Object, unsafe.Pointer))
GeocodeAddressStringInRegionPreferredLocaleCompletionHandler submits a forward-geocoding requesting using the specified address string and locale information.
func (*Geocoder) GeocodePostalAddressCompletionHandler ¶ added in v0.18.0
func (g *Geocoder) GeocodePostalAddressCompletionHandler(postalAddress obj.Object, completionHandler func(obj.Object, unsafe.Pointer))
GeocodePostalAddressCompletionHandler submits a forward-geocoding requesting using the specified Contacts framework information.
func (*Geocoder) GeocodePostalAddressPreferredLocaleCompletionHandler ¶ added in v0.18.0
func (g *Geocoder) GeocodePostalAddressPreferredLocaleCompletionHandler(postalAddress obj.Object, locale obj.Object, completionHandler func(obj.Object, unsafe.Pointer))
GeocodePostalAddressPreferredLocaleCompletionHandler submits a forward-geocoding requesting using the specified locale and Contacts framework information.
func (*Geocoder) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Geocoder) IsGeocoding ¶ added in v0.17.0
IsGeocoding reports whether the object is geocoding.
func (*Geocoder) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Geocoder) ReverseGeocodeLocationCompletionHandler ¶ added in v0.18.0
func (g *Geocoder) ReverseGeocodeLocationCompletionHandler(location unsafe.Pointer, completionHandler func(obj.Object, unsafe.Pointer))
ReverseGeocodeLocationCompletionHandler submits a reverse-geocoding request for the specified location.
func (*Geocoder) ReverseGeocodeLocationPreferredLocaleCompletionHandler ¶ added in v0.18.0
func (g *Geocoder) ReverseGeocodeLocationPreferredLocaleCompletionHandler(location unsafe.Pointer, locale obj.Object, completionHandler func(obj.Object, unsafe.Pointer))
ReverseGeocodeLocationPreferredLocaleCompletionHandler submits a reverse-geocoding request for the specified location and locale.
type Heading ¶ added in v0.17.0
Heading is an idiomatic wrapper over the Objective-C class CLHeading.
The orientation of the user’s device, relative to true or magnetic north.
func HeadingFromID ¶ added in v0.17.0
HeadingFromID adopts an existing Objective-C object as a Heading (nil for 0), retaining it and registering a release finalizer.
func (*Heading) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Heading) HeadingAccuracy ¶ added in v0.18.0
HeadingAccuracy returns the heading accuracy.
func (*Heading) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Heading) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Heading) MagneticHeading ¶ added in v0.18.0
MagneticHeading returns the magnetic heading.
func (*Heading) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Heading) TrueHeading ¶ added in v0.18.0
TrueHeading returns the true heading.
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 LiveUpdateConfiguration ¶ added in v0.17.0
type LiveUpdateConfiguration int64
Specifies the types of locations that a location updater generates.
const ( // The default configuration. LiveUpdateConfigurationDefault LiveUpdateConfiguration = 0 LiveUpdateConfigurationAutomotiveNavigation LiveUpdateConfiguration = 1 LiveUpdateConfigurationOtherNavigation LiveUpdateConfiguration = 2 // A configuration for fitness use cases. LiveUpdateConfigurationFitness LiveUpdateConfiguration = 3 // A configuration for airborne use cases. LiveUpdateConfigurationAirborne LiveUpdateConfiguration = 4 )
func (LiveUpdateConfiguration) String ¶ added in v0.17.0
func (e LiveUpdateConfiguration) String() string
String returns the LiveUpdateConfiguration constant's name, or its numeric form when the value is not a known constant.
type LocationManager ¶ added in v0.17.0
LocationManager is an idiomatic wrapper over the Objective-C class CLLocationManager.
The object you use to start and stop the delivery of location-related events to your app.
func LocationManagerFromID ¶ added in v0.17.0
func LocationManagerFromID(id objc.ID) *LocationManager
LocationManagerFromID adopts an existing Objective-C object as a LocationManager (nil for 0), retaining it and registering a release finalizer.
func NewLocationManager ¶ added in v0.17.0
func NewLocationManager() *LocationManager
NewLocationManager creates a new LocationManager.
func (*LocationManager) AccuracyAuthorization ¶ added in v0.17.0
func (lm *LocationManager) AccuracyAuthorization() AccuracyAuthorization
AccuracyAuthorization returns the accuracy authorization.
func (*LocationManager) ActivityType ¶ added in v0.17.0
func (lm *LocationManager) ActivityType() ActivityType
ActivityType returns the activity type.
func (*LocationManager) AllowDeferredLocationUpdatesUntilTraveledTimeout ¶ added in v0.17.0
func (lm *LocationManager) AllowDeferredLocationUpdatesUntilTraveledTimeout(distance unsafe.Pointer, timeout float64)
AllowDeferredLocationUpdatesUntilTraveledTimeout wraps the corresponding Objective-C method.
func (*LocationManager) AllowsBackgroundLocationUpdates ¶ added in v0.17.0
func (lm *LocationManager) AllowsBackgroundLocationUpdates() bool
AllowsBackgroundLocationUpdates wraps the corresponding Objective-C method.
func (*LocationManager) AuthorizationStatus ¶ added in v0.17.0
func (lm *LocationManager) AuthorizationStatus() AuthorizationStatus
AuthorizationStatus returns the authorization status.
func (*LocationManager) Description ¶ added in v0.17.0
func (lm *LocationManager) Description() string
Description returns the object's -description text.
func (*LocationManager) DesiredAccuracy ¶ added in v0.18.0
func (lm *LocationManager) DesiredAccuracy() unsafe.Pointer
DesiredAccuracy returns the desired accuracy.
func (*LocationManager) DisallowDeferredLocationUpdates ¶ added in v0.17.0
func (lm *LocationManager) DisallowDeferredLocationUpdates()
DisallowDeferredLocationUpdates wraps the corresponding Objective-C method.
func (*LocationManager) DismissHeadingCalibrationDisplay ¶ added in v0.17.0
func (lm *LocationManager) DismissHeadingCalibrationDisplay()
DismissHeadingCalibrationDisplay dismisses the heading calibration view from the screen immediately.
func (*LocationManager) DistanceFilter ¶ added in v0.18.0
func (lm *LocationManager) DistanceFilter() unsafe.Pointer
DistanceFilter returns the distance filter.
func (*LocationManager) Heading ¶ added in v0.17.0
func (lm *LocationManager) Heading() *Heading
Heading returns the heading.
func (*LocationManager) HeadingAvailable ¶ added in v0.17.0
func (lm *LocationManager) HeadingAvailable() bool
HeadingAvailable wraps the corresponding Objective-C method.
func (*LocationManager) HeadingFilter ¶ added in v0.18.0
func (lm *LocationManager) HeadingFilter() unsafe.Pointer
HeadingFilter returns the heading filter.
func (*LocationManager) HeadingOrientation ¶ added in v0.17.0
func (lm *LocationManager) HeadingOrientation() DeviceOrientation
HeadingOrientation returns the heading orientation.
func (*LocationManager) IsAuthorizedForWidgetUpdates ¶ added in v0.17.0
func (lm *LocationManager) IsAuthorizedForWidgetUpdates() bool
IsAuthorizedForWidgetUpdates reports whether the object is authorized for widget updates.
func (*LocationManager) IsEqual ¶ added in v0.17.0
func (lm *LocationManager) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*LocationManager) IsKind ¶ added in v0.17.0
func (lm *LocationManager) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*LocationManager) Location ¶ added in v0.18.0
func (lm *LocationManager) Location() unsafe.Pointer
Location returns the location.
func (*LocationManager) LocationServicesEnabled ¶ added in v0.17.0
func (lm *LocationManager) LocationServicesEnabled() bool
LocationServicesEnabled wraps the corresponding Objective-C method.
func (*LocationManager) MaximumRegionMonitoringDistance ¶ added in v0.18.0
func (lm *LocationManager) MaximumRegionMonitoringDistance() unsafe.Pointer
MaximumRegionMonitoringDistance returns the maximum region monitoring distance.
func (*LocationManager) MonitoredRegions ¶ added in v0.17.0
func (lm *LocationManager) MonitoredRegions() []*Region
MonitoredRegions returns the order of the returned elements is unspecified.
func (*LocationManager) PausesLocationUpdatesAutomatically ¶ added in v0.17.0
func (lm *LocationManager) PausesLocationUpdatesAutomatically() bool
PausesLocationUpdatesAutomatically wraps the corresponding Objective-C method.
func (*LocationManager) Purpose ¶ added in v0.17.0
func (lm *LocationManager) Purpose() string
Purpose returns the purpose.
func (*LocationManager) RangedBeaconConstraints ¶ added in v0.17.0
func (lm *LocationManager) RangedBeaconConstraints() []*BeaconIdentityConstraint
RangedBeaconConstraints returns the order of the returned elements is unspecified.
func (*LocationManager) RangedRegions ¶ added in v0.17.0
func (lm *LocationManager) RangedRegions() []*Region
RangedRegions returns the order of the returned elements is unspecified.
func (*LocationManager) RequestAlwaysAuthorization ¶ added in v0.17.0
func (lm *LocationManager) RequestAlwaysAuthorization()
RequestAlwaysAuthorization requests the user’s permission to use location services regardless of whether the app is in use.
func (*LocationManager) RequestLocation ¶ added in v0.17.0
func (lm *LocationManager) RequestLocation()
RequestLocation requests the one-time delivery of the user’s current location.
func (*LocationManager) RequestStateForRegion ¶ added in v0.17.0
func (lm *LocationManager) RequestStateForRegion(region *Region)
RequestStateForRegion requests state for region.
func (*LocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKey ¶ added in v0.17.0
func (lm *LocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKey(purposeKey string)
RequestTemporaryFullAccuracyAuthorizationWithPurposeKey requests permission to temporarily use location services with full accuracy.
func (*LocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKeyCompletion ¶ added in v0.17.0
func (lm *LocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKeyCompletion(ctx context.Context, purposeKey string) error
RequestTemporaryFullAccuracyAuthorizationWithPurposeKeyCompletion requests permission to temporarily use location services with full accuracy and reports the results to the provided completion handler.
RequestTemporaryFullAccuracyAuthorizationWithPurposeKeyCompletion blocks until the operation completes or ctx is cancelled.
func (*LocationManager) RequestWhenInUseAuthorization ¶ added in v0.17.0
func (lm *LocationManager) RequestWhenInUseAuthorization()
RequestWhenInUseAuthorization requests the user’s permission to use location services while the app is in use.
func (*LocationManager) StartMonitoringForRegion ¶ added in v0.17.0
func (lm *LocationManager) StartMonitoringForRegion(region *Region)
StartMonitoringForRegion starts monitoring for region.
func (*LocationManager) StartMonitoringForRegionDesiredAccuracy ¶ added in v0.17.0
func (lm *LocationManager) StartMonitoringForRegionDesiredAccuracy(region *Region, accuracy unsafe.Pointer)
StartMonitoringForRegionDesiredAccuracy starts monitoring for region desired accuracy.
func (*LocationManager) StartMonitoringSignificantLocationChanges ¶ added in v0.17.0
func (lm *LocationManager) StartMonitoringSignificantLocationChanges()
StartMonitoringSignificantLocationChanges starts the generation of updates based on significant location changes.
func (*LocationManager) StartMonitoringVisits ¶ added in v0.17.0
func (lm *LocationManager) StartMonitoringVisits()
StartMonitoringVisits starts the delivery of visit-related events.
func (*LocationManager) StartRangingBeaconsInRegion ¶ added in v0.17.0
func (lm *LocationManager) StartRangingBeaconsInRegion(region *BeaconRegion)
StartRangingBeaconsInRegion starts ranging beacons in region.
func (*LocationManager) StartRangingBeaconsSatisfyingConstraint ¶ added in v0.17.0
func (lm *LocationManager) StartRangingBeaconsSatisfyingConstraint(constraint *BeaconIdentityConstraint)
StartRangingBeaconsSatisfyingConstraint starts the delivery of notifications for the specified beacon constraints.
func (*LocationManager) StartUpdatingHeading ¶ added in v0.17.0
func (lm *LocationManager) StartUpdatingHeading()
StartUpdatingHeading starts the generation of updates that report the user’s current heading.
func (*LocationManager) StartUpdatingLocation ¶ added in v0.17.0
func (lm *LocationManager) StartUpdatingLocation()
StartUpdatingLocation starts the generation of updates that report the user’s current location.
func (*LocationManager) StopMonitoringForRegion ¶ added in v0.17.0
func (lm *LocationManager) StopMonitoringForRegion(region *Region)
StopMonitoringForRegion stops monitoring for region.
func (*LocationManager) StopMonitoringSignificantLocationChanges ¶ added in v0.17.0
func (lm *LocationManager) StopMonitoringSignificantLocationChanges()
StopMonitoringSignificantLocationChanges stops the delivery of location events based on significant location changes.
func (*LocationManager) StopMonitoringVisits ¶ added in v0.17.0
func (lm *LocationManager) StopMonitoringVisits()
StopMonitoringVisits stops the delivery of visit-related events.
func (*LocationManager) StopRangingBeaconsInRegion ¶ added in v0.17.0
func (lm *LocationManager) StopRangingBeaconsInRegion(region *BeaconRegion)
StopRangingBeaconsInRegion stops ranging beacons in region.
func (*LocationManager) StopRangingBeaconsSatisfyingConstraint ¶ added in v0.17.0
func (lm *LocationManager) StopRangingBeaconsSatisfyingConstraint(constraint *BeaconIdentityConstraint)
StopRangingBeaconsSatisfyingConstraint stops the delivery of notifications for the specified beacon constraints.
func (*LocationManager) StopUpdatingLocation ¶ added in v0.17.0
func (lm *LocationManager) StopUpdatingLocation()
StopUpdatingLocation stops the generation of location updates.
func (*LocationManager) String ¶ added in v0.17.0
func (lm *LocationManager) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*LocationManager) WithActivityType ¶ added in v0.17.0
func (lm *LocationManager) WithActivityType(activityType ActivityType) *LocationManager
WithActivityType sets the type of activity the app expects the user to typically perform while in the app’s location session.
func (*LocationManager) WithAllowsBackgroundLocationUpdates ¶ added in v0.17.0
func (lm *LocationManager) WithAllowsBackgroundLocationUpdates(allowsBackgroundLocationUpdates bool) *LocationManager
WithAllowsBackgroundLocationUpdates sets a Boolean value that indicates whether the app receives location updates when running in the background.
func (*LocationManager) WithDelegate ¶ added in v0.17.0
func (lm *LocationManager) WithDelegate(delegate LocationManagerDelegate) *LocationManager
WithDelegate sets the delegate object to receive update events.
func (*LocationManager) WithDesiredAccuracy ¶ added in v0.17.0
func (lm *LocationManager) WithDesiredAccuracy(desiredAccuracy unsafe.Pointer) *LocationManager
WithDesiredAccuracy sets the accuracy of the location data that your app wants to receive.
func (*LocationManager) WithDistanceFilter ¶ added in v0.17.0
func (lm *LocationManager) WithDistanceFilter(distanceFilter unsafe.Pointer) *LocationManager
WithDistanceFilter sets the minimum distance in meters the device must move horizontally before an update event is generated.
func (*LocationManager) WithHeadingFilter ¶ added in v0.17.0
func (lm *LocationManager) WithHeadingFilter(headingFilter unsafe.Pointer) *LocationManager
WithHeadingFilter sets the minimum angular change in degrees required to generate new heading events.
func (*LocationManager) WithHeadingOrientation ¶ added in v0.17.0
func (lm *LocationManager) WithHeadingOrientation(headingOrientation DeviceOrientation) *LocationManager
WithHeadingOrientation sets the device orientation to use when computing heading values.
func (*LocationManager) WithPausesLocationUpdatesAutomatically ¶ added in v0.17.0
func (lm *LocationManager) WithPausesLocationUpdatesAutomatically(pausesLocationUpdatesAutomatically bool) *LocationManager
WithPausesLocationUpdatesAutomatically sets a Boolean value that indicates whether the location-manager object may pause location updates.
func (*LocationManager) WithPurpose ¶ added in v0.17.0
func (lm *LocationManager) WithPurpose(purpose string) *LocationManager
WithPurpose sets the purpose.
type LocationManagerDelegate ¶ added in v0.17.0
type LocationManagerDelegate interface {
}
LocationManagerDelegate receives the callbacks of the Objective-C protocol CLLocationManagerDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (LocationManagerDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type LocationManagerDelegateLocationManagerDidChangeAuthorizationHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidChangeAuthorizationHandler interface {
LocationManagerDidChangeAuthorization(manager *LocationManager)
}
LocationManagerDelegateLocationManagerDidChangeAuthorizationHandler is the optional CLLocationManagerDelegate method locationManagerDidChangeAuthorization:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerDidChangeAuthorizationStatusHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidChangeAuthorizationStatusHandler interface {
LocationManagerDidChangeAuthorizationStatus(manager *LocationManager, status AuthorizationStatus)
}
LocationManagerDelegateLocationManagerDidChangeAuthorizationStatusHandler is the optional CLLocationManagerDelegate method locationManager:didChangeAuthorizationStatus:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerDidDetermineStateForRegionHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidDetermineStateForRegionHandler interface {
LocationManagerDidDetermineStateForRegion(manager *LocationManager, state RegionState, region *Region)
}
LocationManagerDelegateLocationManagerDidDetermineStateForRegionHandler is the optional CLLocationManagerDelegate method locationManager:didDetermineState:forRegion:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerDidEnterRegionHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidEnterRegionHandler interface {
LocationManagerDidEnterRegion(manager *LocationManager, region *Region)
}
LocationManagerDelegateLocationManagerDidEnterRegionHandler is the optional CLLocationManagerDelegate method locationManager:didEnterRegion:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerDidExitRegionHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidExitRegionHandler interface {
LocationManagerDidExitRegion(manager *LocationManager, region *Region)
}
LocationManagerDelegateLocationManagerDidExitRegionHandler is the optional CLLocationManagerDelegate method locationManager:didExitRegion:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerDidFailRangingBeaconsForConstraintErrorHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidFailRangingBeaconsForConstraintErrorHandler interface {
LocationManagerDidFailRangingBeaconsForConstraintError(manager *LocationManager, beaconConstraint *BeaconIdentityConstraint, err error)
}
LocationManagerDelegateLocationManagerDidFailRangingBeaconsForConstraintErrorHandler is the optional CLLocationManagerDelegate method locationManager:didFailRangingBeaconsForConstraint:error:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerDidFailWithErrorHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidFailWithErrorHandler interface {
LocationManagerDidFailWithError(manager *LocationManager, err error)
}
LocationManagerDelegateLocationManagerDidFailWithErrorHandler is the optional CLLocationManagerDelegate method locationManager:didFailWithError:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerDidFinishDeferredUpdatesWithErrorHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidFinishDeferredUpdatesWithErrorHandler interface {
LocationManagerDidFinishDeferredUpdatesWithError(manager *LocationManager, err error)
}
LocationManagerDelegateLocationManagerDidFinishDeferredUpdatesWithErrorHandler is the optional CLLocationManagerDelegate method locationManager:didFinishDeferredUpdatesWithError:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerDidPauseLocationUpdatesHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidPauseLocationUpdatesHandler interface {
LocationManagerDidPauseLocationUpdates(manager *LocationManager)
}
LocationManagerDelegateLocationManagerDidPauseLocationUpdatesHandler is the optional CLLocationManagerDelegate method locationManagerDidPauseLocationUpdates:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerDidRangeBeaconsInRegionHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidRangeBeaconsInRegionHandler interface {
LocationManagerDidRangeBeaconsInRegion(manager *LocationManager, beacons obj.Object, region *BeaconRegion)
}
LocationManagerDelegateLocationManagerDidRangeBeaconsInRegionHandler is the optional CLLocationManagerDelegate method locationManager:didRangeBeacons:inRegion:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerDidRangeBeaconsSatisfyingConstraintHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidRangeBeaconsSatisfyingConstraintHandler interface {
LocationManagerDidRangeBeaconsSatisfyingConstraint(manager *LocationManager, beacons obj.Object, beaconConstraint *BeaconIdentityConstraint)
}
LocationManagerDelegateLocationManagerDidRangeBeaconsSatisfyingConstraintHandler is the optional CLLocationManagerDelegate method locationManager:didRangeBeacons:satisfyingConstraint:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerDidResumeLocationUpdatesHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidResumeLocationUpdatesHandler interface {
LocationManagerDidResumeLocationUpdates(manager *LocationManager)
}
LocationManagerDelegateLocationManagerDidResumeLocationUpdatesHandler is the optional CLLocationManagerDelegate method locationManagerDidResumeLocationUpdates:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerDidStartMonitoringForRegionHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidStartMonitoringForRegionHandler interface {
LocationManagerDidStartMonitoringForRegion(manager *LocationManager, region *Region)
}
LocationManagerDelegateLocationManagerDidStartMonitoringForRegionHandler is the optional CLLocationManagerDelegate method locationManager:didStartMonitoringForRegion:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerDidUpdateHeadingHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidUpdateHeadingHandler interface {
LocationManagerDidUpdateHeading(manager *LocationManager, newHeading *Heading)
}
LocationManagerDelegateLocationManagerDidUpdateHeadingHandler is the optional CLLocationManagerDelegate method locationManager:didUpdateHeading:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerDidUpdateLocationsHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidUpdateLocationsHandler interface {
LocationManagerDidUpdateLocations(manager *LocationManager, locations obj.Object)
}
LocationManagerDelegateLocationManagerDidUpdateLocationsHandler is the optional CLLocationManagerDelegate method locationManager:didUpdateLocations:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerDidVisitHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerDidVisitHandler interface {
LocationManagerDidVisit(manager *LocationManager, visit *Visit)
}
LocationManagerDelegateLocationManagerDidVisitHandler is the optional CLLocationManagerDelegate method locationManager:didVisit:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerMonitoringDidFailForRegionWithErrorHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerMonitoringDidFailForRegionWithErrorHandler interface {
LocationManagerMonitoringDidFailForRegionWithError(manager *LocationManager, region *Region, err error)
}
LocationManagerDelegateLocationManagerMonitoringDidFailForRegionWithErrorHandler is the optional CLLocationManagerDelegate method locationManager:monitoringDidFailForRegion:withError:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerRangingBeaconsDidFailForRegionWithErrorHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerRangingBeaconsDidFailForRegionWithErrorHandler interface {
LocationManagerRangingBeaconsDidFailForRegionWithError(manager *LocationManager, region *BeaconRegion, err error)
}
LocationManagerDelegateLocationManagerRangingBeaconsDidFailForRegionWithErrorHandler is the optional CLLocationManagerDelegate method locationManager:rangingBeaconsDidFailForRegion:withError:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationManagerDelegateLocationManagerShouldDisplayHeadingCalibrationHandler ¶ added in v0.17.0
type LocationManagerDelegateLocationManagerShouldDisplayHeadingCalibrationHandler interface {
LocationManagerShouldDisplayHeadingCalibration(manager *LocationManager) bool
}
LocationManagerDelegateLocationManagerShouldDisplayHeadingCalibrationHandler is the optional CLLocationManagerDelegate method locationManagerShouldDisplayHeadingCalibration:. Implement it on a LocationManagerDelegate value to receive that callback; a value without it is simply never sent one.
type LocationUpdater ¶ added in v0.17.0
LocationUpdater is an idiomatic wrapper over the Objective-C class CLLocationUpdater.
An object that provides device location updates.
func LiveUpdaterWithConfigurationQueueHandler ¶ added in v0.17.0
func LiveUpdaterWithConfigurationQueueHandler(configuration LiveUpdateConfiguration, queue dispatch.Queue, handler func(obj.Object)) *LocationUpdater
LiveUpdaterWithConfigurationQueueHandler creates a location updater with the configuration and queue that you specify.
func LiveUpdaterWithQueueHandler ¶ added in v0.17.0
func LiveUpdaterWithQueueHandler(queue dispatch.Queue, handler func(obj.Object)) *LocationUpdater
LiveUpdaterWithQueueHandler creates a location updater on the queue you specify.
func LocationUpdaterFromID ¶ added in v0.17.0
func LocationUpdaterFromID(id objc.ID) *LocationUpdater
LocationUpdaterFromID adopts an existing Objective-C object as a LocationUpdater (nil for 0), retaining it and registering a release finalizer.
func NewLocationUpdater ¶ added in v0.17.0
func NewLocationUpdater() *LocationUpdater
NewLocationUpdater creates a new LocationUpdater.
func (*LocationUpdater) Description ¶ added in v0.17.0
func (lu *LocationUpdater) Description() string
Description returns the object's -description text.
func (*LocationUpdater) Invalidate ¶ added in v0.17.0
func (lu *LocationUpdater) Invalidate()
Invalidate invalidates the updater.
func (*LocationUpdater) IsEqual ¶ added in v0.17.0
func (lu *LocationUpdater) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*LocationUpdater) IsKind ¶ added in v0.17.0
func (lu *LocationUpdater) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*LocationUpdater) Pause ¶ added in v0.17.0
func (lu *LocationUpdater) Pause()
Pause pauses the updater.
func (*LocationUpdater) Resume ¶ added in v0.17.0
func (lu *LocationUpdater) Resume()
Resume resumes the updater.
func (*LocationUpdater) String ¶ added in v0.17.0
func (lu *LocationUpdater) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
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 Monitor ¶ added in v0.17.0
Monitor is an idiomatic wrapper over the Objective-C class CLMonitor.
An object that monitors the conditions you add to it.
func MonitorFromID ¶ added in v0.17.0
MonitorFromID adopts an existing Objective-C object as a Monitor (nil for 0), retaining it and registering a release finalizer.
func RequestMonitorWithConfigurationCompletion ¶ added in v0.17.0
func RequestMonitorWithConfigurationCompletion(ctx context.Context, config *MonitorConfiguration) (result *Monitor, err error)
RequestMonitorWithConfigurationCompletion requests monitor with configuration completion.
RequestMonitorWithConfigurationCompletion blocks until the operation completes or ctx is cancelled.
func (*Monitor) AddConditionForMonitoringIdentifier ¶ added in v0.17.0
AddConditionForMonitoringIdentifier adds condition for monitoring identifier.
func (*Monitor) AddConditionForMonitoringIdentifierAssumedState ¶ added in v0.17.0
func (m *Monitor) AddConditionForMonitoringIdentifierAssumedState(condition *Condition, identifier string, state MonitoringState)
AddConditionForMonitoringIdentifierAssumedState adds condition for monitoring identifier assumed state.
func (*Monitor) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Monitor) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Monitor) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Monitor) MonitoredIdentifiers ¶ added in v0.17.0
MonitoredIdentifiers returns the monitored identifiers.
MonitoredIdentifiers returns the collection as a Go slice.
func (*Monitor) MonitoringRecordForIdentifier ¶ added in v0.17.0
func (m *Monitor) MonitoringRecordForIdentifier(identifier string) *MonitoringRecord
MonitoringRecordForIdentifier wraps the corresponding Objective-C method.
func (*Monitor) RemoveConditionFromMonitoringWithIdentifier ¶ added in v0.17.0
RemoveConditionFromMonitoringWithIdentifier removes condition from monitoring with identifier.
type MonitorConfiguration ¶ added in v0.17.0
MonitorConfiguration is an idiomatic wrapper over the Objective-C class CLMonitorConfiguration.
An object for configuring a location monitor instance.
func ConfigWithMonitorNameQueueEventHandler ¶ added in v0.17.0
func ConfigWithMonitorNameQueueEventHandler(name string, queue dispatch.Queue, eventHandler func(obj.Object, obj.Object)) *MonitorConfiguration
ConfigWithMonitorNameQueueEventHandler creates a location monitor instance with the name, dispatch queue, and event handler you specify.
func MonitorConfigurationFromID ¶ added in v0.17.0
func MonitorConfigurationFromID(id objc.ID) *MonitorConfiguration
MonitorConfigurationFromID adopts an existing Objective-C object as a MonitorConfiguration (nil for 0), retaining it and registering a release finalizer.
func NewMonitorConfiguration ¶ added in v0.17.0
func NewMonitorConfiguration() *MonitorConfiguration
NewMonitorConfiguration creates a new MonitorConfiguration.
func (*MonitorConfiguration) Description ¶ added in v0.17.0
func (mc *MonitorConfiguration) Description() string
Description returns the object's -description text.
func (*MonitorConfiguration) IsEqual ¶ added in v0.17.0
func (mc *MonitorConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*MonitorConfiguration) IsKind ¶ added in v0.17.0
func (mc *MonitorConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*MonitorConfiguration) Name ¶ added in v0.17.0
func (mc *MonitorConfiguration) Name() string
Name returns the name.
func (*MonitorConfiguration) Queue ¶ added in v0.17.0
func (mc *MonitorConfiguration) Queue() *foundation.Object
Queue returns the queue.
func (*MonitorConfiguration) String ¶ added in v0.17.0
func (mc *MonitorConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type MonitoringEvent ¶ added in v0.17.0
MonitoringEvent is an idiomatic wrapper over the Objective-C class CLMonitoringEvent.
The object that the framework passes to the monitor’s callback handler upon receiving an event.
func MonitoringEventFromID ¶ added in v0.17.0
func MonitoringEventFromID(id objc.ID) *MonitoringEvent
MonitoringEventFromID adopts an existing Objective-C object as a MonitoringEvent (nil for 0), retaining it and registering a release finalizer.
func NewMonitoringEvent ¶ added in v0.17.0
func NewMonitoringEvent() *MonitoringEvent
NewMonitoringEvent creates a new MonitoringEvent.
func (*MonitoringEvent) AccuracyLimited ¶ added in v0.17.0
func (me *MonitoringEvent) AccuracyLimited() bool
AccuracyLimited wraps the corresponding Objective-C method.
func (*MonitoringEvent) AuthorizationDenied ¶ added in v0.17.0
func (me *MonitoringEvent) AuthorizationDenied() bool
AuthorizationDenied wraps the corresponding Objective-C method.
func (*MonitoringEvent) AuthorizationDeniedGlobally ¶ added in v0.17.0
func (me *MonitoringEvent) AuthorizationDeniedGlobally() bool
AuthorizationDeniedGlobally wraps the corresponding Objective-C method.
func (*MonitoringEvent) AuthorizationRequestInProgress ¶ added in v0.17.0
func (me *MonitoringEvent) AuthorizationRequestInProgress() bool
AuthorizationRequestInProgress wraps the corresponding Objective-C method.
func (*MonitoringEvent) AuthorizationRestricted ¶ added in v0.17.0
func (me *MonitoringEvent) AuthorizationRestricted() bool
AuthorizationRestricted wraps the corresponding Objective-C method.
func (*MonitoringEvent) ConditionLimitExceeded ¶ added in v0.17.0
func (me *MonitoringEvent) ConditionLimitExceeded() bool
ConditionLimitExceeded wraps the corresponding Objective-C method.
func (*MonitoringEvent) ConditionUnsupported ¶ added in v0.17.0
func (me *MonitoringEvent) ConditionUnsupported() bool
ConditionUnsupported wraps the corresponding Objective-C method.
func (*MonitoringEvent) Date ¶ added in v0.17.0
func (me *MonitoringEvent) Date() time.Time
Date returns the date.
func (*MonitoringEvent) Description ¶ added in v0.17.0
func (me *MonitoringEvent) Description() string
Description returns the object's -description text.
func (*MonitoringEvent) Identifier ¶ added in v0.17.0
func (me *MonitoringEvent) Identifier() string
Identifier returns the identifier.
func (*MonitoringEvent) InsufficientlyInUse ¶ added in v0.17.0
func (me *MonitoringEvent) InsufficientlyInUse() bool
InsufficientlyInUse wraps the corresponding Objective-C method.
func (*MonitoringEvent) IsEqual ¶ added in v0.17.0
func (me *MonitoringEvent) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*MonitoringEvent) IsKind ¶ added in v0.17.0
func (me *MonitoringEvent) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*MonitoringEvent) PersistenceUnavailable ¶ added in v0.17.0
func (me *MonitoringEvent) PersistenceUnavailable() bool
PersistenceUnavailable wraps the corresponding Objective-C method.
func (*MonitoringEvent) Refinement ¶ added in v0.17.0
func (me *MonitoringEvent) Refinement() *Condition
Refinement returns the refinement.
func (*MonitoringEvent) ServiceSessionRequired ¶ added in v0.17.0
func (me *MonitoringEvent) ServiceSessionRequired() bool
ServiceSessionRequired wraps the corresponding Objective-C method.
func (*MonitoringEvent) State ¶ added in v0.17.0
func (me *MonitoringEvent) State() MonitoringState
State returns the state.
func (*MonitoringEvent) String ¶ added in v0.17.0
func (me *MonitoringEvent) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type MonitoringRecord ¶ added in v0.17.0
MonitoringRecord is an idiomatic wrapper over the Objective-C class CLMonitoringRecord.
An object that represents a condition and its associated information that a location monitor is monitoring.
func MonitoringRecordFromID ¶ added in v0.17.0
func MonitoringRecordFromID(id objc.ID) *MonitoringRecord
MonitoringRecordFromID adopts an existing Objective-C object as a MonitoringRecord (nil for 0), retaining it and registering a release finalizer.
func NewMonitoringRecord ¶ added in v0.17.0
func NewMonitoringRecord() *MonitoringRecord
NewMonitoringRecord creates a new MonitoringRecord.
func (*MonitoringRecord) Condition ¶ added in v0.17.0
func (mr *MonitoringRecord) Condition() *Condition
Condition returns the condition.
func (*MonitoringRecord) Description ¶ added in v0.17.0
func (mr *MonitoringRecord) Description() string
Description returns the object's -description text.
func (*MonitoringRecord) IsEqual ¶ added in v0.17.0
func (mr *MonitoringRecord) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*MonitoringRecord) IsKind ¶ added in v0.17.0
func (mr *MonitoringRecord) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*MonitoringRecord) LastEvent ¶ added in v0.17.0
func (mr *MonitoringRecord) LastEvent() *MonitoringEvent
LastEvent returns the last event.
func (*MonitoringRecord) String ¶ added in v0.17.0
func (mr *MonitoringRecord) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type MonitoringState ¶ added in v0.17.0
type MonitoringState uint64
Values that represent the current state of a monitoring condition.
const ( // The condition is in an unknown state. MonitoringStateUnknown MonitoringState = 0 // The condition is in a satisfied state. MonitoringStateSatisfied MonitoringState = 1 // The condition is in an unsatisfied state. MonitoringStateUnsatisfied MonitoringState = 2 // The condition is in an unmonitored state. MonitoringStateUnmonitored MonitoringState = 3 )
func (MonitoringState) String ¶ added in v0.17.0
func (e MonitoringState) String() string
String returns the MonitoringState constant's name, or its numeric form when the value is not a known constant.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type Placemark ¶ added in v0.17.0
Placemark is an idiomatic wrapper over the Objective-C class CLPlacemark.
A user-friendly description of a geographic coordinate, often containing the name of the place, its address, and other relevant information.
func NewPlacemarkWithPlacemark ¶ added in v0.17.0
NewPlacemarkWithPlacemark initializes and returns a placemark object from another placemark object.
func PlacemarkFromID ¶ added in v0.17.0
PlacemarkFromID adopts an existing Objective-C object as a Placemark (nil for 0), retaining it and registering a release finalizer.
func (*Placemark) AddressDictionary ¶ added in v0.17.0
AddressDictionary returns the address dictionary.
func (*Placemark) AdministrativeArea ¶ added in v0.17.0
AdministrativeArea returns the administrative area.
func (*Placemark) AreasOfInterest ¶ added in v0.17.0
AreasOfInterest returns the areas of interest.
AreasOfInterest returns the collection as a Go slice.
func (*Placemark) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Placemark) ISOcountryCode ¶ added in v0.17.0
ISOcountryCode returns the is ocountry code.
func (*Placemark) InlandWater ¶ added in v0.17.0
InlandWater returns the inland water.
func (*Placemark) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Placemark) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Placemark) PostalAddress ¶ added in v0.17.0
PostalAddress returns the postal address.
func (*Placemark) PostalCode ¶ added in v0.17.0
PostalCode returns the postal code.
func (*Placemark) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Placemark) SubAdministrativeArea ¶ added in v0.17.0
SubAdministrativeArea returns the sub administrative area.
func (*Placemark) SubLocality ¶ added in v0.17.0
SubLocality returns the sub locality.
func (*Placemark) SubThoroughfare ¶ added in v0.17.0
SubThoroughfare returns the sub thoroughfare.
func (*Placemark) Thoroughfare ¶ added in v0.17.0
Thoroughfare returns the thoroughfare.
func (*Placemark) TimeZone ¶ added in v0.17.0
func (p *Placemark) TimeZone() *foundation.TimeZone
TimeZone returns the time zone.
type Proximity ¶ added in v0.17.0
type Proximity int64
Constants that reflect the relative distance to a beacon.
const ( // The proximity of the beacon could not be determined. ProximityUnknown Proximity = 0 // The beacon is in the user’s immediate vicinity. ProximityImmediate Proximity = 1 // The beacon is relatively close to the user. ProximityNear Proximity = 2 // The beacon is far away. ProximityFar Proximity = 3 )
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 Region ¶ added in v0.17.0
Region is an idiomatic wrapper over the Objective-C class CLRegion.
Region is an abstract base — you do not construct it directly. Construct one of BeaconRegion, CircularRegion and pass it where a Region is accepted.
A base class representing an area that can be monitored.
func NewRegionCircularRegionWithCenterRadiusIdentifier ¶ added in v0.17.0
func NewRegionCircularRegionWithCenterRadiusIdentifier(center unsafe.Pointer, radius unsafe.Pointer, identifier string) *Region
NewRegionCircularRegionWithCenterRadiusIdentifier initializes and returns a region object defining a circular area.
func RegionFromID ¶ added in v0.17.0
RegionFromID adopts an existing Objective-C object as a Region (nil for 0), retaining it and registering a release finalizer.
func (*Region) ContainsCoordinate ¶ added in v0.17.0
ContainsCoordinate returns a Boolean value indicating whether the region contains the specified coordinate.
func (*Region) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Region) Identifier ¶ added in v0.17.0
Identifier returns the identifier.
func (*Region) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Region) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Region) NotifyOnEntry ¶ added in v0.17.0
NotifyOnEntry wraps the corresponding Objective-C method.
func (*Region) NotifyOnExit ¶ added in v0.17.0
NotifyOnExit wraps the corresponding Objective-C method.
func (*Region) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Region) WithNotifyOnEntry ¶ added in v0.17.0
WithNotifyOnEntry sets a Boolean indicating that notifications are generated upon entry into the region.
func (*Region) WithNotifyOnExit ¶ added in v0.17.0
WithNotifyOnExit sets a Boolean indicating that notifications are generated upon exit from the region.
type RegionProvider ¶ added in v0.17.0
RegionProvider is accepted wherever a CLRegion (or one of its subclasses) is expected.
type RegionState ¶ added in v0.17.0
type RegionState 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. RegionStateUnknown RegionState = 0 // The location is inside of the given region. RegionStateInside RegionState = 1 // The location is outside of the given region. RegionStateOutside RegionState = 2 )
func (RegionState) String ¶ added in v0.17.0
func (e RegionState) String() string
String returns the RegionState constant's name, or its numeric form when the value is not a known constant.
type Update ¶ added in v0.17.0
Update is an idiomatic wrapper over the Objective-C class CLUpdate.
An object that represents a location update.
func UpdateFromID ¶ added in v0.17.0
UpdateFromID adopts an existing Objective-C object as a Update (nil for 0), retaining it and registering a release finalizer.
func (*Update) AccuracyLimited ¶ added in v0.17.0
AccuracyLimited wraps the corresponding Objective-C method.
func (*Update) AuthorizationDenied ¶ added in v0.17.0
AuthorizationDenied wraps the corresponding Objective-C method.
func (*Update) AuthorizationDeniedGlobally ¶ added in v0.17.0
AuthorizationDeniedGlobally wraps the corresponding Objective-C method.
func (*Update) AuthorizationRequestInProgress ¶ added in v0.17.0
AuthorizationRequestInProgress wraps the corresponding Objective-C method.
func (*Update) AuthorizationRestricted ¶ added in v0.17.0
AuthorizationRestricted wraps the corresponding Objective-C method.
func (*Update) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Update) InsufficientlyInUse ¶ added in v0.17.0
InsufficientlyInUse wraps the corresponding Objective-C method.
func (*Update) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Update) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Update) IsStationary ¶ added in v0.17.0
IsStationary reports whether the object is stationary.
func (*Update) LocationUnavailable ¶ added in v0.17.0
LocationUnavailable wraps the corresponding Objective-C method.
func (*Update) ServiceSessionRequired ¶ added in v0.17.0
ServiceSessionRequired wraps the corresponding Objective-C method.
func (*Update) Stationary ¶ added in v0.17.0
Stationary wraps the corresponding Objective-C method.
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.
type Visit ¶ added in v0.17.0
Visit is an idiomatic wrapper over the Objective-C class CLVisit.
Information about the user’s location during a specific period of time.
func VisitFromID ¶ added in v0.17.0
VisitFromID adopts an existing Objective-C object as a Visit (nil for 0), retaining it and registering a release finalizer.
func (*Visit) ArrivalDate ¶ added in v0.17.0
ArrivalDate returns the arrival date.
func (*Visit) Coordinate ¶ added in v0.18.0
Coordinate returns the coordinate.
func (*Visit) DepartureDate ¶ added in v0.17.0
DepartureDate returns the departure date.
func (*Visit) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Visit) HorizontalAccuracy ¶ added in v0.18.0
HorizontalAccuracy returns the horizontal accuracy.
func (*Visit) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
type XpcListenerCreateFlags ¶ added in v0.17.0
type XpcListenerCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcListenerCreateFlagsNone XpcListenerCreateFlags = 0 XpcListenerCreateFlagsInactive XpcListenerCreateFlags = 1 XpcListenerCreateFlagsForceMach XpcListenerCreateFlags = 2 XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4 )
func (XpcListenerCreateFlags) String ¶ added in v0.17.0
func (e XpcListenerCreateFlags) String() string
String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.
type XpcSessionCreateFlags ¶ added in v0.17.0
type XpcSessionCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcSessionCreateFlagsNone XpcSessionCreateFlags = 0 XpcSessionCreateFlagsInactive XpcSessionCreateFlags = 1 XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2 )
func (XpcSessionCreateFlags) String ¶ added in v0.17.0
func (e XpcSessionCreateFlags) String() string
String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.
Source Files
¶
- CLBeaconIdentityCondition_generated.go
- CLBeaconIdentityConstraint_generated.go
- CLBeaconRegion_generated.go
- CLBeacon_generated.go
- CLCircularGeographicCondition_generated.go
- CLCircularRegion_generated.go
- CLCondition_generated.go
- CLGeocoder_generated.go
- CLHeading_generated.go
- CLLocationManagerDelegate_delegate_generated.go
- CLLocationManager_generated.go
- CLLocationUpdater_generated.go
- CLMonitorConfiguration_generated.go
- CLMonitor_generated.go
- CLMonitoringEvent_generated.go
- CLMonitoringRecord_generated.go
- CLPlacemark_generated.go
- CLRegion_generated.go
- CLUpdate_generated.go
- CLVisit_generated.go
- corelocation_classmethods_generated.go
- corelocation_constants_generated.go
- corelocation_enums_generated.go
- corelocation_providers_generated.go
- corelocation_runtime_generated.go
- corelocation_structs_generated.go
- doc.go