corelocation

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Rendered for darwin/amd64

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:

Index

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

func KCLErrorDomain() obj.Object

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

func KCLErrorUserInfoAlternateRegionKey

func KCLErrorUserInfoAlternateRegionKey() obj.Object

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
	// The value that indicates positioning in an automobile following a road network.
	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
	// The value that indicates positioning for activities that don’t or may not adhere to roads such as cycling, scooters, trains, boats and off-road vehicles.
	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

type Beacon struct {
	objref.Handle
}

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

func BeaconFromID(id objc.ID) *Beacon

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

func NewBeacon added in v0.17.0

func NewBeacon() *Beacon

NewBeacon creates a new Beacon.

func (*Beacon) Accuracy added in v0.18.0

func (b *Beacon) Accuracy() unsafe.Pointer

Accuracy returns the accuracy.

func (*Beacon) Description added in v0.17.0

func (b *Beacon) Description() string

Description returns the object's -description text.

func (*Beacon) IsEqual added in v0.17.0

func (b *Beacon) IsEqual(other obj.Object) bool

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

func (*Beacon) IsKind added in v0.17.0

func (b *Beacon) IsKind(className string) bool

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

func (b *Beacon) Proximity() Proximity

Proximity returns the proximity.

func (*Beacon) ProximityUUID added in v0.17.0

func (b *Beacon) ProximityUUID() *foundation.UUID

ProximityUUID returns the proximity UUID.

func (*Beacon) Rssi added in v0.17.0

func (b *Beacon) Rssi() int

Rssi returns the rssi.

func (*Beacon) String added in v0.17.0

func (b *Beacon) String() string

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

func (*Beacon) Timestamp added in v0.17.0

func (b *Beacon) Timestamp() time.Time

Timestamp returns the timestamp.

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

Major returns the major.

func (*BeaconIdentityCondition) Minor added in v0.17.0

Minor returns the minor.

func (*BeaconIdentityCondition) UUID added in v0.17.0

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

Center returns the center.

func (*CircularGeographicCondition) Radius added in v0.18.0

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

type Clockid int32
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

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

type Condition added in v0.17.0

type Condition struct {
	objref.Handle
}

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

func ConditionFromID(id objc.ID) *Condition

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

func (c *Condition) Description() string

Description returns the object's -description text.

func (*Condition) IsEqual added in v0.17.0

func (c *Condition) IsEqual(other obj.Object) bool

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

func (*Condition) IsKind added in v0.17.0

func (c *Condition) IsKind(className string) bool

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

func (*Condition) String added in v0.17.0

func (c *Condition) String() string

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

type ConditionProvider added in v0.17.0

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

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

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

type DispatchBlockFlags added in v0.17.0

type DispatchBlockFlags uint64

Bitmask — values may be combined with |.

const (
	DispatchBlockFlagsBarrier         DispatchBlockFlags = 1
	DispatchBlockFlagsDetached        DispatchBlockFlags = 2
	DispatchBlockFlagsAssignCurrent   DispatchBlockFlags = 4
	DispatchBlockFlagsNoQosClass      DispatchBlockFlags = 8
	DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16
	DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32
)

func (DispatchBlockFlags) String added in v0.17.0

func (e DispatchBlockFlags) String() string

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

type EntryID added in v0.17.0

type EntryID int32
const (
	EntryIDFirstEntry EntryID = 0
	EntryIDNextEntry  EntryID = -1
	EntryIDLastEntry  EntryID = -2
)

func (EntryID) String added in v0.17.0

func (e EntryID) String() string

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

type 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
	KCLErrorRangingUnavailable              Error = 16
	KCLErrorRangingFailure                  Error = 17
	KCLErrorPromptDeclined                  Error = 18
	KCLErrorHistoricalLocationError         Error = 19
)

func (Error) String added in v0.17.0

func (e Error) String() string

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

type FilesecProperty added in v0.17.0

