corelocation

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Obtain the geographic location and orientation of a device.

Apple Documentation

Index

Constants

This section is empty.

Variables

View Source
var BeaconClass = _BeaconClass{objc.GetClass("CLBeacon")}

The class instance for the Beacon class.

View Source
var BeaconRegionClass = _BeaconRegionClass{objc.GetClass("CLBeaconRegion")}

The class instance for the BeaconRegion class.

View Source
var CircularRegionClass = _CircularRegionClass{objc.GetClass("CLCircularRegion")}

The class instance for the CircularRegion class.

View Source
var FloorClass = _FloorClass{objc.GetClass("CLFloor")}

The class instance for the Floor class.

View Source
var GeocoderClass = _GeocoderClass{objc.GetClass("CLGeocoder")}

The class instance for the Geocoder class.

View Source
var HeadingClass = _HeadingClass{objc.GetClass("CLHeading")}

The class instance for the Heading class.

View Source
var LocationClass = _LocationClass{objc.GetClass("CLLocation")}

The class instance for the Location class.

View Source
var LocationDistanceMax = LocationDistance(math.Inf(1))
View Source
var LocationManagerClass = _LocationManagerClass{objc.GetClass("CLLocationManager")}

The class instance for the LocationManager class.

View Source
var LocationSourceInformationClass = _LocationSourceInformationClass{objc.GetClass("CLLocationSourceInformation")}

The class instance for the LocationSourceInformation class.

View Source
var PlacemarkClass = _PlacemarkClass{objc.GetClass("CLPlacemark")}

The class instance for the Placemark class.

View Source
var RegionClass = _RegionClass{objc.GetClass("CLRegion")}

The class instance for the Region class.

View Source
var VisitClass = _VisitClass{objc.GetClass("CLVisit")}

The class instance for the Visit class.

Functions

func LocationManager_HeadingAvailable

func LocationManager_HeadingAvailable() bool

Returns a Boolean value indicating whether the location manager is able to generate heading-related events. Full Topic

func LocationManager_IsMonitoringAvailableForClass

func LocationManager_IsMonitoringAvailableForClass(regionClass objc.IClass) bool

Returns a Boolean value indicating whether the device supports region monitoring using the specified class. Full Topic

func LocationManager_IsRangingAvailable

func LocationManager_IsRangingAvailable() bool

Returns a Boolean value indicating whether the device supports ranging of beacons that use the iBeacon protocol. Full Topic

func LocationManager_LocationServicesEnabled

func LocationManager_LocationServicesEnabled() bool

Returns a Boolean value indicating whether location services are enabled on the device. Full Topic

func LocationManager_SignificantLocationChangeMonitoringAvailable

func LocationManager_SignificantLocationChangeMonitoringAvailable() bool

Returns a Boolean value indicating whether the significant-change location service is available on the device. Full Topic

Types

type AccuracyAuthorization

type AccuracyAuthorization int

Constants indicating the level of location accuracy the app has authorization to use. Full Topic

const (
	AccuracyAuthorizationFullAccuracy    AccuracyAuthorization = 0
	AccuracyAuthorizationReducedAccuracy AccuracyAuthorization = 1
)

type ActivityType

type ActivityType int

Constants that indicate the type of activity associated with location updates. Full Topic

const (
	ActivityTypeAirborne             ActivityType = 5
	ActivityTypeAutomotiveNavigation ActivityType = 2
	ActivityTypeFitness              ActivityType = 3
	ActivityTypeOther                ActivityType = 1
	ActivityTypeOtherNavigation      ActivityType = 4
)

type AuthorizationStatus

type AuthorizationStatus int

Constants indicating the app's authorization to use location services. Full Topic

type Beacon

type Beacon struct {
	objc.Object
}

Information about an observed iBeacon device and its relative distance to the user’s device. Full Topic

func BeaconFrom

func BeaconFrom(ptr unsafe.Pointer) Beacon

func NewBeacon

func NewBeacon() Beacon

func (Beacon) Accuracy

func (b_ Beacon) Accuracy() LocationAccuracy

The accuracy of the proximity value, measured in meters from the beacon. Full Topic

func (Beacon) Init

func (b_ Beacon) Init() Beacon

func (Beacon) Major

func (b_ Beacon) Major() foundation.Number

The major value that the observed beacon transmitted. Full Topic

func (Beacon) Minor

func (b_ Beacon) Minor() foundation.Number

The minor value that the observed beacon transmitted. Full Topic

func (Beacon) Proximity

func (b_ Beacon) Proximity() Proximity

The relative distance to the beacon. Full Topic

func (Beacon) Rssi

func (b_ Beacon) Rssi() int

The received signal strength of the beacon, measured in decibels. Full Topic

func (Beacon) Timestamp

func (b_ Beacon) Timestamp() foundation.Date

A timestamp representing when the beacon was observed. Full Topic

func (Beacon) UUID

func (b_ Beacon) UUID() foundation.UUID

The UUID that the observed beacon transmitted. Full Topic

type BeaconMajorValue

type BeaconMajorValue uint16

The most significant value in a beacon. Full Topic

type BeaconMinorValue

type BeaconMinorValue uint16

The least significant value in a beacon. Full Topic

type BeaconRegion

type BeaconRegion struct {
	Region
}

A region for detecting the presence of iBeacon devices. Full Topic

func BeaconRegionFrom

func BeaconRegionFrom(ptr unsafe.Pointer) BeaconRegion

func NewBeaconRegion

func NewBeaconRegion() BeaconRegion

func (BeaconRegion) Init

func (b_ BeaconRegion) Init() BeaconRegion

type CircularRegion

type CircularRegion struct {
	Region
}

A circular geographic region that a center point and radius deine. Full Topic

func CircularRegionFrom

func CircularRegionFrom(ptr unsafe.Pointer) CircularRegion

func NewCircularRegion

func NewCircularRegion() CircularRegion

func (CircularRegion) Init

func (c_ CircularRegion) Init() CircularRegion

type DeviceOrientation

type DeviceOrientation int

Constants indicating the physical orientation of the device. Full Topic

const (
	DeviceOrientationFaceDown           DeviceOrientation = 6
	DeviceOrientationFaceUp             DeviceOrientation = 5
	DeviceOrientationLandscapeLeft      DeviceOrientation = 3
	DeviceOrientationLandscapeRight     DeviceOrientation = 4
	DeviceOrientationPortrait           DeviceOrientation = 1
	DeviceOrientationPortraitUpsideDown DeviceOrientation = 2
	DeviceOrientationUnknown            DeviceOrientation = 0
)

type Error

type Error int

Error codes returned by the location manager object. Full Topic

type Floor

type Floor struct {
	objc.Object
}

The floor of a building on which the user's device is located. Full Topic

func FloorFrom

func FloorFrom(ptr unsafe.Pointer) Floor

func NewFloor

func NewFloor() Floor

func (Floor) Init

func (f_ Floor) Init() Floor

func (Floor) Level

func (f_ Floor) Level() int

The logical floor of the building. Full Topic

type GeocodeCompletionHandler