type FilesecProperty int32
const (
	FilesecPropertyOwner        FilesecProperty = 1
	FilesecPropertyGroup        FilesecProperty = 2
	FilesecPropertyUUID         FilesecProperty = 3
	FilesecPropertyMode         FilesecProperty = 4
	FilesecPropertyACL          FilesecProperty = 5
	FilesecPropertyGrpuuid      FilesecProperty = 6
	FilesecPropertyACLRaw       FilesecProperty = 100
	FilesecPropertyACLAllocsize FilesecProperty = 101
)

func (FilesecProperty) String added in v0.17.0

func (e FilesecProperty) String() string

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

type Flag added in v0.17.0

type Flag int32
const (
	FlagFlagDeferInherit      Flag = 1
	FlagFlagNoInherit         Flag = 131072
	FlagEntryInherited        Flag = 16
	FlagEntryFileInherit      Flag = 32
	FlagEntryDirectoryInherit Flag = 64
	FlagEntryLimitInherit     Flag = 128
	FlagEntryOnlyInherit      Flag = 256
)

func (Flag) String added in v0.17.0

func (e Flag) String() string

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

type Geocoder added in v0.17.0

type Geocoder struct {
	objref.Handle
}

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

func GeocoderFromID(id objc.ID) *Geocoder

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

func (g *Geocoder) Description() string

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

func (g *Geocoder) IsEqual(other obj.Object) bool

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

func (*Geocoder) IsGeocoding added in v0.17.0

func (g *Geocoder) IsGeocoding() bool

IsGeocoding reports whether the object is geocoding.

func (*Geocoder) IsKind added in v0.17.0

func (g *Geocoder) IsKind(className string) bool

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.

func (*Geocoder) String added in v0.17.0

func (g *Geocoder) String() string

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

type Heading added in v0.17.0

type Heading struct {
	objref.Handle
}

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

func HeadingFromID(id objc.ID) *Heading

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

func NewHeading added in v0.17.0

func NewHeading() *Heading

NewHeading creates a new Heading.

func (*Heading) Description added in v0.17.0

func (h *Heading) Description() string

Description returns the object's -description text.

func (*Heading) HeadingAccuracy added in v0.18.0

func (h *Heading) HeadingAccuracy() unsafe.Pointer

HeadingAccuracy returns the heading accuracy.

func (*Heading) IsEqual added in v0.17.0

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

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

func (*Heading) IsKind added in v0.17.0

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

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

func (*Heading) MagneticHeading added in v0.18.0

func (h *Heading) MagneticHeading() unsafe.Pointer

MagneticHeading returns the magnetic heading.

func (*Heading) String added in v0.17.0

func (h *Heading) String() string

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

func (*Heading) Timestamp added in v0.17.0

func (h *Heading) Timestamp() time.Time

Timestamp returns the timestamp.

func (*Heading) TrueHeading added in v0.18.0

func (h *Heading) TrueHeading() unsafe.Pointer

TrueHeading returns the true heading.

func (*Heading) X added in v0.17.0

func (h *Heading) X() float64

X returns the x.

func (*Heading) Y added in v0.17.0

func (h *Heading) Y() float64

Y returns the y.

func (*Heading) Z added in v0.17.0

func (h *Heading) Z() float64

Z returns the z.

type Idtype added in v0.17.0

type Idtype int32
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

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

type IpcInfoObjectType added in v0.17.0

type IpcInfoObjectType uint32
const (
	IpcInfoObjectTypeNone               IpcInfoObjectType = 0
	IpcInfoObjectTypeThreadControl      IpcInfoObjectType = 1
	IpcInfoObjectTypeTaskControl        IpcInfoObjectType = 2
	IpcInfoObjectTypeHost               IpcInfoObjectType = 3
	IpcInfoObjectTypeHostPriv           IpcInfoObjectType = 4
	IpcInfoObjectTypeProcessor          IpcInfoObjectType = 5
	IpcInfoObjectTypeProcessorSet       IpcInfoObjectType = 6
	IpcInfoObjectTypeProcessorSetName   IpcInfoObjectType = 7
	IpcInfoObjectTypeTimer              IpcInfoObjectType = 8
	IpcInfoObjectTypePortSubstOnce      IpcInfoObjectType = 9
	IpcInfoObjectTypeMig                IpcInfoObjectType = 10
	IpcInfoObjectTypeMemoryObject       IpcInfoObjectType = 11
	IpcInfoObjectTypeXmmPager           IpcInfoObjectType = 12
	IpcInfoObjectTypeXmmKernel          IpcInfoObjectType = 13
	IpcInfoObjectTypeXmmReply           IpcInfoObjectType = 14
	IpcInfoObjectTypeUndReply           IpcInfoObjectType = 15
	IpcInfoObjectTypeHostNotify         IpcInfoObjectType = 16
	IpcInfoObjectTypeHostSecurity       IpcInfoObjectType = 17
	IpcInfoObjectTypeLedger             IpcInfoObjectType = 18
	IpcInfoObjectTypeMainDevice         IpcInfoObjectType = 19
	IpcInfoObjectTypeTaskName           IpcInfoObjectType = 20
	IpcInfoObjectTypeSubsystem          IpcInfoObjectType = 21
	IpcInfoObjectTypeIODoneQueue        IpcInfoObjectType = 22
	IpcInfoObjectTypeSemaphore          IpcInfoObjectType = 23
	IpcInfoObjectTypeLockSet            IpcInfoObjectType = 24
	IpcInfoObjectTypeClock              IpcInfoObjectType = 25
	IpcInfoObjectTypeClockCtrl          IpcInfoObjectType = 26
	IpcInfoObjectTypeIokitIdent         IpcInfoObjectType = 27
	IpcInfoObjectTypeNamedEntry         IpcInfoObjectType = 28
	IpcInfoObjectTypeIokitConnect       IpcInfoObjectType = 29
	IpcInfoObjectTypeIokitObject        IpcInfoObjectType = 30
	IpcInfoObjectTypeUpl                IpcInfoObjectType = 31
	IpcInfoObjectTypeMemObjControl      IpcInfoObjectType = 32
	IpcInfoObjectTypeAuSessionport      IpcInfoObjectType = 33
	IpcInfoObjectTypeFileport           IpcInfoObjectType = 34
	IpcInfoObjectTypeLabelh             IpcInfoObjectType = 35
	IpcInfoObjectTypeTaskResume         IpcInfoObjectType = 36
	IpcInfoObjectTypeVoucher            IpcInfoObjectType = 37
	IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38
	IpcInfoObjectTypeWorkInterval       IpcInfoObjectType = 39
	IpcInfoObjectTypeUxHandler          IpcInfoObjectType = 40
	IpcInfoObjectTypeUextObject         IpcInfoObjectType = 41
	IpcInfoObjectTypeArcadeReg          IpcInfoObjectType = 42
	IpcInfoObjectTypeEventlink          IpcInfoObjectType = 43
	IpcInfoObjectTypeTaskInspect        IpcInfoObjectType = 44
	IpcInfoObjectTypeTaskRead           IpcInfoObjectType = 45
	IpcInfoObjectTypeThreadInspect      IpcInfoObjectType = 46
	IpcInfoObjectTypeThreadRead         IpcInfoObjectType = 47
	IpcInfoObjectTypeSuidCred           IpcInfoObjectType = 48
	IpcInfoObjectTypeHypervisor         IpcInfoObjectType = 49
	IpcInfoObjectTypeTaskIDToken        IpcInfoObjectType = 50
	IpcInfoObjectTypeTaskFatal          IpcInfoObjectType = 51
	IpcInfoObjectTypeKcdata             IpcInfoObjectType = 52
	IpcInfoObjectTypeExclavesResource   IpcInfoObjectType = 53
	IpcInfoObjectTypeThreadResume       IpcInfoObjectType = 54
	IpcInfoObjectTypeUnknown            IpcInfoObjectType = 4294967295
)

func (IpcInfoObjectType) String added in v0.17.0

func (e IpcInfoObjectType) String() string

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

type LaunchDataType added in v0.17.0

type LaunchDataType int32
const (
	LaunchDataTypeDictionary LaunchDataType = 1
	LaunchDataTypeArray      LaunchDataType = 2
	LaunchDataTypeFd         LaunchDataType = 3
	LaunchDataTypeInteger    LaunchDataType = 4
	LaunchDataTypeReal       LaunchDataType = 5
	LaunchDataTypeBool       LaunchDataType = 6
	LaunchDataTypeString     LaunchDataType = 7
	LaunchDataTypeOpaque     LaunchDataType = 8
	LaunchDataTypeErrno      LaunchDataType = 9
	LaunchDataTypeMachport   LaunchDataType = 10
)