type GeocodeCompletionHandler = func(placemarks []Placemark, error foundation.Error)

A block to be called when a geocoding request is complete. Full Topic

type Geocoder

type Geocoder struct {
	objc.Object
}

An interface for converting between geographic coordinates and place names. Full Topic

func GeocoderFrom

func GeocoderFrom(ptr unsafe.Pointer) Geocoder

func NewGeocoder

func NewGeocoder() Geocoder

func (Geocoder) CancelGeocode

func (g_ Geocoder) CancelGeocode()

Cancels a pending geocoding request. Full Topic

func (Geocoder) GeocodeAddressStringCompletionHandler

func (g_ Geocoder) GeocodeAddressStringCompletionHandler(addressString string, completionHandler GeocodeCompletionHandler)

Submits a forward-geocoding request using the specified string. Full Topic

func (Geocoder) GeocodeAddressStringInRegionCompletionHandler

func (g_ Geocoder) GeocodeAddressStringInRegionCompletionHandler(addressString string, region IRegion, completionHandler GeocodeCompletionHandler)

Submits a forward-geocoding request using the specified string and region information. Full Topic

func (Geocoder) GeocodeAddressStringInRegionPreferredLocaleCompletionHandler

func (g_ Geocoder) GeocodeAddressStringInRegionPreferredLocaleCompletionHandler(addressString string, region IRegion, locale foundation.ILocale, completionHandler GeocodeCompletionHandler)

Submits a forward-geocoding requesting using the specified address string and locale information. Full Topic

func (Geocoder) GeocodePostalAddressCompletionHandler

func (g_ Geocoder) GeocodePostalAddressCompletionHandler(postalAddress contacts.IPostalAddress, completionHandler GeocodeCompletionHandler)

Submits a forward-geocoding requesting using the specified Contacts framework information. Full Topic

func (Geocoder) GeocodePostalAddressPreferredLocaleCompletionHandler

func (g_ Geocoder) GeocodePostalAddressPreferredLocaleCompletionHandler(postalAddress contacts.IPostalAddress, locale foundation.ILocale, completionHandler GeocodeCompletionHandler)

Submits a forward-geocoding requesting using the specified locale and Contacts framework information. Full Topic

func (Geocoder) Init

func (g_ Geocoder) Init() Geocoder

func (Geocoder) IsGeocoding

func (g_ Geocoder) IsGeocoding() bool

A Boolean value indicating whether the receiver is in the middle of geocoding its value. Full Topic

func (Geocoder) ReverseGeocodeLocationCompletionHandler

func (g_ Geocoder) ReverseGeocodeLocationCompletionHandler(location ILocation, completionHandler GeocodeCompletionHandler)

Submits a reverse-geocoding request for the specified location. Full Topic

func (Geocoder) ReverseGeocodeLocationPreferredLocaleCompletionHandler

func (g_ Geocoder) ReverseGeocodeLocationPreferredLocaleCompletionHandler(location ILocation, locale foundation.ILocale, completionHandler GeocodeCompletionHandler)

Submits a reverse-geocoding request for the specified location and locale. Full Topic

type Heading

type Heading struct {
	objc.Object
}

The azimuth (orientation) of the user’s device, relative to true or magnetic north. Full Topic

func HeadingFrom

func HeadingFrom(ptr unsafe.Pointer) Heading

func NewHeading

func NewHeading() Heading

func (Heading) HeadingAccuracy

func (h_ Heading) HeadingAccuracy() LocationDirection

The maximum deviation (measured in degrees) between the reported heading and the true geomagnetic heading. Full Topic

func (Heading) Init

func (h_ Heading) Init() Heading

func (Heading) MagneticHeading

func (h_ Heading) MagneticHeading() LocationDirection

The heading (measured in degrees) relative to magnetic north. Full Topic

func (Heading) Timestamp

func (h_ Heading) Timestamp() foundation.Date

The time at which this heading was determined. Full Topic

func (Heading) TrueHeading

func (h_ Heading) TrueHeading() LocationDirection

The heading (measured in degrees) relative to true north. Full Topic

func (Heading) X

The geomagnetic data (measured in microteslas) for the x-axis. Full Topic

func (Heading) Y

The geomagnetic data (measured in microteslas) for the y-axis. Full Topic

func (Heading) Z

The geomagnetic data (measured in microteslas) for the z-axis. Full Topic

type HeadingComponentValue

type HeadingComponentValue float64

A type used to report magnetic differences reported by the onboard hardware. Full Topic

type IBeacon

type IBeacon interface {
	objc.IObject
	Timestamp() foundation.Date
	Rssi() int
	Major() foundation.Number
	UUID() foundation.UUID
	Proximity() Proximity
	Minor() foundation.Number
	Accuracy() LocationAccuracy
}

An interface definition for the Beacon class.

type IBeaconRegion

type IBeaconRegion interface {
	IRegion
}

An interface definition for the BeaconRegion class.

type ICircularRegion

type ICircularRegion interface {
	IRegion
}

An interface definition for the CircularRegion class.

type IFloor

type IFloor interface {
	objc.IObject
	Level() int
}

An interface definition for the Floor class.

type IGeocoder

type IGeocoder interface {
	objc.IObject
	GeocodeAddressStringInRegionCompletionHandler(addressString string, region IRegion, completionHandler GeocodeCompletionHandler)
	GeocodePostalAddressCompletionHandler(postalAddress contacts.IPostalAddress, completionHandler GeocodeCompletionHandler)
	GeocodeAddressStringInRegionPreferredLocaleCompletionHandler(addressString string, region IRegion, locale foundation.ILocale, completionHandler GeocodeCompletionHandler)
	ReverseGeocodeLocationPreferredLocaleCompletionHandler(location ILocation, locale foundation.ILocale, completionHandler GeocodeCompletionHandler)
	GeocodePostalAddressPreferredLocaleCompletionHandler(postalAddress contacts.IPostalAddress, locale foundation.ILocale, completionHandler GeocodeCompletionHandler)
	CancelGeocode()
	GeocodeAddressStringCompletionHandler(addressString string, completionHandler GeocodeCompletionHandler)
	ReverseGeocodeLocationCompletionHandler(location ILocation, completionHandler GeocodeCompletionHandler)
	IsGeocoding() bool
}

An interface definition for the Geocoder class.

type IHeading

type IHeading interface {
	objc.IObject
	Timestamp() foundation.Date
	X() HeadingComponentValue
	Y() HeadingComponentValue
	TrueHeading() LocationDirection
	HeadingAccuracy() LocationDirection
	MagneticHeading() LocationDirection
	Z() HeadingComponentValue
}

An interface definition for the Heading class.

type ILocation

type ILocation interface {
	objc.IObject
	DistanceFromLocation(location ILocation) LocationDistance
	Coordinate() LocationCoordinate2D
	Floor() Floor
	Speed() LocationSpeed
	SourceInformation() LocationSourceInformation
	Course() LocationDirection
	SpeedAccuracy() LocationSpeedAccuracy
	HorizontalAccuracy() LocationAccuracy
	Timestamp() foundation.Date
	Altitude() LocationDistance
	VerticalAccuracy() LocationAccuracy
	EllipsoidalAltitude() LocationDistance
	CourseAccuracy() LocationDirectionAccuracy
}