func (LaunchDataType) String added in v0.17.0

func (e LaunchDataType) String() string

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

type 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
	// A configuration for automotive navigation use cases.
	LiveUpdateConfigurationAutomotiveNavigation LiveUpdateConfiguration = 1
	// A configuration for other navigation use cases.
	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

type LocationManager struct {
	objref.Handle
}

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

type LocationUpdater struct {
	objref.Handle
}

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

type Monitor struct {
	objref.Handle
}

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

func MonitorFromID(id objc.ID) *Monitor

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

func NewMonitor added in v0.17.0

func NewMonitor() *Monitor

NewMonitor creates a new Monitor.

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

func (m *Monitor) AddConditionForMonitoringIdentifier(condition *Condition, identifier string)

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

func (m *Monitor) Description() string

Description returns the object's -description text.

func (*Monitor) IsEqual added in v0.17.0

func (m *Monitor) IsEqual(other obj.Object) bool

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

func (*Monitor) IsKind added in v0.17.0

func (m *Monitor) IsKind(className string) bool

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

func (*Monitor) MonitoredIdentifiers added in v0.17.0

func (m *Monitor) MonitoredIdentifiers() []string

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

func (m *Monitor) Name() string

Name returns the name.

func (*Monitor) RemoveConditionFromMonitoringWithIdentifier added in v0.17.0

func (m *Monitor) RemoveConditionFromMonitoringWithIdentifier(identifier string)

RemoveConditionFromMonitoringWithIdentifier removes condition from monitoring with identifier.

func (*Monitor) String added in v0.17.0

func (m *Monitor) String() string

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

type MonitorConfiguration added in v0.17.0

type MonitorConfiguration struct {
	objref.Handle
}

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

type MonitoringEvent struct {
	objref.Handle
}

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

type MonitoringRecord struct {
	objref.Handle
}

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
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

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

type OSClockid added in v0.17.0

type OSClockid uint32
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

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

type Perm added in v0.17.0

type Perm int32
const (
	PermReadData           Perm = 2
	PermListDirectory      Perm = 2
	PermWriteData          Perm = 4
	PermAddFile            Perm = 4
	PermExecute            Perm = 8
	PermSearch             Perm = 8
	PermDelete             Perm = 16
	PermAppendData         Perm = 32
	PermAddSubdirectory    Perm = 32
	PermDeleteChild        Perm = 64
	PermReadAttributes     Perm = 128
	PermWriteAttributes    Perm = 256
	PermReadExtattributes  Perm = 512
	PermWriteExtattributes Perm = 1024
	PermReadSecurity       Perm = 2048
	PermWriteSecurity      Perm = 4096
	PermChangeOwner        Perm = 8192
	PermSynchronize        Perm = 1048576
)

func (Perm) String added in v0.17.0

func (e Perm) String() string

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

type Placemark added in v0.17.0

type Placemark struct {
	objref.Handle
}

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

func NewPlacemarkWithPlacemark(placemark *Placemark) *Placemark

NewPlacemarkWithPlacemark initializes and returns a placemark object from another placemark object.

func PlacemarkFromID added in v0.17.0

func PlacemarkFromID(id objc.ID) *Placemark

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

func (p *Placemark) AddressDictionary() obj.Object

AddressDictionary returns the address dictionary.

func (*Placemark) AdministrativeArea added in v0.17.0

func (p *Placemark) AdministrativeArea() string

AdministrativeArea returns the administrative area.

func (*Placemark) AreasOfInterest added in v0.17.0

func (p *Placemark) AreasOfInterest() []string

AreasOfInterest returns the areas of interest.

AreasOfInterest returns the collection as a Go slice.

func (*Placemark) Country added in v0.17.0

func (p *Placemark) Country() string

Country returns the country.

func (*Placemark) Description added in v0.17.0

func (p *Placemark) Description() string

Description returns the object's -description text.

func (*Placemark) ISOcountryCode added in v0.17.0

func (p *Placemark) ISOcountryCode() string

ISOcountryCode returns the is ocountry code.

func (*Placemark) InlandWater added in v0.17.0

func (p *Placemark) InlandWater() string

InlandWater returns the inland water.

func (*Placemark) IsEqual added in v0.17.0

func (p *Placemark) IsEqual(other obj.Object) bool

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

func (*Placemark) IsKind added in v0.17.0

func (p *Placemark) IsKind(className string) bool

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

func (*Placemark) Locality added in v0.17.0

func (p *Placemark) Locality() string

Locality returns the locality.

func (*Placemark) Location added in v0.18.0

func (p *Placemark) Location() unsafe.Pointer

Location returns the location.

func (*Placemark) Name added in v0.17.0

func (p *Placemark) Name() string

Name returns the name.

func (*Placemark) Ocean added in v0.17.0

func (p *Placemark) Ocean() string

Ocean returns the ocean.

func (*Placemark) PostalAddress added in v0.17.0

func (p *Placemark) PostalAddress() obj.Object

PostalAddress returns the postal address.

func (*Placemark) PostalCode added in v0.17.0

func (p *Placemark) PostalCode() string

PostalCode returns the postal code.

func (*Placemark) Region added in v0.17.0

func (p *Placemark) Region() *Region

Region returns the region.

func (*Placemark) String added in v0.17.0

func (p *Placemark) String() string

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

func (*Placemark) SubAdministrativeArea added in v0.17.0

func (p *Placemark) SubAdministrativeArea() string

SubAdministrativeArea returns the sub administrative area.

func (*Placemark) SubLocality added in v0.17.0

func (p *Placemark) SubLocality() string

SubLocality returns the sub locality.

func (*Placemark) SubThoroughfare added in v0.17.0

func (p *Placemark) SubThoroughfare() string

SubThoroughfare returns the sub thoroughfare.

func (*Placemark) Thoroughfare added in v0.17.0

func (p *Placemark) Thoroughfare() string

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
)

func (Proximity) String added in v0.17.0

func (e Proximity) String() string

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

type PtrauthKey added in v0.17.0

type PtrauthKey int32
const (
	Ptrauth_key_none                     PtrauthKey = -1
	Ptrauth_key_asia                     PtrauthKey = 0
	Ptrauth_key_asib                     PtrauthKey = 1
	Ptrauth_key_asda                     PtrauthKey = 2
	Ptrauth_key_asdb                     PtrauthKey = 3
	Ptrauth_key_process_independent_code PtrauthKey = 0
	Ptrauth_key_process_dependent_code   PtrauthKey = 1
	Ptrauth_key_process_independent_data PtrauthKey = 2
	Ptrauth_key_process_dependent_data   PtrauthKey = 3
	Ptrauth_key_return_address           PtrauthKey = 1
	Ptrauth_key_frame_pointer            PtrauthKey = 3
	Ptrauth_key_function_pointer         PtrauthKey = 0
	Ptrauth_key_block_function           PtrauthKey = 0
	Ptrauth_key_cxx_vtable_pointer       PtrauthKey = 2
	Ptrauth_key_method_list_pointer      PtrauthKey = 2
	Ptrauth_key_objc_isa_pointer         PtrauthKey = 2
	Ptrauth_key_objc_super_pointer       PtrauthKey = 2
	Ptrauth_key_objc_sel_pointer         PtrauthKey = 3
	Ptrauth_key_objc_class_ro_pointer    PtrauthKey = 2
	Ptrauth_key_block_descriptor_pointer PtrauthKey = 2
	Ptrauth_key_init_fini_pointer        PtrauthKey = 0
)

func (PtrauthKey) String added in v0.17.0

func (e PtrauthKey) String() string

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

type QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

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

type Region added in v0.17.0

type Region struct {
	objref.Handle
}

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

func RegionFromID(id objc.ID) *Region

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

func (*Region) Center added in v0.18.0

func (r *Region) Center() unsafe.Pointer

Center returns the center.

func (*Region) ContainsCoordinate added in v0.17.0

func (r *Region) ContainsCoordinate(coordinate unsafe.Pointer) bool