An interface definition for the Location class.

type ILocationManager

type ILocationManager interface {
	objc.IObject
	StopUpdatingLocation()
	DismissHeadingCalibrationDisplay()
	StopMonitoringVisits()
	RequestWhenInUseAuthorization()
	StartMonitoringVisits()
	StartMonitoringSignificantLocationChanges()
	StartUpdatingHeading()
	RequestAlwaysAuthorization()
	StopMonitoringSignificantLocationChanges()
	RequestTemporaryFullAccuracyAuthorizationWithPurposeKey(purposeKey string)
	RequestTemporaryFullAccuracyAuthorizationWithPurposeKeyCompletion(purposeKey string, completion func(arg0 foundation.Error))
	StartUpdatingLocation()
	RequestLocation()
	MaximumRegionMonitoringDistance() LocationDistance
	DistanceFilter() LocationDistance
	SetDistanceFilter(value LocationDistance)
	AuthorizationStatus() AuthorizationStatus
	IsAuthorizedForWidgetUpdates() bool
	HeadingOrientation() DeviceOrientation
	SetHeadingOrientation(value DeviceOrientation)
	MonitoredRegions() foundation.Set
	AccuracyAuthorization() AccuracyAuthorization
	Location() Location
	HeadingFilter() LocationDegrees
	SetHeadingFilter(value LocationDegrees)
	AllowsBackgroundLocationUpdates() bool
	SetAllowsBackgroundLocationUpdates(value bool)
	DesiredAccuracy() LocationAccuracy
	SetDesiredAccuracy(value LocationAccuracy)
	Heading() Heading
	Delegate() LocationManagerDelegateObject
	SetDelegate(value PLocationManagerDelegate)
	SetDelegateObject(valueObject objc.IObject)
	PausesLocationUpdatesAutomatically() bool
	SetPausesLocationUpdatesAutomatically(value bool)
	ActivityType() ActivityType
	SetActivityType(value ActivityType)
}

An interface definition for the LocationManager class.

type ILocationSourceInformation

type ILocationSourceInformation interface {
	objc.IObject
	IsSimulatedBySoftware() bool
	IsProducedByAccessory() bool
}

An interface definition for the LocationSourceInformation class.

type IPlacemark

type IPlacemark interface {
	objc.IObject
	Country() string
	SubAdministrativeArea() string
	Ocean() string
	SubThoroughfare() string
	PostalAddress() contacts.PostalAddress
	InlandWater() string
	Location() Location
	Region() Region
	Thoroughfare() string
	PostalCode() string
	AreasOfInterest() []string
	SubLocality() string
	AdministrativeArea() string
	TimeZone() foundation.TimeZone
	Locality() string
	ISOcountryCode() string
	Name() string
}

An interface definition for the Placemark class.

type IRegion

type IRegion interface {
	objc.IObject
	Identifier() string
	NotifyOnExit() bool
	SetNotifyOnExit(value bool)
	NotifyOnEntry() bool
	SetNotifyOnEntry(value bool)
}

An interface definition for the Region class.

type IVisit

type IVisit interface {
	objc.IObject
	ArrivalDate() foundation.Date
	Coordinate() LocationCoordinate2D
	DepartureDate() foundation.Date
	HorizontalAccuracy() LocationAccuracy
}

An interface definition for the Visit class.

type Location

type Location struct {
	objc.Object
}

The latitude, longitude, and course information reported by the system. Full Topic

func LocationFrom

func LocationFrom(ptr unsafe.Pointer) Location

func NewLocation

func NewLocation() Location

func NewLocationWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestamp

func NewLocationWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestamp(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, course LocationDirection, courseAccuracy LocationDirectionAccuracy, speed LocationSpeed, speedAccuracy LocationSpeedAccuracy, timestamp foundation.IDate) Location

Creates a location object with the specified coordinate, altitude, course, and accuracy information. Full Topic

func NewLocationWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestampSourceInfo

func NewLocationWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestampSourceInfo(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, course LocationDirection, courseAccuracy LocationDirectionAccuracy, speed LocationSpeed, speedAccuracy LocationSpeedAccuracy, timestamp foundation.IDate, sourceInfo ILocationSourceInformation) Location
[Full Topic]

func NewLocationWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp

func NewLocationWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, course LocationDirection, speed LocationSpeed, timestamp foundation.IDate) Location

Creates a location object with the specified coordinate, altitude, and course information. Full Topic

func NewLocationWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp

func NewLocationWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, timestamp foundation.IDate) Location

Creates a location object with the specified coordinate and altitude information. Full Topic

func NewLocationWithLatitudeLongitude

func NewLocationWithLatitudeLongitude(latitude LocationDegrees, longitude LocationDegrees) Location

Creates a location object with the specified latitude and longitude. Full Topic

func (Location) Altitude

func (l_ Location) Altitude() LocationDistance

The altitude above mean sea level associated with a location, measured in meters. Full Topic

func (Location) Coordinate

func (l_ Location) Coordinate() LocationCoordinate2D

The geographical coordinate information. Full Topic

func (Location) Course

func (l_ Location) Course() LocationDirection

The direction in which the device is traveling, measured in degrees and relative to due north. Full Topic

func (Location) CourseAccuracy

func (l_ Location) CourseAccuracy() LocationDirectionAccuracy

The accuracy of the course value, measured in degrees. Full Topic

func (Location) DistanceFromLocation

func (l_ Location) DistanceFromLocation(location ILocation) LocationDistance

Returns the distance (measured in meters) from the current object’s location to the specified location. Full Topic

func (Location) EllipsoidalAltitude

func (l_ Location) EllipsoidalAltitude() LocationDistance

The altitude as a height above the World Geodetic System 1984 (WGS84) ellipsoid, measured in meters. Full Topic

func (Location) Floor

func (l_ Location) Floor() Floor

The logical floor of the building in which the user is located. Full Topic

func (Location) HorizontalAccuracy

func (l_ Location) HorizontalAccuracy() LocationAccuracy

The radius of uncertainty for the location, measured in meters. Full Topic

func (Location) Init

func (l_ Location) Init() Location

func (Location) InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestamp

func (l_ Location) InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestamp(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, course LocationDirection, courseAccuracy LocationDirectionAccuracy, speed LocationSpeed, speedAccuracy LocationSpeedAccuracy, timestamp foundation.IDate) Location

func (Location) InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestampSourceInfo

func (l_ Location) InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestampSourceInfo(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, course LocationDirection, courseAccuracy LocationDirectionAccuracy, speed LocationSpeed, speedAccuracy LocationSpeedAccuracy, timestamp foundation.IDate, sourceInfo ILocationSourceInformation) Location

func (Location) InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp

func (l_ Location) InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, course LocationDirection, speed LocationSpeed, timestamp foundation.IDate) Location

func (Location) InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp

func (l_ Location) InitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp(coordinate LocationCoordinate2D, altitude LocationDistance, hAccuracy LocationAccuracy, vAccuracy LocationAccuracy, timestamp foundation.IDate) Location

func (Location) InitWithLatitudeLongitude

func (l_ Location) InitWithLatitudeLongitude(latitude LocationDegrees, longitude LocationDegrees) Location

func (Location) SourceInformation

func (l_ Location) SourceInformation() LocationSourceInformation

Information about the source that provides the location. Full Topic

func (Location) Speed

func (l_ Location) Speed() LocationSpeed

The instantaneous speed of the device, measured in meters per second. Full Topic

func (Location) SpeedAccuracy

func (l_ Location) SpeedAccuracy() LocationSpeedAccuracy

The accuracy of the speed value, measured in meters per second. Full Topic

func (Location) Timestamp

func (l_ Location) Timestamp() foundation.Date

The time at which this location was determined. Full Topic

func (Location) VerticalAccuracy

func (l_ Location) VerticalAccuracy() LocationAccuracy

The validity of the altitude values, and their estimated uncertainty, measured in meters. Full Topic

type LocationAccuracy

type LocationAccuracy float64

The accuracy of a geographical coordinate. Full Topic

type LocationCoordinate2D

type LocationCoordinate2D struct {
	Latitude  float64
	Longitude float64
}

The latitude and longitude associated with a location, specified using the WGS 84 reference frame. Full Topic

type LocationDegrees

type LocationDegrees float64

A latitude or longitude value specified in degrees. Full Topic

type LocationDirection

type LocationDirection float64

An azimuth that is measured in degrees relative to true north. Full Topic

type LocationDirectionAccuracy

type LocationDirectionAccuracy float64

The accuracy of a compass heading. Full Topic

type LocationDistance

type LocationDistance float64

A distance in meters from an existing location. Full Topic

type LocationManager

type LocationManager struct {
	objc.Object
}

The object that you use to start and stop the delivery of location-related events to your app. Full Topic

func LocationManagerFrom

func LocationManagerFrom(ptr unsafe.Pointer) LocationManager

func NewLocationManager

func NewLocationManager() LocationManager

func (LocationManager) AccuracyAuthorization

func (l_ LocationManager) AccuracyAuthorization() AccuracyAuthorization

A value that indicates the level of location accuracy the app has permission to use. Full Topic

func (LocationManager) ActivityType

func (l_ LocationManager) ActivityType() ActivityType

The type of activity the app expects the user to typically perform while in the app’s location session. Full Topic

func (LocationManager) AllowsBackgroundLocationUpdates

func (l_ LocationManager) AllowsBackgroundLocationUpdates() bool

A Boolean value that indicates whether the app receives location updates when running in the background. Full Topic

func (LocationManager) AuthorizationStatus

func (l_ LocationManager) AuthorizationStatus() AuthorizationStatus

The current authorization status for the app. Full Topic

func (LocationManager) Delegate

The delegate object to receive update events. Full Topic

func (LocationManager) DesiredAccuracy

func (l_ LocationManager) DesiredAccuracy() LocationAccuracy

The accuracy of the location data that your app wants to receive. Full Topic

func (LocationManager) DismissHeadingCalibrationDisplay

func (l_ LocationManager) DismissHeadingCalibrationDisplay()

Dismisses the heading calibration view from the screen immediately. Full Topic

func (LocationManager) DistanceFilter

func (l_ LocationManager) DistanceFilter() LocationDistance

The minimum distance in meters the device must move horizontally before an update event is generated. Full Topic

func (LocationManager) Heading

func (l_ LocationManager) Heading() Heading

The most recently reported heading. Full Topic

func (LocationManager) HeadingFilter

func (l_ LocationManager) HeadingFilter() LocationDegrees

The minimum angular change in degrees required to generate new heading events. Full Topic

func (LocationManager) HeadingOrientation

func (l_ LocationManager) HeadingOrientation() DeviceOrientation

The device orientation to use when computing heading values. Full Topic

func (LocationManager) Init

func (l_ LocationManager) Init() LocationManager

func (LocationManager) IsAuthorizedForWidgetUpdates

func (l_ LocationManager) IsAuthorizedForWidgetUpdates() bool

A Boolean value that indicates whether a widget is eligible to receive location updates. Full Topic

func (LocationManager) Location

func (l_ LocationManager) Location() Location

The most recently retrieved user location. Full Topic

func (LocationManager) MaximumRegionMonitoringDistance

func (l_ LocationManager) MaximumRegionMonitoringDistance() LocationDistance

The largest boundary distance that can be assigned to a region. Full Topic

func (LocationManager) MonitoredRegions

func (l_ LocationManager) MonitoredRegions() foundation.Set

The set of shared regions monitored by all location-manager objects. Full Topic

func (LocationManager) PausesLocationUpdatesAutomatically

func (l_ LocationManager) PausesLocationUpdatesAutomatically() bool

A Boolean value that indicates whether the location-manager object may pause location updates. Full Topic

func (LocationManager) RequestAlwaysAuthorization

func (l_ LocationManager) RequestAlwaysAuthorization()

Requests the user’s permission to use location services regardless of whether the app is in use. Full Topic

func (LocationManager) RequestLocation

func (l_ LocationManager) RequestLocation()

Requests the one-time delivery of the user’s current location. Full Topic