ContainsCoordinate returns a Boolean value indicating whether the region contains the specified coordinate.

func (*Region) Description added in v0.17.0

func (r *Region) Description() string

Description returns the object's -description text.

func (*Region) Identifier added in v0.17.0

func (r *Region) Identifier() string

Identifier returns the identifier.

func (*Region) IsEqual added in v0.17.0

func (r *Region) IsEqual(other obj.Object) bool

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

func (*Region) IsKind added in v0.17.0

func (r *Region) IsKind(className string) bool

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

func (*Region) NotifyOnEntry added in v0.17.0

func (r *Region) NotifyOnEntry() bool

NotifyOnEntry wraps the corresponding Objective-C method.

func (*Region) NotifyOnExit added in v0.17.0

func (r *Region) NotifyOnExit() bool

NotifyOnExit wraps the corresponding Objective-C method.

func (*Region) Radius added in v0.18.0

func (r *Region) Radius() unsafe.Pointer

Radius returns the radius.

func (*Region) String added in v0.17.0

func (r *Region) String() string

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

func (*Region) WithNotifyOnEntry added in v0.17.0

func (r *Region) WithNotifyOnEntry(notifyOnEntry bool) *Region

WithNotifyOnEntry sets a Boolean indicating that notifications are generated upon entry into the region.

func (*Region) WithNotifyOnExit added in v0.17.0

func (r *Region) WithNotifyOnExit(notifyOnExit bool) *Region

WithNotifyOnExit sets a Boolean indicating that notifications are generated upon exit from the region.

type RegionProvider added in v0.17.0

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

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

type Tag int32
const (
	TagUndefinedTag  Tag = 0
	TagExtendedAllow Tag = 1
	TagExtendedDeny  Tag = 2
)

func (Tag) String added in v0.17.0

func (e Tag) String() string

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

type Type added in v0.17.0

type Type int32
const (
	TypeExtended Type = 256
	TypeAccess   Type = 0
	TypeDefault  Type = 1
	TypeAfs      Type = 2
	TypeCoda     Type = 3
	TypeNtfs     Type = 4
	TypeNwfs     Type = 5
)

func (Type) String added in v0.17.0

func (e Type) String() string

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

type Update added in v0.17.0

type Update struct {
	objref.Handle
}

Update is an idiomatic wrapper over the Objective-C class CLUpdate.

An object that represents a location update.

func NewUpdate added in v0.17.0

func NewUpdate() *Update

NewUpdate creates a new Update.

func UpdateFromID added in v0.17.0

func UpdateFromID(id objc.ID) *Update

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

func (u *Update) AccuracyLimited() bool

AccuracyLimited wraps the corresponding Objective-C method.

func (*Update) AuthorizationDenied added in v0.17.0

func (u *Update) AuthorizationDenied() bool

AuthorizationDenied wraps the corresponding Objective-C method.

func (*Update) AuthorizationDeniedGlobally added in v0.17.0

func (u *Update) AuthorizationDeniedGlobally() bool

AuthorizationDeniedGlobally wraps the corresponding Objective-C method.

func (*Update) AuthorizationRequestInProgress added in v0.17.0

func (u *Update) AuthorizationRequestInProgress() bool

AuthorizationRequestInProgress wraps the corresponding Objective-C method.

func (*Update) AuthorizationRestricted added in v0.17.0

func (u *Update) AuthorizationRestricted() bool

AuthorizationRestricted wraps the corresponding Objective-C method.

func (*Update) Description added in v0.17.0

func (u *Update) Description() string

Description returns the object's -description text.

func (*Update) InsufficientlyInUse added in v0.17.0

func (u *Update) InsufficientlyInUse() bool

InsufficientlyInUse wraps the corresponding Objective-C method.

func (*Update) IsEqual added in v0.17.0

func (u *Update) IsEqual(other obj.Object) bool

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

func (*Update) IsKind added in v0.17.0

func (u *Update) IsKind(className string) bool

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

func (*Update) IsStationary added in v0.17.0

func (u *Update) IsStationary() bool

IsStationary reports whether the object is stationary.

func (*Update) Location added in v0.18.0