func (LocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKey

func (l_ LocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKey(purposeKey string)

Requests permission to temporarily use location services with full accuracy. Full Topic

func (LocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKeyCompletion

func (l_ LocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKeyCompletion(purposeKey string, completion func(arg0 foundation.Error))

Requests permission to temporarily use location services with full accuracy and reports the results to the provided completion handler. Full Topic

func (LocationManager) RequestWhenInUseAuthorization

func (l_ LocationManager) RequestWhenInUseAuthorization()

Requests the user’s permission to use location services while the app is in use. Full Topic

func (LocationManager) SetActivityType

func (l_ LocationManager) SetActivityType(value ActivityType)

The type of activity the app expects the user to typically perform while in the app’s location session. Full Topic

func (LocationManager) SetAllowsBackgroundLocationUpdates

func (l_ LocationManager) SetAllowsBackgroundLocationUpdates(value bool)

A Boolean value that indicates whether the app receives location updates when running in the background. Full Topic

func (LocationManager) SetDelegate

func (l_ LocationManager) SetDelegate(value PLocationManagerDelegate)

The delegate object to receive update events. Full Topic

func (LocationManager) SetDelegateObject

func (l_ LocationManager) SetDelegateObject(valueObject objc.IObject)

The delegate object to receive update events. Full Topic

func (LocationManager) SetDesiredAccuracy

func (l_ LocationManager) SetDesiredAccuracy(value LocationAccuracy)

The accuracy of the location data that your app wants to receive. Full Topic

func (LocationManager) SetDistanceFilter

func (l_ LocationManager) SetDistanceFilter(value LocationDistance)

The minimum distance in meters the device must move horizontally before an update event is generated. Full Topic

func (LocationManager) SetHeadingFilter

func (l_ LocationManager) SetHeadingFilter(value LocationDegrees)

The minimum angular change in degrees required to generate new heading events. Full Topic

func (LocationManager) SetHeadingOrientation

func (l_ LocationManager) SetHeadingOrientation(value DeviceOrientation)

The device orientation to use when computing heading values. Full Topic

func (LocationManager) SetPausesLocationUpdatesAutomatically

func (l_ LocationManager) SetPausesLocationUpdatesAutomatically(value bool)

A Boolean value that indicates whether the location-manager object may pause location updates. Full Topic

func (LocationManager) StartMonitoringSignificantLocationChanges

func (l_ LocationManager) StartMonitoringSignificantLocationChanges()

Starts the generation of updates based on significant location changes. Full Topic

func (LocationManager) StartMonitoringVisits

func (l_ LocationManager) StartMonitoringVisits()

Starts the delivery of visit-related events. Full Topic

func (LocationManager) StartUpdatingHeading

func (l_ LocationManager) StartUpdatingHeading()

Starts the generation of updates that report the user’s current heading. Full Topic

func (LocationManager) StartUpdatingLocation

func (l_ LocationManager) StartUpdatingLocation()

Starts the generation of updates that report the user’s current location. Full Topic

func (LocationManager) StopMonitoringSignificantLocationChanges

func (l_ LocationManager) StopMonitoringSignificantLocationChanges()

Stops the delivery of location events based on significant location changes. Full Topic

func (LocationManager) StopMonitoringVisits

func (l_ LocationManager) StopMonitoringVisits()

Stops the delivery of visit-related events. Full Topic

func (LocationManager) StopUpdatingLocation

func (l_ LocationManager) StopUpdatingLocation()

Stops the generation of location updates. Full Topic

type LocationManagerDelegate

type LocationManagerDelegate struct {
	// contains filtered or unexported fields
}

A delegate implementation builder for the PLocationManagerDelegate protocol.

func (*LocationManagerDelegate) HasLocationManagerDidChangeAuthorization

func (di *LocationManagerDelegate) HasLocationManagerDidChangeAuthorization() bool

func (*LocationManagerDelegate) HasLocationManagerDidDetermineStateForRegion

func (di *LocationManagerDelegate) HasLocationManagerDidDetermineStateForRegion() bool

func (*LocationManagerDelegate) HasLocationManagerDidEnterRegion

func (di *LocationManagerDelegate) HasLocationManagerDidEnterRegion() bool

func (*LocationManagerDelegate) HasLocationManagerDidExitRegion

func (di *LocationManagerDelegate) HasLocationManagerDidExitRegion() bool

func (*LocationManagerDelegate) HasLocationManagerDidFailWithError

func (di *LocationManagerDelegate) HasLocationManagerDidFailWithError() bool

func (*LocationManagerDelegate) HasLocationManagerDidFinishDeferredUpdatesWithError

func (di *LocationManagerDelegate) HasLocationManagerDidFinishDeferredUpdatesWithError() bool

func (*LocationManagerDelegate) HasLocationManagerDidPauseLocationUpdates

func (di *LocationManagerDelegate) HasLocationManagerDidPauseLocationUpdates() bool

func (*LocationManagerDelegate) HasLocationManagerDidResumeLocationUpdates

func (di *LocationManagerDelegate) HasLocationManagerDidResumeLocationUpdates() bool

func (*LocationManagerDelegate) HasLocationManagerDidStartMonitoringForRegion

func (di *LocationManagerDelegate) HasLocationManagerDidStartMonitoringForRegion() bool

func (*LocationManagerDelegate) HasLocationManagerDidUpdateHeading

func (di *LocationManagerDelegate) HasLocationManagerDidUpdateHeading() bool

func (*LocationManagerDelegate) HasLocationManagerDidUpdateLocations

func (di *LocationManagerDelegate) HasLocationManagerDidUpdateLocations() bool

func (*LocationManagerDelegate) HasLocationManagerDidVisit

func (di *LocationManagerDelegate) HasLocationManagerDidVisit() bool

func (*LocationManagerDelegate) HasLocationManagerMonitoringDidFailForRegionWithError

func (di *LocationManagerDelegate) HasLocationManagerMonitoringDidFailForRegionWithError() bool

func (*LocationManagerDelegate) HasLocationManagerShouldDisplayHeadingCalibration

func (di *LocationManagerDelegate) HasLocationManagerShouldDisplayHeadingCalibration() bool

func (*LocationManagerDelegate) LocationManagerDidChangeAuthorization

func (di *LocationManagerDelegate) LocationManagerDidChangeAuthorization(manager LocationManager)

Tells the delegate when the app creates the location manager and when the authorization status changes. Full Topic

func (*LocationManagerDelegate) LocationManagerDidDetermineStateForRegion

func (di *LocationManagerDelegate) LocationManagerDidDetermineStateForRegion(manager LocationManager, state RegionState, region Region)

Tells the delegate about the state of the specified region. Full Topic

func (*LocationManagerDelegate) LocationManagerDidEnterRegion

func (di *LocationManagerDelegate) LocationManagerDidEnterRegion(manager LocationManager, region Region)

Tells the delegate that the user entered the specified region. Full Topic

func (*LocationManagerDelegate) LocationManagerDidExitRegion

func (di *LocationManagerDelegate) LocationManagerDidExitRegion(manager LocationManager, region Region)

Tells the delegate that the user left the specified region. Full Topic

func (*LocationManagerDelegate) LocationManagerDidFailWithError

func (di *LocationManagerDelegate) LocationManagerDidFailWithError(manager LocationManager, error foundation.Error)

Tells the delegate that the location manager was unable to retrieve a location value. Full Topic

func (*LocationManagerDelegate) LocationManagerDidFinishDeferredUpdatesWithError

func (di *LocationManagerDelegate) LocationManagerDidFinishDeferredUpdatesWithError(manager LocationManager, error foundation.Error)

Tells the delegate that updates will no longer be deferred. Full Topic

func (*LocationManagerDelegate) LocationManagerDidPauseLocationUpdates

func (di *LocationManagerDelegate) LocationManagerDidPauseLocationUpdates(manager LocationManager)

Tells the delegate that location updates were paused. Full Topic

func (*LocationManagerDelegate) LocationManagerDidResumeLocationUpdates

func (di *LocationManagerDelegate) LocationManagerDidResumeLocationUpdates(manager LocationManager)

Tells the delegate that the delivery of location updates has resumed. Full Topic

func (*LocationManagerDelegate) LocationManagerDidStartMonitoringForRegion

func (di *LocationManagerDelegate) LocationManagerDidStartMonitoringForRegion(manager LocationManager, region Region)

Tells the delegate that a new region is being monitored. Full Topic

func (*LocationManagerDelegate) LocationManagerDidUpdateHeading

func (di *LocationManagerDelegate) LocationManagerDidUpdateHeading(manager LocationManager, newHeading Heading)

Tells the delegate that the location manager received updated heading information. Full Topic

func (*LocationManagerDelegate) LocationManagerDidUpdateLocations

func (di *LocationManagerDelegate) LocationManagerDidUpdateLocations(manager LocationManager, locations []Location)

Tells the delegate that new location data is available. Full Topic

func (*LocationManagerDelegate) LocationManagerDidVisit

func (di *LocationManagerDelegate) LocationManagerDidVisit(manager LocationManager, visit Visit)

Tells the delegate that a new visit-related event was received. Full Topic

func (*LocationManagerDelegate) LocationManagerMonitoringDidFailForRegionWithError

func (di *LocationManagerDelegate) LocationManagerMonitoringDidFailForRegionWithError(manager LocationManager, region Region, error foundation.Error)

Tells the delegate that a region monitoring error occurred. Full Topic

func (*LocationManagerDelegate) LocationManagerShouldDisplayHeadingCalibration

func (di *LocationManagerDelegate) LocationManagerShouldDisplayHeadingCalibration(manager LocationManager) bool

Asks the delegate whether the heading calibration alert should be displayed. Full Topic

func (*LocationManagerDelegate) SetLocationManagerDidChangeAuthorization

func (di *LocationManagerDelegate) SetLocationManagerDidChangeAuthorization(f func(manager LocationManager))

Tells the delegate when the app creates the location manager and when the authorization status changes. Full Topic

func (*LocationManagerDelegate) SetLocationManagerDidDetermineStateForRegion

func (di *LocationManagerDelegate) SetLocationManagerDidDetermineStateForRegion(f func(manager LocationManager, state RegionState, region Region))

Tells the delegate about the state of the specified region. Full Topic

func (*LocationManagerDelegate) SetLocationManagerDidEnterRegion

func (di *LocationManagerDelegate) SetLocationManagerDidEnterRegion(f func(manager LocationManager, region Region))

Tells the delegate that the user entered the specified region. Full Topic

func (*LocationManagerDelegate) SetLocationManagerDidExitRegion

func (di *LocationManagerDelegate) SetLocationManagerDidExitRegion(f func(manager LocationManager, region Region))

Tells the delegate that the user left the specified region. Full Topic

func (*LocationManagerDelegate) SetLocationManagerDidFailWithError

func (di *LocationManagerDelegate) SetLocationManagerDidFailWithError(f func(manager LocationManager, error foundation.Error))

Tells the delegate that the location manager was unable to retrieve a location value. Full Topic

func (*LocationManagerDelegate) SetLocationManagerDidFinishDeferredUpdatesWithError

func (di *LocationManagerDelegate) SetLocationManagerDidFinishDeferredUpdatesWithError(f func(manager LocationManager, error foundation.Error))

Tells the delegate that updates will no longer be deferred. Full Topic

func (*LocationManagerDelegate) SetLocationManagerDidPauseLocationUpdates

func (di *LocationManagerDelegate) SetLocationManagerDidPauseLocationUpdates(f func(manager LocationManager))

Tells the delegate that location updates were paused. Full Topic

func (*LocationManagerDelegate) SetLocationManagerDidResumeLocationUpdates

func (di *LocationManagerDelegate) SetLocationManagerDidResumeLocationUpdates(f func(manager LocationManager))

Tells the delegate that the delivery of location updates has resumed. Full Topic

func (*LocationManagerDelegate) SetLocationManagerDidStartMonitoringForRegion

func (di *LocationManagerDelegate) SetLocationManagerDidStartMonitoringForRegion(f func(manager LocationManager, region Region))

Tells the delegate that a new region is being monitored. Full Topic

func (*LocationManagerDelegate) SetLocationManagerDidUpdateHeading

func (di *LocationManagerDelegate) SetLocationManagerDidUpdateHeading(f func(manager LocationManager, newHeading Heading))

Tells the delegate that the location manager received updated heading information. Full Topic

func (*LocationManagerDelegate) SetLocationManagerDidUpdateLocations

func (di *LocationManagerDelegate) SetLocationManagerDidUpdateLocations(f func(manager LocationManager, locations []Location))

Tells the delegate that new location data is available. Full Topic

func (*LocationManagerDelegate) SetLocationManagerDidVisit

func (di *LocationManagerDelegate) SetLocationManagerDidVisit(f func(manager LocationManager, visit Visit))

Tells the delegate that a new visit-related event was received. Full Topic

func (*LocationManagerDelegate) SetLocationManagerMonitoringDidFailForRegionWithError

func (di *LocationManagerDelegate) SetLocationManagerMonitoringDidFailForRegionWithError(f func(manager LocationManager, region Region, error foundation.Error))

Tells the delegate that a region monitoring error occurred. Full Topic

func (*LocationManagerDelegate) SetLocationManagerShouldDisplayHeadingCalibration

func (di *LocationManagerDelegate) SetLocationManagerShouldDisplayHeadingCalibration(f func(manager LocationManager) bool)

Asks the delegate whether the heading calibration alert should be displayed. Full Topic

type LocationManagerDelegateObject

type LocationManagerDelegateObject struct {
	objc.Object
}

A concrete type for the PLocationManagerDelegate protocol.

func (LocationManagerDelegateObject) HasLocationManagerDidChangeAuthorization

func (l_ LocationManagerDelegateObject) HasLocationManagerDidChangeAuthorization() bool

func (LocationManagerDelegateObject) HasLocationManagerDidDetermineStateForRegion

func (l_ LocationManagerDelegateObject) HasLocationManagerDidDetermineStateForRegion() bool

func (LocationManagerDelegateObject) HasLocationManagerDidEnterRegion

func (l_ LocationManagerDelegateObject) HasLocationManagerDidEnterRegion() bool

func (LocationManagerDelegateObject) HasLocationManagerDidExitRegion

func (l_ LocationManagerDelegateObject) HasLocationManagerDidExitRegion() bool

func (LocationManagerDelegateObject) HasLocationManagerDidFailWithError

func (l_ LocationManagerDelegateObject) HasLocationManagerDidFailWithError() bool

func (LocationManagerDelegateObject) HasLocationManagerDidFinishDeferredUpdatesWithError

func (l_ LocationManagerDelegateObject) HasLocationManagerDidFinishDeferredUpdatesWithError() bool

func (LocationManagerDelegateObject) HasLocationManagerDidPauseLocationUpdates

func (l_ LocationManagerDelegateObject) HasLocationManagerDidPauseLocationUpdates() bool

func (LocationManagerDelegateObject) HasLocationManagerDidResumeLocationUpdates

func (l_ LocationManagerDelegateObject) HasLocationManagerDidResumeLocationUpdates() bool

func (LocationManagerDelegateObject) HasLocationManagerDidStartMonitoringForRegion

func (l_ LocationManagerDelegateObject) HasLocationManagerDidStartMonitoringForRegion() bool

func (LocationManagerDelegateObject) HasLocationManagerDidUpdateHeading

func (l_ LocationManagerDelegateObject) HasLocationManagerDidUpdateHeading() bool

func (LocationManagerDelegateObject) HasLocationManagerDidUpdateLocations

func (l_ LocationManagerDelegateObject) HasLocationManagerDidUpdateLocations() bool

func (LocationManagerDelegateObject) HasLocationManagerDidVisit

func (l_ LocationManagerDelegateObject) HasLocationManagerDidVisit() bool

func (LocationManagerDelegateObject) HasLocationManagerMonitoringDidFailForRegionWithError

func (l_ LocationManagerDelegateObject) HasLocationManagerMonitoringDidFailForRegionWithError() bool

func (LocationManagerDelegateObject) HasLocationManagerShouldDisplayHeadingCalibration

func (l_ LocationManagerDelegateObject) HasLocationManagerShouldDisplayHeadingCalibration() bool

func (LocationManagerDelegateObject) LocationManagerDidChangeAuthorization

func (l_ LocationManagerDelegateObject) LocationManagerDidChangeAuthorization(manager LocationManager)

Tells the delegate when the app creates the location manager and when the authorization status changes. Full Topic

func (LocationManagerDelegateObject) LocationManagerDidDetermineStateForRegion

func (l_ LocationManagerDelegateObject) LocationManagerDidDetermineStateForRegion(manager LocationManager, state RegionState, region Region)

Tells the delegate about the state of the specified region. Full Topic

func (LocationManagerDelegateObject) LocationManagerDidEnterRegion

func (l_ LocationManagerDelegateObject) LocationManagerDidEnterRegion(manager LocationManager, region Region)

Tells the delegate that the user entered the specified region. Full Topic

func (LocationManagerDelegateObject) LocationManagerDidExitRegion

func (l_ LocationManagerDelegateObject) LocationManagerDidExitRegion(manager LocationManager, region Region)

Tells the delegate that the user left the specified region. Full Topic

func (LocationManagerDelegateObject) LocationManagerDidFailWithError

func (l_ LocationManagerDelegateObject) LocationManagerDidFailWithError(manager LocationManager, error foundation.Error)

Tells the delegate that the location manager was unable to retrieve a location value. Full Topic

func (LocationManagerDelegateObject) LocationManagerDidFinishDeferredUpdatesWithError

func (l_ LocationManagerDelegateObject) LocationManagerDidFinishDeferredUpdatesWithError(manager LocationManager, error foundation.Error)

Tells the delegate that updates will no longer be deferred. Full Topic

func (LocationManagerDelegateObject) LocationManagerDidPauseLocationUpdates

func (l_ LocationManagerDelegateObject) LocationManagerDidPauseLocationUpdates(manager LocationManager)

Tells the delegate that location updates were paused. Full Topic

func (LocationManagerDelegateObject) LocationManagerDidResumeLocationUpdates

func (l_ LocationManagerDelegateObject) LocationManagerDidResumeLocationUpdates(manager LocationManager)

Tells the delegate that the delivery of location updates has resumed. Full Topic

func (LocationManagerDelegateObject) LocationManagerDidStartMonitoringForRegion

func (l_ LocationManagerDelegateObject) LocationManagerDidStartMonitoringForRegion(manager LocationManager, region Region)

Tells the delegate that a new region is being monitored. Full Topic

func (LocationManagerDelegateObject) LocationManagerDidUpdateHeading

func (l_ LocationManagerDelegateObject) LocationManagerDidUpdateHeading(manager LocationManager, newHeading Heading)

Tells the delegate that the location manager received updated heading information. Full Topic

func (LocationManagerDelegateObject) LocationManagerDidUpdateLocations

func (l_ LocationManagerDelegateObject) LocationManagerDidUpdateLocations(manager LocationManager, locations []Location)

Tells the delegate that new location data is available. Full Topic

func (LocationManagerDelegateObject) LocationManagerDidVisit

func (l_ LocationManagerDelegateObject) LocationManagerDidVisit(manager LocationManager, visit Visit)

Tells the delegate that a new visit-related event was received. Full Topic

func (LocationManagerDelegateObject) LocationManagerMonitoringDidFailForRegionWithError

func (l_ LocationManagerDelegateObject) LocationManagerMonitoringDidFailForRegionWithError(manager LocationManager, region Region, error foundation.Error)

Tells the delegate that a region monitoring error occurred. Full Topic

func (LocationManagerDelegateObject) LocationManagerShouldDisplayHeadingCalibration

func (l_ LocationManagerDelegateObject) LocationManagerShouldDisplayHeadingCalibration(manager LocationManager) bool

Asks the delegate whether the heading calibration alert should be displayed. Full Topic

type LocationSourceInformation

type LocationSourceInformation struct {
	objc.Object
}

Information about the source that provides a location. Full Topic

func LocationSourceInformationFrom

func LocationSourceInformationFrom(ptr unsafe.Pointer) LocationSourceInformation

func NewLocationSourceInformation

func NewLocationSourceInformation() LocationSourceInformation

func NewLocationSourceInformationWithSoftwareSimulationStateAndExternalAccessoryState

func NewLocationSourceInformationWithSoftwareSimulationStateAndExternalAccessoryState(isSoftware bool, isAccessory bool) LocationSourceInformation

Creates an instance of location source information. Full Topic

func (LocationSourceInformation) Init

func (LocationSourceInformation) InitWithSoftwareSimulationStateAndExternalAccessoryState

func (l_ LocationSourceInformation) InitWithSoftwareSimulationStateAndExternalAccessoryState(isSoftware bool, isAccessory bool) LocationSourceInformation

func (LocationSourceInformation) IsProducedByAccessory

func (l_ LocationSourceInformation) IsProducedByAccessory() bool

A Boolean value that indicates whether the system receives the location from an external accessory. Full Topic

func (LocationSourceInformation) IsSimulatedBySoftware

func (l_ LocationSourceInformation) IsSimulatedBySoftware() bool

A Boolean value that indicates whether the system generates the location using on-device software simulation. Full Topic

type LocationSpeed

type LocationSpeed float64

The velocity (measured in meters per second) at which the device is moving. Full Topic

type LocationSpeedAccuracy

type LocationSpeedAccuracy float64

The accuracy of a speed. Full Topic

type PLocationManagerDelegate

type PLocationManagerDelegate interface {
	// optional
	LocationManagerDidExitRegion(manager LocationManager, region Region)
	HasLocationManagerDidExitRegion() bool

	// optional
	LocationManagerDidFailWithError(manager LocationManager, error foundation.Error)
	HasLocationManagerDidFailWithError() bool

	// optional
	LocationManagerDidUpdateLocations(manager LocationManager, locations []Location)
	HasLocationManagerDidUpdateLocations() bool

	// optional
	LocationManagerShouldDisplayHeadingCalibration(manager LocationManager) bool
	HasLocationManagerShouldDisplayHeadingCalibration() bool

	// optional
	LocationManagerDidChangeAuthorization(manager LocationManager)
	HasLocationManagerDidChangeAuthorization() bool

	// optional
	LocationManagerDidDetermineStateForRegion(manager LocationManager, state RegionState, region Region)
	HasLocationManagerDidDetermineStateForRegion() bool

	// optional
	LocationManagerDidStartMonitoringForRegion(manager LocationManager, region Region)
	HasLocationManagerDidStartMonitoringForRegion() bool

	// optional
	LocationManagerDidFinishDeferredUpdatesWithError(manager LocationManager, error foundation.Error)
	HasLocationManagerDidFinishDeferredUpdatesWithError() bool

	// optional
	LocationManagerDidPauseLocationUpdates(manager LocationManager)
	HasLocationManagerDidPauseLocationUpdates() bool

	// optional
	LocationManagerDidVisit(manager LocationManager, visit Visit)
	HasLocationManagerDidVisit() bool

	// optional
	LocationManagerDidUpdateHeading(manager LocationManager, newHeading Heading)
	HasLocationManagerDidUpdateHeading() bool

	// optional
	LocationManagerMonitoringDidFailForRegionWithError(manager LocationManager, region Region, error foundation.Error)
	HasLocationManagerMonitoringDidFailForRegionWithError() bool

	// optional
	LocationManagerDidResumeLocationUpdates(manager LocationManager)
	HasLocationManagerDidResumeLocationUpdates() bool

	// optional
	LocationManagerDidEnterRegion(manager LocationManager, region Region)
	HasLocationManagerDidEnterRegion() bool
}

The methods that you use to receive events from an associated location-manager object. Full Topic

type Placemark

type Placemark struct {
	objc.Object
}

A user-friendly description of a geographic coordinate, often containing the name of the place, its address, and other relevant information. Full Topic

func NewPlacemark

func NewPlacemark() Placemark

func NewPlacemarkWithPlacemark

func NewPlacemarkWithPlacemark(placemark IPlacemark) Placemark

Initializes and returns a placemark object from another placemark object. Full Topic

func PlacemarkFrom

func PlacemarkFrom(ptr unsafe.Pointer) Placemark

func Placemark_PlacemarkWithLocationNamePostalAddress

func Placemark_PlacemarkWithLocationNamePostalAddress(location ILocation, name string, postalAddress contacts.IPostalAddress) Placemark

Creates and initializes a placemark object using the specified location and address information. Full Topic

func (Placemark) AdministrativeArea

func (p_ Placemark) AdministrativeArea() string

The state or province associated with the placemark. Full Topic

func (Placemark) AreasOfInterest

func (p_ Placemark) AreasOfInterest() []string

The relevant areas of interest associated with the placemark. Full Topic

func (Placemark) Country

func (p_ Placemark) Country() string

The name of the country or region associated with the placemark. Full Topic

func (Placemark) ISOcountryCode

func (p_ Placemark) ISOcountryCode() string

The abbreviated country or region name. Full Topic

func (Placemark) Init

func (p_ Placemark) Init() Placemark

func (Placemark) InitWithPlacemark

func (p_ Placemark) InitWithPlacemark(placemark IPlacemark) Placemark

func (Placemark) InlandWater

func (p_ Placemark) InlandWater() string

The name of the inland water body associated with the placemark. Full Topic

func (Placemark) Locality

func (p_ Placemark) Locality() string

The city associated with the placemark. Full Topic

func (Placemark) Location

func (p_ Placemark) Location() Location

The location object containing latitude and longitude information. Full Topic

func (Placemark) Name

func (p_ Placemark) Name() string

The name of the placemark. Full Topic

func (Placemark) Ocean

func (p_ Placemark) Ocean() string

The name of the ocean associated with the placemark. Full Topic

func (Placemark) PostalAddress

func (p_ Placemark) PostalAddress() contacts.PostalAddress

The postal address associated with the location, formatted for use with the Contacts framework. Full Topic

func (Placemark) PostalCode

func (p_ Placemark) PostalCode() string

The postal code associated with the placemark. Full Topic

func (Placemark) Region

func (p_ Placemark) Region() Region

The geographic region associated with the placemark. Full Topic

func (Placemark) SubAdministrativeArea

func (p_ Placemark) SubAdministrativeArea() string

Additional administrative area information for the placemark. Full Topic

func (Placemark) SubLocality

func (p_ Placemark) SubLocality() string

Additional city-level information for the placemark. Full Topic

func (Placemark) SubThoroughfare

func (p_ Placemark) SubThoroughfare() string

Additional street-level information for the placemark. Full Topic

func (Placemark) Thoroughfare

func (p_ Placemark) Thoroughfare() string

The street address associated with the placemark. Full Topic

func (Placemark) TimeZone

func (p_ Placemark) TimeZone() foundation.TimeZone

The time zone associated with the placemark. Full Topic

type Proximity

type Proximity int

Constants that reflect the relative distance to a beacon. Full Topic

const (
	ProximityFar       Proximity = 3
	ProximityImmediate Proximity = 1
	ProximityNear      Proximity = 2
	ProximityUnknown   Proximity = 0
)

type Region

type Region struct {
	objc.Object
}

A base class representing an area that can be monitored. Full Topic

func NewRegion

func NewRegion() Region

func RegionFrom

func RegionFrom(ptr unsafe.Pointer) Region

func (Region) Identifier

func (r_ Region) Identifier() string

The identifier for the region object. Full Topic

func (Region) Init

func (r_ Region) Init() Region

func (Region) NotifyOnEntry

func (r_ Region) NotifyOnEntry() bool

A Boolean indicating that notifications are generated upon entry into the region. Full Topic

func (Region) NotifyOnExit

func (r_ Region) NotifyOnExit() bool

A Boolean indicating that notifications are generated upon exit from the region. Full Topic

func (Region) SetNotifyOnEntry

func (r_ Region) SetNotifyOnEntry(value bool)

A Boolean indicating that notifications are generated upon entry into the region. Full Topic

func (Region) SetNotifyOnExit

func (r_ Region) SetNotifyOnExit(value bool)

A Boolean indicating that notifications are generated upon exit from the region. Full Topic

type RegionState

type RegionState int

Constants that reflect the relationship of the current location to the region boundaries. Full Topic

const (
	RegionStateInside  RegionState = 1
	RegionStateOutside RegionState = 2
	RegionStateUnknown RegionState = 0
)

type Visit

type Visit struct {
	objc.Object
}

Information about the user's location during a specific period of time. Full Topic

func NewVisit

func NewVisit() Visit

func VisitFrom

func VisitFrom(ptr unsafe.Pointer) Visit

func (Visit) ArrivalDate

func (v_ Visit) ArrivalDate() foundation.Date

The approximate time at which the user arrived at the specified location. Full Topic

func (Visit) Coordinate

func (v_ Visit) Coordinate() LocationCoordinate2D

The geographical coordinate information. Full Topic

func (Visit) DepartureDate

func (v_ Visit) DepartureDate() foundation.Date

The approximate time at which the user left the specified location. Full Topic

func (Visit) HorizontalAccuracy

func (v_ Visit) HorizontalAccuracy() LocationAccuracy

The horizontal accuracy (in meters) of the specified coordinate. Full Topic

func (Visit) Init

func (v_ Visit) Init() Visit

Jump to

Keyboard shortcuts

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