func (u *Update) Location() unsafe.Pointer

Location returns the location.

func (*Update) LocationUnavailable added in v0.17.0

func (u *Update) LocationUnavailable() bool

LocationUnavailable wraps the corresponding Objective-C method.

func (*Update) ServiceSessionRequired added in v0.17.0

func (u *Update) ServiceSessionRequired() bool

ServiceSessionRequired wraps the corresponding Objective-C method.

func (*Update) Stationary added in v0.17.0

func (u *Update) Stationary() bool

Stationary wraps the corresponding Objective-C method.

func (*Update) String added in v0.17.0

func (u *Update) String() string

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

type VirtualMemoryGuardExceptionCode added in v0.17.0

type VirtualMemoryGuardExceptionCode uint32
const (
	KGUARD_EXC_DEALLOC_GAP                   VirtualMemoryGuardExceptionCode = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        VirtualMemoryGuardExceptionCode = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         VirtualMemoryGuardExceptionCode = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    VirtualMemoryGuardExceptionCode = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    VirtualMemoryGuardExceptionCode = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         VirtualMemoryGuardExceptionCode = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         VirtualMemoryGuardExceptionCode = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  VirtualMemoryGuardExceptionCode = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    VirtualMemoryGuardExceptionCode = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              VirtualMemoryGuardExceptionCode = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        VirtualMemoryGuardExceptionCode = 99
	KGUARD_EXC_SEC_COPY_DENIED               VirtualMemoryGuardExceptionCode = 100
	KGUARD_EXC_SEC_SHARING_DENIED            VirtualMemoryGuardExceptionCode = 101
	KGUARD_EXC_MTE_SYNC_FAULT                VirtualMemoryGuardExceptionCode = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          VirtualMemoryGuardExceptionCode = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          VirtualMemoryGuardExceptionCode = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204
)

func (VirtualMemoryGuardExceptionCode) String added in v0.17.0

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

type Visit added in v0.17.0

type Visit struct {
	objref.Handle
}

Visit is an idiomatic wrapper over the Objective-C class CLVisit.

Information about the user’s location during a specific period of time.

func NewVisit added in v0.17.0

func NewVisit() *Visit

NewVisit creates a new Visit.

func VisitFromID added in v0.17.0

func VisitFromID(id objc.ID) *Visit

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

func (v_ *Visit) ArrivalDate() time.Time

ArrivalDate returns the arrival date.

func (*Visit) Coordinate added in v0.18.0

func (v_ *Visit) Coordinate() unsafe.Pointer

Coordinate returns the coordinate.

func (*Visit) DepartureDate added in v0.17.0

func (v_ *Visit) DepartureDate() time.Time

DepartureDate returns the departure date.

func (*Visit) Description added in v0.17.0

func (v_ *Visit) Description() string

Description returns the object's -description text.

func (*Visit) HorizontalAccuracy added in v0.18.0

func (v_ *Visit) HorizontalAccuracy() unsafe.Pointer

HorizontalAccuracy returns the horizontal accuracy.

func (*Visit) IsEqual added in v0.17.0

func (v_ *Visit) IsEqual(other obj.Object) bool

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

func (*Visit) IsKind added in v0.17.0

func (v_ *Visit) IsKind(className string) bool

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

func (*Visit) String added in v0.17.0

func (v_ *Visit) String() string

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

type XpcListenerCreateFlags added in v0.17.0

type XpcListenerCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcListenerCreateFlagsNone            XpcListenerCreateFlags = 0
	XpcListenerCreateFlagsInactive        XpcListenerCreateFlags = 1
	XpcListenerCreateFlagsForceMach       XpcListenerCreateFlags = 2
	XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4
)

func (XpcListenerCreateFlags) String added in v0.17.0

func (e XpcListenerCreateFlags) String() string

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

type XpcSessionCreateFlags added in v0.17.0

type XpcSessionCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcSessionCreateFlagsNone           XpcSessionCreateFlags = 0
	XpcSessionCreateFlagsInactive       XpcSessionCreateFlags = 1
	XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2
)

func (XpcSessionCreateFlags) String added in v0.17.0

func (e XpcSessionCreateFlags) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL