mapkit

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: 19 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package mapkit provides a fluent Go API over the macOS MapKit 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.

Errors

Failing calls return errors carrying the Objective-C error domain and code. Match them against this package's Err… sentinel values with errors.Is, or inspect domain, code, and Apple's prose via errors.As with *errkit.Error.

Main-thread requirements

Methods, setters, and constructors of classes Apple isolates to the main thread run there automatically; callers never need to arrange main-thread dispatch for the generated API.

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

View Source
var ErrDecodingFailed = errkit.New("MKErrorDomain", 6)

ErrDecodingFailed matches the MapKit error MKErrorDecodingFailed.

View Source
var ErrDirectionsNotFound = errkit.New("MKErrorDomain", 5)

ErrDirectionsNotFound matches the MapKit error MKErrorDirectionsNotFound.

View Source
var ErrLoadingThrottled = errkit.New("MKErrorDomain", 3)

ErrLoadingThrottled matches the MapKit error MKErrorLoadingThrottled.

View Source
var ErrPlacemarkNotFound = errkit.New("MKErrorDomain", 4)

ErrPlacemarkNotFound matches the MapKit error MKErrorPlacemarkNotFound.

View Source
var ErrServerFailure = errkit.New("MKErrorDomain", 2)

ErrServerFailure matches the MapKit error MKErrorServerFailure.

View Source
var ErrUnknown = errkit.New("MKErrorDomain", 1)

ErrUnknown matches the MapKit error MKErrorUnknown.

Functions

func GreenPinColor added in v0.17.0

func GreenPinColor() obj.Object

GreenPinColor returns the standard color for green pins.

func IsDirectionsRequestURL added in v0.17.0

func IsDirectionsRequestURL(url string) bool

IsDirectionsRequestURL wraps the corresponding Objective-C method.

func MKAnnotationCalloutInfoDidChangeNotification

func MKAnnotationCalloutInfoDidChangeNotification() obj.Object

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

func MKCoordinateForMapPoint

func MKCoordinateForMapPoint(mapPoint MKMapPoint) unsafe.Pointer

MKCoordinateForMapPoint calls the MapKit framework function MKCoordinateForMapPoint.

func MKCoordinateRegionForMapRect

func MKCoordinateRegionForMapRect(rect MKMapRect) unsafe.Pointer

MKCoordinateRegionForMapRect calls the MapKit framework function MKCoordinateRegionForMapRect.

func MKCoordinateRegionMake

func MKCoordinateRegionMake(centerCoordinate unsafe.Pointer, span unsafe.Pointer) unsafe.Pointer

MKCoordinateRegionMake calls the MapKit framework function MKCoordinateRegionMake.

func MKCoordinateRegionMakeWithDistance

func MKCoordinateRegionMakeWithDistance(centerCoordinate unsafe.Pointer, latitudinalMeters unsafe.Pointer, longitudinalMeters unsafe.Pointer) unsafe.Pointer

MKCoordinateRegionMakeWithDistance calls the MapKit framework function MKCoordinateRegionMakeWithDistance.

func MKCoordinateSpanMake

func MKCoordinateSpanMake(latitudeDelta unsafe.Pointer, longitudeDelta unsafe.Pointer) unsafe.Pointer

MKCoordinateSpanMake calls the MapKit framework function MKCoordinateSpanMake.

func MKErrorDomain

func MKErrorDomain() obj.Object

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

func MKLaunchOptionsCameraKey

func MKLaunchOptionsCameraKey() obj.Object

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

func MKLaunchOptionsDirectionsModeCycling

func MKLaunchOptionsDirectionsModeCycling() obj.Object

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

func MKLaunchOptionsDirectionsModeDefault

func MKLaunchOptionsDirectionsModeDefault() obj.Object

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

func MKLaunchOptionsDirectionsModeDriving

func MKLaunchOptionsDirectionsModeDriving() obj.Object

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

func MKLaunchOptionsDirectionsModeKey

func MKLaunchOptionsDirectionsModeKey() obj.Object

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

func MKLaunchOptionsDirectionsModeTransit

func MKLaunchOptionsDirectionsModeTransit() obj.Object

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

func MKLaunchOptionsDirectionsModeWalking

func MKLaunchOptionsDirectionsModeWalking() obj.Object

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

func MKLaunchOptionsMapCenterKey

func MKLaunchOptionsMapCenterKey() obj.Object

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

func MKLaunchOptionsMapSpanKey

func MKLaunchOptionsMapSpanKey() obj.Object

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

func MKLaunchOptionsMapTypeKey

func MKLaunchOptionsMapTypeKey() obj.Object

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

func MKLaunchOptionsShowsTrafficKey

func MKLaunchOptionsShowsTrafficKey() obj.Object

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

func MKMapCameraZoomDefault

func MKMapCameraZoomDefault() uintptr

MKMapCameraZoomDefault returns the address of the symbol MKMapCameraZoomDefault.

func MKMapItemTypeIdentifier

func MKMapItemTypeIdentifier() obj.Object

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

func MKMapPointEqualToPoint

func MKMapPointEqualToPoint(point1 MKMapPoint, point2 MKMapPoint) bool

MKMapPointEqualToPoint calls the MapKit framework function MKMapPointEqualToPoint.

func MKMapPointsPerMeterAtLatitude

func MKMapPointsPerMeterAtLatitude(latitude unsafe.Pointer) float64

MKMapPointsPerMeterAtLatitude calls the MapKit framework function MKMapPointsPerMeterAtLatitude.

func MKMapRectContainsPoint

func MKMapRectContainsPoint(rect MKMapRect, point MKMapPoint) bool

MKMapRectContainsPoint calls the MapKit framework function MKMapRectContainsPoint.

func MKMapRectContainsRect

func MKMapRectContainsRect(rect1 MKMapRect, rect2 MKMapRect) bool

MKMapRectContainsRect calls the MapKit framework function MKMapRectContainsRect.

func MKMapRectDivide

func MKMapRectDivide(rect MKMapRect, amount float64, edge unsafe.Pointer) (slice MKMapRect, remainder MKMapRect)

MKMapRectDivide calls the MapKit framework function MKMapRectDivide.

func MKMapRectEqualToRect

func MKMapRectEqualToRect(rect1 MKMapRect, rect2 MKMapRect) bool

MKMapRectEqualToRect calls the MapKit framework function MKMapRectEqualToRect.

func MKMapRectGetHeight

func MKMapRectGetHeight(rect MKMapRect) float64

MKMapRectGetHeight calls the MapKit framework function MKMapRectGetHeight.

func MKMapRectGetMaxX

func MKMapRectGetMaxX(rect MKMapRect) float64

MKMapRectGetMaxX calls the MapKit framework function MKMapRectGetMaxX.

func MKMapRectGetMaxY

func MKMapRectGetMaxY(rect MKMapRect) float64

MKMapRectGetMaxY calls the MapKit framework function MKMapRectGetMaxY.

func MKMapRectGetMidX

func MKMapRectGetMidX(rect MKMapRect) float64

MKMapRectGetMidX calls the MapKit framework function MKMapRectGetMidX.

func MKMapRectGetMidY

func MKMapRectGetMidY(rect MKMapRect) float64

MKMapRectGetMidY calls the MapKit framework function MKMapRectGetMidY.

func MKMapRectGetMinX

func MKMapRectGetMinX(rect MKMapRect) float64

MKMapRectGetMinX calls the MapKit framework function MKMapRectGetMinX.

func MKMapRectGetMinY

func MKMapRectGetMinY(rect MKMapRect) float64

MKMapRectGetMinY calls the MapKit framework function MKMapRectGetMinY.

func MKMapRectGetWidth

func MKMapRectGetWidth(rect MKMapRect) float64

MKMapRectGetWidth calls the MapKit framework function MKMapRectGetWidth.

func MKMapRectIntersectsRect

func MKMapRectIntersectsRect(rect1 MKMapRect, rect2 MKMapRect) bool

MKMapRectIntersectsRect calls the MapKit framework function MKMapRectIntersectsRect.

func MKMapRectIsEmpty

func MKMapRectIsEmpty(rect MKMapRect) bool

MKMapRectIsEmpty calls the MapKit framework function MKMapRectIsEmpty.

func MKMapRectIsNull

func MKMapRectIsNull(rect MKMapRect) bool

MKMapRectIsNull calls the MapKit framework function MKMapRectIsNull.

func MKMapRectNull

func MKMapRectNull() uintptr

MKMapRectNull returns the address of the symbol MKMapRectNull.

func MKMapRectSpans180thMeridian

func MKMapRectSpans180thMeridian(rect MKMapRect) bool

MKMapRectSpans180thMeridian calls the MapKit framework function MKMapRectSpans180thMeridian.

func MKMapRectWorld

func MKMapRectWorld() uintptr

MKMapRectWorld returns the address of the symbol MKMapRectWorld.

func MKMapSizeEqualToSize

func MKMapSizeEqualToSize(size1 MKMapSize, size2 MKMapSize) bool

MKMapSizeEqualToSize calls the MapKit framework function MKMapSizeEqualToSize.

func MKMapSizeWorld

func MKMapSizeWorld() uintptr

MKMapSizeWorld returns the address of the symbol MKMapSizeWorld.

func MKMapViewDefaultAnnotationViewReuseIdentifier

func MKMapViewDefaultAnnotationViewReuseIdentifier() obj.Object

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

func MKMapViewDefaultClusterAnnotationViewReuseIdentifier

func MKMapViewDefaultClusterAnnotationViewReuseIdentifier() obj.Object

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

func MKMetersBetweenMapPoints

func MKMetersBetweenMapPoints(a MKMapPoint, b MKMapPoint) unsafe.Pointer

MKMetersBetweenMapPoints calls the MapKit framework function MKMetersBetweenMapPoints.

func MKMetersPerMapPointAtLatitude

func MKMetersPerMapPointAtLatitude(latitude unsafe.Pointer) unsafe.Pointer

MKMetersPerMapPointAtLatitude calls the MapKit framework function MKMetersPerMapPointAtLatitude.

func MKPointOfInterestCategoryATM

func MKPointOfInterestCategoryATM() obj.Object

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

func MKPointOfInterestCategoryAirport

func MKPointOfInterestCategoryAirport() obj.Object

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

func MKPointOfInterestCategoryAmusementPark

func MKPointOfInterestCategoryAmusementPark() obj.Object

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

func MKPointOfInterestCategoryAnimalService

func MKPointOfInterestCategoryAnimalService() obj.Object

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

func MKPointOfInterestCategoryAquarium

func MKPointOfInterestCategoryAquarium() obj.Object

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

func MKPointOfInterestCategoryAutomotiveRepair

func MKPointOfInterestCategoryAutomotiveRepair() obj.Object

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

func MKPointOfInterestCategoryBakery

func MKPointOfInterestCategoryBakery() obj.Object

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

func MKPointOfInterestCategoryBank

func MKPointOfInterestCategoryBank() obj.Object

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

func MKPointOfInterestCategoryBaseball

func MKPointOfInterestCategoryBaseball() obj.Object

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

func MKPointOfInterestCategoryBasketball

func MKPointOfInterestCategoryBasketball() obj.Object

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

func MKPointOfInterestCategoryBeach

func MKPointOfInterestCategoryBeach() obj.Object

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

func MKPointOfInterestCategoryBeauty

func MKPointOfInterestCategoryBeauty() obj.Object

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

func MKPointOfInterestCategoryBowling

func MKPointOfInterestCategoryBowling() obj.Object

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

func MKPointOfInterestCategoryBrewery

func MKPointOfInterestCategoryBrewery() obj.Object

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

func MKPointOfInterestCategoryCafe

func MKPointOfInterestCategoryCafe() obj.Object

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

func MKPointOfInterestCategoryCampground

func MKPointOfInterestCategoryCampground() obj.Object

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

func MKPointOfInterestCategoryCarRental

func MKPointOfInterestCategoryCarRental() obj.Object

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

func MKPointOfInterestCategoryCastle

func MKPointOfInterestCategoryCastle() obj.Object

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

func MKPointOfInterestCategoryConventionCenter

func MKPointOfInterestCategoryConventionCenter() obj.Object

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

func MKPointOfInterestCategoryDistillery

func MKPointOfInterestCategoryDistillery() obj.Object

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

func MKPointOfInterestCategoryEVCharger

func MKPointOfInterestCategoryEVCharger() obj.Object

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

func MKPointOfInterestCategoryFairground

func MKPointOfInterestCategoryFairground() obj.Object

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

func MKPointOfInterestCategoryFireStation

func MKPointOfInterestCategoryFireStation() obj.Object

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

func MKPointOfInterestCategoryFishing

func MKPointOfInterestCategoryFishing() obj.Object

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

func MKPointOfInterestCategoryFitnessCenter

func MKPointOfInterestCategoryFitnessCenter() obj.Object

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

func MKPointOfInterestCategoryFoodMarket

func MKPointOfInterestCategoryFoodMarket() obj.Object

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

func MKPointOfInterestCategoryFortress

func MKPointOfInterestCategoryFortress() obj.Object

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

func MKPointOfInterestCategoryGasStation

func MKPointOfInterestCategoryGasStation() obj.Object

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

func MKPointOfInterestCategoryGoKart

func MKPointOfInterestCategoryGoKart() obj.Object

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

func MKPointOfInterestCategoryGolf

func MKPointOfInterestCategoryGolf() obj.Object

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

func MKPointOfInterestCategoryHiking

func MKPointOfInterestCategoryHiking() obj.Object

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

func MKPointOfInterestCategoryHospital

func MKPointOfInterestCategoryHospital() obj.Object

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

func MKPointOfInterestCategoryHotel

func MKPointOfInterestCategoryHotel() obj.Object

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

func MKPointOfInterestCategoryKayaking

func MKPointOfInterestCategoryKayaking() obj.Object

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

func MKPointOfInterestCategoryLandmark

func MKPointOfInterestCategoryLandmark() obj.Object

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

func MKPointOfInterestCategoryLaundry

func MKPointOfInterestCategoryLaundry() obj.Object

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

func MKPointOfInterestCategoryLibrary

func MKPointOfInterestCategoryLibrary() obj.Object

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

func MKPointOfInterestCategoryMailbox

func MKPointOfInterestCategoryMailbox() obj.Object

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

func MKPointOfInterestCategoryMarina

func MKPointOfInterestCategoryMarina() obj.Object

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

func MKPointOfInterestCategoryMiniGolf

func MKPointOfInterestCategoryMiniGolf() obj.Object

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

func MKPointOfInterestCategoryMovieTheater

func MKPointOfInterestCategoryMovieTheater() obj.Object

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

func MKPointOfInterestCategoryMuseum

func MKPointOfInterestCategoryMuseum() obj.Object

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

func MKPointOfInterestCategoryMusicVenue

func MKPointOfInterestCategoryMusicVenue() obj.Object

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

func MKPointOfInterestCategoryNationalMonument

func MKPointOfInterestCategoryNationalMonument() obj.Object

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

func MKPointOfInterestCategoryNationalPark

func MKPointOfInterestCategoryNationalPark() obj.Object

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

func MKPointOfInterestCategoryNightlife

func MKPointOfInterestCategoryNightlife() obj.Object

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

func MKPointOfInterestCategoryPark

func MKPointOfInterestCategoryPark() obj.Object

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

func MKPointOfInterestCategoryParking

func MKPointOfInterestCategoryParking() obj.Object

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

func MKPointOfInterestCategoryPharmacy

func MKPointOfInterestCategoryPharmacy() obj.Object

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

func MKPointOfInterestCategoryPlanetarium

func MKPointOfInterestCategoryPlanetarium() obj.Object

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

func MKPointOfInterestCategoryPolice

func MKPointOfInterestCategoryPolice() obj.Object

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

func MKPointOfInterestCategoryPostOffice

func MKPointOfInterestCategoryPostOffice() obj.Object

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

func MKPointOfInterestCategoryPublicTransport

func MKPointOfInterestCategoryPublicTransport() obj.Object

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

func MKPointOfInterestCategoryRVPark

func MKPointOfInterestCategoryRVPark() obj.Object

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

func MKPointOfInterestCategoryRestaurant

func MKPointOfInterestCategoryRestaurant() obj.Object

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

func MKPointOfInterestCategoryRestroom

func MKPointOfInterestCategoryRestroom() obj.Object

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

func MKPointOfInterestCategoryRockClimbing

func MKPointOfInterestCategoryRockClimbing() obj.Object

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

func MKPointOfInterestCategorySchool

func MKPointOfInterestCategorySchool() obj.Object

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

func MKPointOfInterestCategorySkatePark

func MKPointOfInterestCategorySkatePark() obj.Object

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

func MKPointOfInterestCategorySkating

func MKPointOfInterestCategorySkating() obj.Object

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

func MKPointOfInterestCategorySkiing

func MKPointOfInterestCategorySkiing() obj.Object

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

func MKPointOfInterestCategorySoccer

func MKPointOfInterestCategorySoccer() obj.Object

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

func MKPointOfInterestCategorySpa

func MKPointOfInterestCategorySpa() obj.Object

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

func MKPointOfInterestCategoryStadium

func MKPointOfInterestCategoryStadium() obj.Object

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

func MKPointOfInterestCategoryStore

func MKPointOfInterestCategoryStore() obj.Object

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

func MKPointOfInterestCategorySurfing

func MKPointOfInterestCategorySurfing() obj.Object

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

func MKPointOfInterestCategorySwimming

func MKPointOfInterestCategorySwimming() obj.Object

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

func MKPointOfInterestCategoryTennis

func MKPointOfInterestCategoryTennis() obj.Object

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

func MKPointOfInterestCategoryTheater

func MKPointOfInterestCategoryTheater() obj.Object

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

func MKPointOfInterestCategoryUniversity

func MKPointOfInterestCategoryUniversity() obj.Object

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

func MKPointOfInterestCategoryVolleyball

func MKPointOfInterestCategoryVolleyball() obj.Object

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

func MKPointOfInterestCategoryWinery

func MKPointOfInterestCategoryWinery() obj.Object

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

func MKPointOfInterestCategoryZoo

func MKPointOfInterestCategoryZoo() obj.Object

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

func MKPointsOfInterestRequestMaxRadius

func MKPointsOfInterestRequestMaxRadius() uintptr

MKPointsOfInterestRequestMaxRadius returns the address of the symbol MKPointsOfInterestRequestMaxRadius.

func MKRoadWidthAtZoomScale

func MKRoadWidthAtZoomScale(zoomScale float64) float64

MKRoadWidthAtZoomScale calls the MapKit framework function MKRoadWidthAtZoomScale.

func MKStringFromMapPoint

func MKStringFromMapPoint(point MKMapPoint) string

MKStringFromMapPoint calls the MapKit framework function MKStringFromMapPoint.

func MKStringFromMapRect

func MKStringFromMapRect(rect MKMapRect) string

MKStringFromMapRect calls the MapKit framework function MKStringFromMapRect.

func MKStringFromMapSize

func MKStringFromMapSize(size MKMapSize) string

MKStringFromMapSize calls the MapKit framework function MKStringFromMapSize.

func OpenMapsWithItemsLaunchOptions added in v0.17.0

func OpenMapsWithItemsLaunchOptions(mapItems []*MapItem, launchOptions map[string]obj.Object) bool

OpenMapsWithItemsLaunchOptions opens the Maps app and displays the specified map items.

func OpenMapsWithItemsLaunchOptionsCompletionHandler added in v0.17.0

func OpenMapsWithItemsLaunchOptionsCompletionHandler(mapItems []*MapItem, launchOptions map[string]obj.Object, completion func(bool))

OpenMapsWithItemsLaunchOptionsCompletionHandler opens the Maps app using the specified map items and options.

func PurplePinColor added in v0.17.0

func PurplePinColor() obj.Object

PurplePinColor returns the standard color for purple pins.

func RedPinColor added in v0.17.0

func RedPinColor() obj.Object

RedPinColor returns the standard color for red pins.

Types

type Address added in v0.17.0

type Address struct {
	objref.Handle
}

Address is an idiomatic wrapper over the Objective-C class MKAddress.

A class that contains a full address, and, optionally, a short address.

func AddressFromID added in v0.17.0

func AddressFromID(id objc.ID) *Address

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

func NewAddressWithFullAddressShortAddress added in v0.17.0

func NewAddressWithFullAddressShortAddress(fullAddress string, shortAddress string) *Address

NewAddressWithFullAddressShortAddress initializes a new address with a location’s full address using a string and a short address that provides an abbreviated form of the address such as a street address.

func (*Address) Description added in v0.17.0

func (a *Address) Description() string

Description returns the object's -description text.

func (*Address) FullAddress added in v0.17.0

func (a *Address) FullAddress() string

FullAddress returns the full address.

func (*Address) IsEqual added in v0.17.0

func (a *Address) IsEqual(other obj.Object) bool

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

func (*Address) IsKind added in v0.17.0

func (a *Address) IsKind(className string) bool

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

func (*Address) ShortAddress added in v0.17.0

func (a *Address) ShortAddress() string

ShortAddress returns the short address.

func (*Address) String added in v0.17.0

func (a *Address) String() string

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

type AddressFilter added in v0.17.0

type AddressFilter struct {
	objref.Handle
}

AddressFilter is an idiomatic wrapper over the Objective-C class MKAddressFilter.

An object that filters which address options to include or exclude in search results.

func AddressFilterFromID added in v0.17.0

func AddressFilterFromID(id objc.ID) *AddressFilter

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

func FilterExcludingAll added in v0.17.0

func FilterExcludingAll() *AddressFilter

FilterExcludingAll returns the filter excluding all.

func FilterIncludingAll added in v0.17.0

func FilterIncludingAll() *AddressFilter

FilterIncludingAll returns the filter including all.

func NewAddressFilterExcludingOptions added in v0.17.0

func NewAddressFilterExcludingOptions(options AddressFilterOption) *AddressFilter

NewAddressFilterExcludingOptions creates an address filter with options for excluding results in a search.

func NewAddressFilterIncludingOptions added in v0.17.0

func NewAddressFilterIncludingOptions(options AddressFilterOption) *AddressFilter

NewAddressFilterIncludingOptions creates an address filter with options for including results in a search.

func (*AddressFilter) Description added in v0.17.0

func (af *AddressFilter) Description() string

Description returns the object's -description text.

func (*AddressFilter) ExcludesOptions added in v0.17.0

func (af *AddressFilter) ExcludesOptions(options AddressFilterOption) bool

ExcludesOptions indicates whether options are excluded from filtering.

func (*AddressFilter) IncludesOptions added in v0.17.0

func (af *AddressFilter) IncludesOptions(options AddressFilterOption) bool

IncludesOptions indicates whether options are included for filtering.

func (*AddressFilter) IsEqual added in v0.17.0

func (af *AddressFilter) IsEqual(other obj.Object) bool

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

func (*AddressFilter) IsKind added in v0.17.0

func (af *AddressFilter) IsKind(className string) bool

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

func (*AddressFilter) String added in v0.17.0

func (af *AddressFilter) String() string

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

type AddressFilterOption added in v0.17.0

type AddressFilterOption uint64

A structure that contains options for filtering results in a search. Bitmask — values may be combined with |.

const (
	AddressFilterOptionCountry               AddressFilterOption = 1
	AddressFilterOptionAdministrativeArea    AddressFilterOption = 2
	AddressFilterOptionSubAdministrativeArea AddressFilterOption = 4
	AddressFilterOptionLocality              AddressFilterOption = 8
	AddressFilterOptionSubLocality           AddressFilterOption = 16
	AddressFilterOptionPostalCode            AddressFilterOption = 32
)

func (AddressFilterOption) String added in v0.17.0

func (e AddressFilterOption) String() string

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

type AddressRepresentations added in v0.17.0

type AddressRepresentations struct {
	objref.Handle
}

AddressRepresentations is an idiomatic wrapper over the Objective-C class MKAddressRepresentations.

A class that provides formatted address strings.

func AddressRepresentationsFromID added in v0.17.0

func AddressRepresentationsFromID(id objc.ID) *AddressRepresentations

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

func NewAddressRepresentations added in v0.17.0

func NewAddressRepresentations() *AddressRepresentations

NewAddressRepresentations creates a new AddressRepresentations.

func (*AddressRepresentations) CityName added in v0.17.0

func (ar *AddressRepresentations) CityName() string

CityName returns the city name.

func (*AddressRepresentations) CityWithContext added in v0.17.0

func (ar *AddressRepresentations) CityWithContext() string

CityWithContext returns the city with context.

func (*AddressRepresentations) CityWithContextUsingStyle added in v0.17.0

func (ar *AddressRepresentations) CityWithContextUsingStyle(style AddressRepresentationsContextStyle) string

CityWithContextUsingStyle the city name and, optionally and if applicable, state and region to provide additional disambiguating context.

func (*AddressRepresentations) Description added in v0.17.0

func (ar *AddressRepresentations) Description() string

Description returns the object's -description text.

func (*AddressRepresentations) FullAddressIncludingRegionSingleLine added in v0.17.0

func (ar *AddressRepresentations) FullAddressIncludingRegionSingleLine(includingRegion bool, singleLine bool) string

FullAddressIncludingRegionSingleLine returns the the location’s full address, optionally including the country or on a single link without line breaks.

func (*AddressRepresentations) IsEqual added in v0.17.0

func (ar *AddressRepresentations) IsEqual(other obj.Object) bool

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

func (*AddressRepresentations) IsKind added in v0.17.0

func (ar *AddressRepresentations) IsKind(className string) bool

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

func (*AddressRepresentations) RegionCode added in v0.17.0

func (ar *AddressRepresentations) RegionCode() string

RegionCode returns the region code.

func (*AddressRepresentations) RegionName added in v0.17.0

func (ar *AddressRepresentations) RegionName() string

RegionName returns the region name.

func (*AddressRepresentations) String added in v0.17.0

func (ar *AddressRepresentations) String() string

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

type AddressRepresentationsContextStyle added in v0.17.0

type AddressRepresentationsContextStyle int64
const (
	AddressRepresentationsContextStyleAutomatic AddressRepresentationsContextStyle = 0
	AddressRepresentationsContextStyleShort     AddressRepresentationsContextStyle = 1
	AddressRepresentationsContextStyleFull      AddressRepresentationsContextStyle = 2
)

func (AddressRepresentationsContextStyle) String added in v0.17.0

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

type Annotation added in v0.17.0

type Annotation interface {
}

Annotation is the Go form of the Objective-C protocol MKAnnotation.

type AnnotationView added in v0.17.0

type AnnotationView struct {
	objref.Handle
}

AnnotationView is an idiomatic wrapper over the Objective-C class MKAnnotationView.

AnnotationView is an abstract base — you do not construct it directly. Construct one of MarkerAnnotationView, PinAnnotationView, UserLocationView and pass it where a AnnotationView is accepted.

The visual representation of one of your annotation objects.

func AnnotationViewFromID added in v0.17.0

func AnnotationViewFromID(id objc.ID) *AnnotationView

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

func NewAnnotationViewWithCoder added in v0.17.0

func NewAnnotationViewWithCoder(aDecoder obj.Object) *AnnotationView

NewAnnotationViewWithCoder creates an annotation view using data from the specified unarchiver.

func (*AnnotationView) AccessoryOffset added in v0.17.0

func (av *AnnotationView) AccessoryOffset() corefoundation.CGPoint

AccessoryOffset returns the accessory offset.

func (*AnnotationView) CalloutOffset added in v0.17.0

func (av *AnnotationView) CalloutOffset() corefoundation.CGPoint

CalloutOffset returns the callout offset.

func (*AnnotationView) CanShowCallout added in v0.17.0

func (av *AnnotationView) CanShowCallout() bool

CanShowCallout wraps the corresponding Objective-C method.

func (*AnnotationView) CenterOffset added in v0.17.0

func (av *AnnotationView) CenterOffset() corefoundation.CGPoint

CenterOffset returns the center offset.

func (*AnnotationView) ClusterAnnotationView added in v0.17.0

func (av *AnnotationView) ClusterAnnotationView() *AnnotationView

ClusterAnnotationView returns the cluster annotation view.

func (*AnnotationView) ClusteringIdentifier added in v0.17.0

func (av *AnnotationView) ClusteringIdentifier() string

ClusteringIdentifier returns the clustering identifier.

func (*AnnotationView) CollisionMode added in v0.17.0

func (av *AnnotationView) CollisionMode() AnnotationViewCollisionMode

CollisionMode returns the collision mode.

func (*AnnotationView) Description added in v0.17.0

func (av *AnnotationView) Description() string

Description returns the object's -description text.

func (*AnnotationView) DetailCalloutAccessoryView added in v0.17.0

func (av *AnnotationView) DetailCalloutAccessoryView() obj.Object

DetailCalloutAccessoryView returns the detail callout accessory view.

func (*AnnotationView) DisplayPriority added in v0.17.0

func (av *AnnotationView) DisplayPriority() float32

DisplayPriority returns the display priority.

func (*AnnotationView) DragState added in v0.17.0

func (av *AnnotationView) DragState() AnnotationViewDragState

DragState returns the drag state.

func (*AnnotationView) Image added in v0.17.0

func (av *AnnotationView) Image() obj.Object

Image returns the image.

func (*AnnotationView) IsDraggable added in v0.17.0

func (av *AnnotationView) IsDraggable() bool

IsDraggable reports whether the object is draggable.

func (*AnnotationView) IsEnabled added in v0.17.0

func (av *AnnotationView) IsEnabled() bool

IsEnabled reports whether the object is enabled.

func (*AnnotationView) IsEqual added in v0.17.0

func (av *AnnotationView) IsEqual(other obj.Object) bool

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

func (*AnnotationView) IsHighlighted added in v0.17.0

func (av *AnnotationView) IsHighlighted() bool

IsHighlighted reports whether the object is highlighted.

func (*AnnotationView) IsKind added in v0.17.0

func (av *AnnotationView) IsKind(className string) bool

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

func (*AnnotationView) IsSelected added in v0.17.0

func (av *AnnotationView) IsSelected() bool

IsSelected reports whether the object is selected.

func (*AnnotationView) LeftCalloutAccessoryView added in v0.17.0

func (av *AnnotationView) LeftCalloutAccessoryView() obj.Object

LeftCalloutAccessoryView returns the left callout accessory view.

func (*AnnotationView) LeftCalloutOffset added in v0.17.0

func (av *AnnotationView) LeftCalloutOffset() corefoundation.CGPoint

LeftCalloutOffset returns the left callout offset.

func (*AnnotationView) PrepareForDisplay added in v0.17.0

func (av *AnnotationView) PrepareForDisplay()

PrepareForDisplay notifies the annotation view that the map view is about to display it.

func (*AnnotationView) ReuseIdentifier added in v0.17.0

func (av *AnnotationView) ReuseIdentifier() string

ReuseIdentifier returns the reuse identifier.

func (*AnnotationView) RightCalloutAccessoryView added in v0.17.0

func (av *AnnotationView) RightCalloutAccessoryView() obj.Object

RightCalloutAccessoryView returns the right callout accessory view.

func (*AnnotationView) RightCalloutOffset added in v0.17.0

func (av *AnnotationView) RightCalloutOffset() corefoundation.CGPoint

RightCalloutOffset returns the right callout offset.

func (*AnnotationView) SelectedZPriority added in v0.17.0

func (av *AnnotationView) SelectedZPriority() float32

SelectedZPriority returns the selected z priority.

func (*AnnotationView) SetDragStateAnimated added in v0.17.0

func (av *AnnotationView) SetDragStateAnimated(newDragState AnnotationViewDragState, animated bool)

SetDragStateAnimated sets the drag state for the annotation view.

func (*AnnotationView) SetSelectedAnimated added in v0.17.0

func (av *AnnotationView) SetSelectedAnimated(selected bool, animated bool)

SetSelectedAnimated sets the selection state of the annotation view.

func (*AnnotationView) String added in v0.17.0

func (av *AnnotationView) String() string

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

func (*AnnotationView) WithAccessoryOffset added in v0.17.0

func (av *AnnotationView) WithAccessoryOffset(accessoryOffset corefoundation.CGPoint) *AnnotationView

WithAccessoryOffset sets an offset that changes the accessory’s default anchor point.

func (*AnnotationView) WithCalloutOffset added in v0.17.0

func (av *AnnotationView) WithCalloutOffset(calloutOffset corefoundation.CGPoint) *AnnotationView

WithCalloutOffset sets the offset (in points) at which to place the callout.

func (*AnnotationView) WithCanShowCallout added in v0.17.0

func (av *AnnotationView) WithCanShowCallout(canShowCallout bool) *AnnotationView

WithCanShowCallout sets a Boolean value that indicates whether the annotation view is able to display extra information in a callout.

func (*AnnotationView) WithCenterOffset added in v0.17.0

func (av *AnnotationView) WithCenterOffset(centerOffset corefoundation.CGPoint) *AnnotationView

WithCenterOffset sets the offset (in points) at which to display the view.

func (*AnnotationView) WithClusteringIdentifier added in v0.17.0

func (av *AnnotationView) WithClusteringIdentifier(clusteringIdentifier string) *AnnotationView

WithClusteringIdentifier sets an identifier that determines whether the annotation view participates in clustering.

func (*AnnotationView) WithCollisionMode added in v0.17.0

func (av *AnnotationView) WithCollisionMode(collisionMode AnnotationViewCollisionMode) *AnnotationView

WithCollisionMode sets the collision mode to use when interpreting the collision frame rectangle.

func (*AnnotationView) WithDetailCalloutAccessoryView added in v0.17.0

func (av *AnnotationView) WithDetailCalloutAccessoryView(detailCalloutAccessoryView obj.Object) *AnnotationView

WithDetailCalloutAccessoryView sets the detail accessory view to use in the standard callout.

func (*AnnotationView) WithDisplayPriority added in v0.17.0

func (av *AnnotationView) WithDisplayPriority(displayPriority float32) *AnnotationView

WithDisplayPriority sets the display priority of the annotation view.

func (*AnnotationView) WithDragState added in v0.17.0

func (av *AnnotationView) WithDragState(dragState AnnotationViewDragState) *AnnotationView

WithDragState sets the drag state of the annotation view.

func (*AnnotationView) WithDraggable added in v0.17.0

func (av *AnnotationView) WithDraggable(draggable bool) *AnnotationView

WithDraggable sets a Boolean value that indicates whether the annotation view is draggable.

func (*AnnotationView) WithEnabled added in v0.17.0

func (av *AnnotationView) WithEnabled(enabled bool) *AnnotationView

WithEnabled sets a Boolean value that indicates whether the annotation is in an enabled state.

func (*AnnotationView) WithHighlighted added in v0.17.0

func (av *AnnotationView) WithHighlighted(highlighted bool) *AnnotationView

WithHighlighted sets a Boolean value that indicates whether the map view highlights the annotation view.

func (*AnnotationView) WithImage added in v0.17.0

func (av *AnnotationView) WithImage(image obj.Object) *AnnotationView

WithImage sets the image the annotation view displays.

func (*AnnotationView) WithLeftCalloutAccessoryView added in v0.17.0

func (av *AnnotationView) WithLeftCalloutAccessoryView(leftCalloutAccessoryView obj.Object) *AnnotationView

WithLeftCalloutAccessoryView sets the view to display on the left side of the standard callout.

func (*AnnotationView) WithLeftCalloutOffset added in v0.17.0

func (av *AnnotationView) WithLeftCalloutOffset(leftCalloutOffset corefoundation.CGPoint) *AnnotationView

WithLeftCalloutOffset sets the offset in points from the middle-left of the annotation view.

func (*AnnotationView) WithRightCalloutAccessoryView added in v0.17.0

func (av *AnnotationView) WithRightCalloutAccessoryView(rightCalloutAccessoryView obj.Object) *AnnotationView

WithRightCalloutAccessoryView sets the view to display on the right side of the standard callout.

func (*AnnotationView) WithRightCalloutOffset added in v0.17.0

func (av *AnnotationView) WithRightCalloutOffset(rightCalloutOffset corefoundation.CGPoint) *AnnotationView

WithRightCalloutOffset sets the offset in points from the middle-right of the annotation view.

func (*AnnotationView) WithSelected added in v0.17.0

func (av *AnnotationView) WithSelected(selected bool) *AnnotationView

WithSelected sets a Boolean value that indicates whether the annotation view is in a selected state.

func (*AnnotationView) WithSelectedZPriority added in v0.17.0

func (av *AnnotationView) WithSelectedZPriority(selectedZPriority float32) *AnnotationView

WithSelectedZPriority sets the relative importance of the annotation view when in a selected state with respect to its ordering along the z-axis.

func (*AnnotationView) WithZPriority added in v0.17.0

func (av *AnnotationView) WithZPriority(zPriority float32) *AnnotationView

WithZPriority sets the relative importance of the annotation view when in an unselected state with respect to its ordering along the z-axis.

func (*AnnotationView) ZPriority added in v0.17.0

func (av *AnnotationView) ZPriority() float32

ZPriority returns the z priority.

type AnnotationViewCollisionMode added in v0.17.0

type AnnotationViewCollisionMode int64

Constants that indicates how to interpret the collision frame rectangle of an annotation view.

const (
	AnnotationViewCollisionModeRectangle AnnotationViewCollisionMode = 0
	AnnotationViewCollisionModeCircle    AnnotationViewCollisionMode = 1
	AnnotationViewCollisionModeNone      AnnotationViewCollisionMode = 2
)

func (AnnotationViewCollisionMode) String added in v0.17.0

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

type AnnotationViewDragState added in v0.17.0

type AnnotationViewDragState uint64

Constants that indicate the drag state of an annotation view.

const (
	AnnotationViewDragStateNone      AnnotationViewDragState = 0
	AnnotationViewDragStateStarting  AnnotationViewDragState = 1
	AnnotationViewDragStateDragging  AnnotationViewDragState = 2
	AnnotationViewDragStateCanceling AnnotationViewDragState = 3
	AnnotationViewDragStateEnding    AnnotationViewDragState = 4
)

func (AnnotationViewDragState) String added in v0.17.0

func (e AnnotationViewDragState) String() string

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

type AnnotationViewProvider added in v0.17.0

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

AnnotationViewProvider is accepted wherever a MKAnnotationView (or one of its subclasses) is expected.

type CGLCPContextPriorityRequest

type CGLCPContextPriorityRequest int32
const (
	KCGLCPContextPriorityRequestHigh   CGLCPContextPriorityRequest = 0
	KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1
	KCGLCPContextPriorityRequestLow    CGLCPContextPriorityRequest = 2
)

func (CGLCPContextPriorityRequest) String

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

type Circle added in v0.17.0

type Circle struct {
	Shape
}

Circle is an idiomatic wrapper over the Objective-C class MKCircle.

It embeds Shape, promoting that type's methods.

A circular overlay with a configurable radius that you center on a geographic coordinate.

func CircleFromID added in v0.17.0

func CircleFromID(id objc.ID) *Circle

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

func CircleWithCenterCoordinateRadius added in v0.17.0

func CircleWithCenterCoordinateRadius(coord unsafe.Pointer, radius unsafe.Pointer) *Circle

CircleWithCenterCoordinateRadius creates and returns a circle object using the specified coordinate and radius.

func CircleWithMapRect added in v0.18.1

func CircleWithMapRect(mapRect MKMapRect) *Circle

CircleWithMapRect creates and returns a circle object that derives the circular area from the specified rectangle.

func NewCircle added in v0.17.0

func NewCircle() *Circle

NewCircle creates a new Circle.

func (*Circle) BoundingMapRect added in v0.18.1

func (c *Circle) BoundingMapRect() MKMapRect

BoundingMapRect returns the bounding map rect.

func (*Circle) Coordinate added in v0.18.0

func (c *Circle) Coordinate() unsafe.Pointer

Coordinate returns the coordinate.

func (*Circle) Radius added in v0.18.0

func (c *Circle) Radius() unsafe.Pointer

Radius returns the radius.

func (*Circle) WithSubtitle added in v0.17.0

func (c *Circle) WithSubtitle(subtitle string) *Circle

WithSubtitle sets the subtitle of the shape annotation.

func (*Circle) WithTitle added in v0.17.0

func (c *Circle) WithTitle(title string) *Circle

WithTitle sets the title of the shape annotation.

type CircleRenderer added in v0.17.0

type CircleRenderer struct {
	OverlayPathRenderer
}

CircleRenderer is an idiomatic wrapper over the Objective-C class MKCircleRenderer.

It embeds OverlayPathRenderer, promoting that type's methods.

The visual representation of a circular overlay.

func CircleRendererFromID added in v0.17.0

func CircleRendererFromID(id objc.ID) *CircleRenderer

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

func NewCircleRendererWithCircle added in v0.17.0

func NewCircleRendererWithCircle(circle *Circle) *CircleRenderer

NewCircleRendererWithCircle creates a new overlay view using the specified circle overlay object.

func (*CircleRenderer) Circle added in v0.17.0

func (cr *CircleRenderer) Circle() *Circle

Circle returns the circle.

func (*CircleRenderer) StrokeEnd added in v0.17.0

func (cr *CircleRenderer) StrokeEnd() float64

StrokeEnd returns the stroke end.

func (*CircleRenderer) StrokeStart added in v0.17.0

func (cr *CircleRenderer) StrokeStart() float64

StrokeStart returns the stroke start.

func (*CircleRenderer) WithAlpha added in v0.17.0

func (cr *CircleRenderer) WithAlpha(alpha float64) *CircleRenderer

WithAlpha sets the amount of transparency to apply to the overlay.

func (*CircleRenderer) WithFillColor added in v0.17.0

func (cr *CircleRenderer) WithFillColor(fillColor obj.Object) *CircleRenderer

WithFillColor sets the fill color to use for the path.

func (*CircleRenderer) WithLineDashPattern added in v0.17.0

func (cr *CircleRenderer) WithLineDashPattern(items ...obj.Object) *CircleRenderer

WithLineDashPattern sets an array of numbers specifying the dash pattern to use for the path.

func (*CircleRenderer) WithLineDashPhase added in v0.17.0

func (cr *CircleRenderer) WithLineDashPhase(lineDashPhase float64) *CircleRenderer

WithLineDashPhase sets the offset (in points) at which to start drawing the dash pattern.

func (*CircleRenderer) WithLineWidth added in v0.17.0

func (cr *CircleRenderer) WithLineWidth(lineWidth float64) *CircleRenderer

WithLineWidth sets the stroke width to use for the path.

func (*CircleRenderer) WithMiterLimit added in v0.17.0

func (cr *CircleRenderer) WithMiterLimit(miterLimit float64) *CircleRenderer

WithMiterLimit sets the limiting value that helps avoid spikes at junctions between connected line segments.

func (*CircleRenderer) WithPath added in v0.17.0

WithPath sets the path representing the overlay’s shape.

func (*CircleRenderer) WithShouldRasterize added in v0.17.0

func (cr *CircleRenderer) WithShouldRasterize(shouldRasterize bool) *CircleRenderer

WithShouldRasterize sets a Boolean value that determines whether the overlay path renderer renders the overlay as a bitmap before compositing.

func (*CircleRenderer) WithStrokeColor added in v0.17.0

func (cr *CircleRenderer) WithStrokeColor(strokeColor obj.Object) *CircleRenderer

WithStrokeColor sets the stroke color to use for the path.

func (*CircleRenderer) WithStrokeEnd added in v0.17.0

func (cr *CircleRenderer) WithStrokeEnd(strokeEnd float64) *CircleRenderer

WithStrokeEnd sets the unit distance along the circle where the stroke ends.

func (*CircleRenderer) WithStrokeStart added in v0.17.0

func (cr *CircleRenderer) WithStrokeStart(strokeStart float64) *CircleRenderer

WithStrokeStart sets the unit distance along the circle where the stroke starts.

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

type ClusterAnnotation struct {
	objref.Handle
}

ClusterAnnotation is an idiomatic wrapper over the Objective-C class MKClusterAnnotation.

An annotation that groups two or more distinct annotations into a single entity.

func ClusterAnnotationFromID added in v0.17.0

func ClusterAnnotationFromID(id objc.ID) *ClusterAnnotation

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

func NewClusterAnnotationWithMemberAnnotations added in v0.17.0

func NewClusterAnnotationWithMemberAnnotations(memberAnnotations []obj.Object) *ClusterAnnotation

NewClusterAnnotationWithMemberAnnotations creates a cluster annotation with the specified individual annotations.

func (*ClusterAnnotation) Description added in v0.17.0

func (ca *ClusterAnnotation) Description() string

Description returns the object's -description text.

func (*ClusterAnnotation) IsEqual added in v0.17.0

func (ca *ClusterAnnotation) IsEqual(other obj.Object) bool

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

func (*ClusterAnnotation) IsKind added in v0.17.0

func (ca *ClusterAnnotation) IsKind(className string) bool

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

func (*ClusterAnnotation) MemberAnnotations added in v0.17.0

func (ca *ClusterAnnotation) MemberAnnotations() []obj.Object

MemberAnnotations returns the member annotations.

func (*ClusterAnnotation) String added in v0.17.0

func (ca *ClusterAnnotation) String() string

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

func (*ClusterAnnotation) Subtitle added in v0.17.0

func (ca *ClusterAnnotation) Subtitle() string

Subtitle returns the subtitle.

func (*ClusterAnnotation) Title added in v0.17.0

func (ca *ClusterAnnotation) Title() string

Title returns the title.

func (*ClusterAnnotation) WithSubtitle added in v0.17.0

func (ca *ClusterAnnotation) WithSubtitle(subtitle string) *ClusterAnnotation

WithSubtitle sets the subtitle string to display for the group of annotations.

func (*ClusterAnnotation) WithTitle added in v0.17.0

func (ca *ClusterAnnotation) WithTitle(title string) *ClusterAnnotation

WithTitle sets the title string to display for the group of annotations.

type CompassButton added in v0.17.0

type CompassButton struct {
	objref.Handle
}

CompassButton is an idiomatic wrapper over the Objective-C class MKCompassButton.

A specialized view that displays the compass heading for its associated map.

func CompassButtonFromID added in v0.17.0

func CompassButtonFromID(id objc.ID) *CompassButton

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

func CompassButtonWithMapView added in v0.17.0

func CompassButtonWithMapView(mapView *MapView) *CompassButton

CompassButtonWithMapView creates a compass button and associates it with the specified map view.

func NewCompassButton added in v0.17.0

func NewCompassButton() *CompassButton

NewCompassButton creates a new CompassButton.

func (*CompassButton) CompassVisibility added in v0.17.0

func (cb *CompassButton) CompassVisibility() FeatureVisibility

CompassVisibility returns the compass visibility.

func (*CompassButton) Description added in v0.17.0

func (cb *CompassButton) Description() string

Description returns the object's -description text.

func (*CompassButton) IsEqual added in v0.17.0

func (cb *CompassButton) IsEqual(other obj.Object) bool

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

func (*CompassButton) IsKind added in v0.17.0

func (cb *CompassButton) IsKind(className string) bool

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

func (*CompassButton) MapView added in v0.17.0

func (cb *CompassButton) MapView() *MapView

MapView returns the map view.

func (*CompassButton) String added in v0.17.0

func (cb *CompassButton) String() string

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

func (*CompassButton) WithCompassVisibility added in v0.17.0

func (cb *CompassButton) WithCompassVisibility(compassVisibility FeatureVisibility) *CompassButton

WithCompassVisibility sets the visibility of the compass button.

func (*CompassButton) WithMapView added in v0.17.0

func (cb *CompassButton) WithMapView(mapView *MapView) *CompassButton

WithMapView sets the map view that provides the heading information for the compass button.

type Directions added in v0.17.0

type Directions struct {
	objref.Handle
}

Directions is an idiomatic wrapper over the Objective-C class MKDirections.

A utility object that computes directions and travel-time information based on the route information you provide.

func DirectionsFromID added in v0.17.0

func DirectionsFromID(id objc.ID) *Directions

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

func NewDirectionsWithRequest added in v0.17.0

func NewDirectionsWithRequest(request *DirectionsRequest) *Directions

NewDirectionsWithRequest creates and returns a directions object using the specified request.

func (*Directions) CalculateDirectionsWithCompletionHandler added in v0.18.0

func (d *Directions) CalculateDirectionsWithCompletionHandler(completionHandler func(obj.Object, unsafe.Pointer))

CalculateDirectionsWithCompletionHandler begins calculating the requested route information asynchronously.

func (*Directions) CalculateETAWithCompletionHandler added in v0.18.0

func (d *Directions) CalculateETAWithCompletionHandler(completionHandler func(obj.Object, unsafe.Pointer))

CalculateETAWithCompletionHandler begins calculating the requested travel-time information asynchronously.

func (*Directions) Cancel added in v0.17.0

func (d *Directions) Cancel()

Cancel cancels a pending request.

func (*Directions) Description added in v0.17.0

func (d *Directions) Description() string

Description returns the object's -description text.

func (*Directions) IsCalculating added in v0.17.0

func (d *Directions) IsCalculating() bool

IsCalculating reports whether the object is calculating.

func (*Directions) IsEqual added in v0.17.0

func (d *Directions) IsEqual(other obj.Object) bool

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

func (*Directions) IsKind added in v0.17.0

func (d *Directions) IsKind(className string) bool

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

func (*Directions) String added in v0.17.0

func (d *Directions) String() string

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

type DirectionsRequest added in v0.17.0

type DirectionsRequest struct {
	objref.Handle
}

DirectionsRequest is an idiomatic wrapper over the Objective-C class MKDirectionsRequest.

The start and end points of a route, along with the planned mode of transportation.

func DirectionsRequestFromID added in v0.17.0

func DirectionsRequestFromID(id objc.ID) *DirectionsRequest

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

func NewDirectionsRequestWithContentsOfURL added in v0.17.0

func NewDirectionsRequestWithContentsOfURL(url string) *DirectionsRequest

NewDirectionsRequestWithContentsOfURL creates a new DirectionsRequest.

func (*DirectionsRequest) ArrivalDate added in v0.17.0

func (dr *DirectionsRequest) ArrivalDate() time.Time

ArrivalDate returns the arrival date.

func (*DirectionsRequest) DepartureDate added in v0.17.0

func (dr *DirectionsRequest) DepartureDate() time.Time

DepartureDate returns the departure date.

func (*DirectionsRequest) Description added in v0.17.0

func (dr *DirectionsRequest) Description() string

Description returns the object's -description text.

func (*DirectionsRequest) Destination added in v0.17.0

func (dr *DirectionsRequest) Destination() *MapItem

Destination returns the destination.

func (*DirectionsRequest) HighwayPreference added in v0.17.0

func (dr *DirectionsRequest) HighwayPreference() DirectionsRoutePreference

HighwayPreference returns the highway preference.

func (*DirectionsRequest) IsEqual added in v0.17.0

func (dr *DirectionsRequest) IsEqual(other obj.Object) bool

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

func (*DirectionsRequest) IsKind added in v0.17.0

func (dr *DirectionsRequest) IsKind(className string) bool

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

func (*DirectionsRequest) RequestsAlternateRoutes added in v0.17.0

func (dr *DirectionsRequest) RequestsAlternateRoutes() bool

RequestsAlternateRoutes wraps the corresponding Objective-C method.

func (*DirectionsRequest) Source added in v0.17.0

func (dr *DirectionsRequest) Source() *MapItem

Source returns the source.

func (*DirectionsRequest) String added in v0.17.0

func (dr *DirectionsRequest) String() string

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

func (*DirectionsRequest) TollPreference added in v0.17.0

func (dr *DirectionsRequest) TollPreference() DirectionsRoutePreference

TollPreference returns the toll preference.

func (*DirectionsRequest) TransportType added in v0.17.0

func (dr *DirectionsRequest) TransportType() DirectionsTransportType

TransportType returns the transport type.

func (*DirectionsRequest) WithArrivalDate added in v0.17.0

func (dr *DirectionsRequest) WithArrivalDate(arrivalDate time.Time) *DirectionsRequest

WithArrivalDate sets the arrival date.

func (*DirectionsRequest) WithDepartureDate added in v0.17.0

func (dr *DirectionsRequest) WithDepartureDate(departureDate time.Time) *DirectionsRequest

WithDepartureDate sets the departure date.

func (*DirectionsRequest) WithDestination added in v0.17.0

func (dr *DirectionsRequest) WithDestination(destination *MapItem) *DirectionsRequest

WithDestination sets the destination.

func (*DirectionsRequest) WithHighwayPreference added in v0.17.0

func (dr *DirectionsRequest) WithHighwayPreference(highwayPreference DirectionsRoutePreference) *DirectionsRequest

WithHighwayPreference sets the highway preference.

func (*DirectionsRequest) WithRequestsAlternateRoutes added in v0.17.0

func (dr *DirectionsRequest) WithRequestsAlternateRoutes(requestsAlternateRoutes bool) *DirectionsRequest

WithRequestsAlternateRoutes sets the requests alternate routes.

func (*DirectionsRequest) WithSource added in v0.17.0

func (dr *DirectionsRequest) WithSource(source *MapItem) *DirectionsRequest

WithSource sets the source.

func (*DirectionsRequest) WithTollPreference added in v0.17.0

func (dr *DirectionsRequest) WithTollPreference(tollPreference DirectionsRoutePreference) *DirectionsRequest

WithTollPreference sets the toll preference.

func (*DirectionsRequest) WithTransportType added in v0.17.0

func (dr *DirectionsRequest) WithTransportType(transportType DirectionsTransportType) *DirectionsRequest

WithTransportType sets the transport type.

type DirectionsResponse added in v0.17.0

type DirectionsResponse struct {
	objref.Handle
}

DirectionsResponse is an idiomatic wrapper over the Objective-C class MKDirectionsResponse.

The route information that Apple servers return in response to your request for directions.

func DirectionsResponseFromID added in v0.17.0

func DirectionsResponseFromID(id objc.ID) *DirectionsResponse

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

func NewDirectionsResponse added in v0.17.0

func NewDirectionsResponse() *DirectionsResponse

NewDirectionsResponse creates a new DirectionsResponse.

func (*DirectionsResponse) Description added in v0.17.0

func (dr *DirectionsResponse) Description() string

Description returns the object's -description text.

func (*DirectionsResponse) Destination added in v0.17.0

func (dr *DirectionsResponse) Destination() *MapItem

Destination returns the destination.

func (*DirectionsResponse) IsEqual added in v0.17.0

func (dr *DirectionsResponse) IsEqual(other obj.Object) bool

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

func (*DirectionsResponse) IsKind added in v0.17.0

func (dr *DirectionsResponse) IsKind(className string) bool

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

func (*DirectionsResponse) Routes added in v0.17.0

func (dr *DirectionsResponse) Routes() []*Route

Routes returns the routes.

Routes returns the collection as a Go slice.

func (*DirectionsResponse) Source added in v0.17.0

func (dr *DirectionsResponse) Source() *MapItem

Source returns the source.

func (*DirectionsResponse) String added in v0.17.0

func (dr *DirectionsResponse) String() string

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

type DirectionsRoutePreference added in v0.17.0

type DirectionsRoutePreference int64

Options that modify how the framework selects routes when calculating directions.

const (
	DirectionsRoutePreferenceAny   DirectionsRoutePreference = 0
	DirectionsRoutePreferenceAvoid DirectionsRoutePreference = 1
)

func (DirectionsRoutePreference) String added in v0.17.0

func (e DirectionsRoutePreference) String() string

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

type DirectionsTransportType added in v0.17.0

type DirectionsTransportType uint64

Constants that specify the type of conveyance to use. Bitmask — values may be combined with |.

const (
	// Directions suitable for use while driving.
	DirectionsTransportTypeAutomobile DirectionsTransportType = 1
	// Directions suitable for a pedestrian.
	DirectionsTransportTypeWalking DirectionsTransportType = 2
	// Directions suitable for public transportation.
	DirectionsTransportTypeTransit DirectionsTransportType = 4
	// Directions suitable for use while cycling.
	DirectionsTransportTypeCycling DirectionsTransportType = 8
	// Directions suitable for any transportation option.
	DirectionsTransportTypeAny DirectionsTransportType = 268435455
)

func (DirectionsTransportType) String added in v0.17.0

func (e DirectionsTransportType) String() string

String returns the DirectionsTransportType 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 DistanceFormatter added in v0.17.0

type DistanceFormatter struct {
	objref.Handle
}

DistanceFormatter is an idiomatic wrapper over the Objective-C class MKDistanceFormatter.

A utility object that converts between a geographic distance and a string-based expression of that distance.

func DistanceFormatterFromID added in v0.17.0

func DistanceFormatterFromID(id objc.ID) *DistanceFormatter

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

func NewDistanceFormatter added in v0.17.0

func NewDistanceFormatter() *DistanceFormatter

NewDistanceFormatter creates a new DistanceFormatter.

func (*DistanceFormatter) Description added in v0.17.0

func (df *DistanceFormatter) Description() string

Description returns the object's -description text.

func (*DistanceFormatter) DistanceFromString added in v0.18.0

func (df *DistanceFormatter) DistanceFromString(distance string) unsafe.Pointer

DistanceFromString returns the distance value parsed from the specified string.

func (*DistanceFormatter) IsEqual added in v0.17.0

func (df *DistanceFormatter) IsEqual(other obj.Object) bool

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

func (*DistanceFormatter) IsKind added in v0.17.0

func (df *DistanceFormatter) IsKind(className string) bool

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

func (*DistanceFormatter) Locale added in v0.17.0

func (df *DistanceFormatter) Locale() *foundation.Locale

Locale returns the locale.

func (*DistanceFormatter) String added in v0.17.0

func (df *DistanceFormatter) String() string

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

func (*DistanceFormatter) StringFromDistance added in v0.17.0

func (df *DistanceFormatter) StringFromDistance(distance unsafe.Pointer) string

StringFromDistance creates a string representation of the specified distance.

func (*DistanceFormatter) UnitStyle added in v0.17.0

UnitStyle returns the unit style.

func (*DistanceFormatter) Units added in v0.17.0

Units returns the units.

func (*DistanceFormatter) WithLocale added in v0.17.0

func (df *DistanceFormatter) WithLocale(locale obj.Object) *DistanceFormatter

WithLocale sets the locale to use when formatting strings.

func (*DistanceFormatter) WithUnitStyle added in v0.17.0

func (df *DistanceFormatter) WithUnitStyle(unitStyle DistanceFormatterUnitStyle) *DistanceFormatter

WithUnitStyle sets the preferred style for units.

func (*DistanceFormatter) WithUnits added in v0.17.0

WithUnits sets the measuring system — imperial or metric — to use for units.

type DistanceFormatterUnitStyle added in v0.17.0

type DistanceFormatterUnitStyle uint64

The preferred style for units.

const (
	DistanceFormatterUnitStyleDefault     DistanceFormatterUnitStyle = 0
	DistanceFormatterUnitStyleAbbreviated DistanceFormatterUnitStyle = 1
	DistanceFormatterUnitStyleFull        DistanceFormatterUnitStyle = 2
)

func (DistanceFormatterUnitStyle) String added in v0.17.0

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

type DistanceFormatterUnits added in v0.17.0

type DistanceFormatterUnits uint64

Constants that reflect the type of units to use in the string.

const (
	DistanceFormatterUnitsDefault           DistanceFormatterUnits = 0
	DistanceFormatterUnitsMetric            DistanceFormatterUnits = 1
	DistanceFormatterUnitsImperial          DistanceFormatterUnits = 2
	DistanceFormatterUnitsImperialWithYards DistanceFormatterUnits = 3
)

func (DistanceFormatterUnits) String added in v0.17.0

func (e DistanceFormatterUnits) String() string

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

type ETAResponse added in v0.17.0

type ETAResponse struct {
	objref.Handle
}

ETAResponse is an idiomatic wrapper over the Objective-C class MKETAResponse.

The travel-time information that Apple servers return.

func ETAResponseFromID added in v0.17.0

func ETAResponseFromID(id objc.ID) *ETAResponse

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

func NewETAResponse added in v0.17.0

func NewETAResponse() *ETAResponse

NewETAResponse creates a new ETAResponse.

func (*ETAResponse) Description added in v0.17.0

func (er *ETAResponse) Description() string

Description returns the object's -description text.

func (*ETAResponse) Destination added in v0.17.0

func (er *ETAResponse) Destination() *MapItem

Destination returns the destination.

func (*ETAResponse) Distance added in v0.18.0

func (er *ETAResponse) Distance() unsafe.Pointer

Distance returns the distance.

func (*ETAResponse) ExpectedArrivalDate added in v0.17.0

func (er *ETAResponse) ExpectedArrivalDate() time.Time

ExpectedArrivalDate returns the expected arrival date.

func (*ETAResponse) ExpectedDepartureDate added in v0.17.0

func (er *ETAResponse) ExpectedDepartureDate() time.Time

ExpectedDepartureDate returns the expected departure date.

func (*ETAResponse) ExpectedTravelTime added in v0.17.0

func (er *ETAResponse) ExpectedTravelTime() float64

ExpectedTravelTime returns the expected travel time.

func (*ETAResponse) IsEqual added in v0.17.0

func (er *ETAResponse) IsEqual(other obj.Object) bool

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

func (*ETAResponse) IsKind added in v0.17.0

func (er *ETAResponse) IsKind(className string) bool

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

func (*ETAResponse) Source added in v0.17.0

func (er *ETAResponse) Source() *MapItem

Source returns the source.

func (*ETAResponse) String added in v0.17.0

func (er *ETAResponse) String() string

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

func (*ETAResponse) TransportType added in v0.17.0

func (er *ETAResponse) TransportType() DirectionsTransportType

TransportType returns the transport type.

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

type ErrorCode uint64

Error constants for the MapKit framework.

const (
	ErrorUnknown            ErrorCode = 1
	ErrorServerFailure      ErrorCode = 2
	ErrorLoadingThrottled   ErrorCode = 3
	ErrorPlacemarkNotFound  ErrorCode = 4
	ErrorDirectionsNotFound ErrorCode = 5
	ErrorDecodingFailed     ErrorCode = 6
)

func (ErrorCode) String added in v0.17.0

func (e ErrorCode) String() string

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

type EvCmd

type EvCmd int32
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) String() string

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

type FeatureVisibility added in v0.17.0

type FeatureVisibility int64

Constants that indicate the visibility of different map features.

const (
	// A constant indicating that the feature adapts to the current map state.
	FeatureVisibilityAdaptive FeatureVisibility = 0
	// A constant indicating that the feature is hidden.
	FeatureVisibilityHidden FeatureVisibility = 1
	// A constant indicating that the feature is visible.
	FeatureVisibilityVisible FeatureVisibility = 2
)

func (FeatureVisibility) String added in v0.17.0

func (e FeatureVisibility) String() string

String returns the FeatureVisibility 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 GeoJSONDecoder added in v0.17.0

type GeoJSONDecoder struct {
	objref.Handle
}

GeoJSONDecoder is an idiomatic wrapper over the Objective-C class MKGeoJSONDecoder.

An object that decodes GeoJSON objects into MapKit types.

func GeoJSONDecoderFromID added in v0.17.0

func GeoJSONDecoderFromID(id objc.ID) *GeoJSONDecoder

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

func NewGeoJSONDecoder added in v0.17.0

func NewGeoJSONDecoder() *GeoJSONDecoder

NewGeoJSONDecoder creates a new GeoJSONDecoder.

func (*GeoJSONDecoder) Description added in v0.17.0

func (gjd *GeoJSONDecoder) Description() string

Description returns the object's -description text.

func (*GeoJSONDecoder) GeoJSONObjectsWithData added in v0.17.0

func (gjd *GeoJSONDecoder) GeoJSONObjectsWithData(data []byte) (result []obj.Object, err error)

GeoJSONObjectsWithData decodes the provided data into native MapKit types that a map can display.

func (*GeoJSONDecoder) IsEqual added in v0.17.0

func (gjd *GeoJSONDecoder) IsEqual(other obj.Object) bool

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

func (*GeoJSONDecoder) IsKind added in v0.17.0

func (gjd *GeoJSONDecoder) IsKind(className string) bool

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

func (*GeoJSONDecoder) String added in v0.17.0

func (gjd *GeoJSONDecoder) String() string

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

type GeoJSONFeature added in v0.17.0

type GeoJSONFeature struct {
	objref.Handle
}

GeoJSONFeature is an idiomatic wrapper over the Objective-C class MKGeoJSONFeature.

The decoded representation of a GeoJSON feature.

func GeoJSONFeatureFromID added in v0.17.0

func GeoJSONFeatureFromID(id objc.ID) *GeoJSONFeature

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

func NewGeoJSONFeature added in v0.17.0

func NewGeoJSONFeature() *GeoJSONFeature

NewGeoJSONFeature creates a new GeoJSONFeature.

func (*GeoJSONFeature) Description added in v0.17.0

func (gjf *GeoJSONFeature) Description() string

Description returns the object's -description text.

func (*GeoJSONFeature) Geometry added in v0.17.0

func (gjf *GeoJSONFeature) Geometry() []*Shape

Geometry returns the geometry.

Geometry returns the collection as a Go slice.

func (*GeoJSONFeature) Identifier added in v0.17.0

func (gjf *GeoJSONFeature) Identifier() string

Identifier returns the identifier.

func (*GeoJSONFeature) IsEqual added in v0.17.0

func (gjf *GeoJSONFeature) IsEqual(other obj.Object) bool

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

func (*GeoJSONFeature) IsKind added in v0.17.0

func (gjf *GeoJSONFeature) IsKind(className string) bool

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

func (*GeoJSONFeature) Properties added in v0.17.0

func (gjf *GeoJSONFeature) Properties() []byte

Properties returns the properties.

func (*GeoJSONFeature) String added in v0.17.0

func (gjf *GeoJSONFeature) String() string

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

type GeoJSONObject added in v0.17.0

type GeoJSONObject interface {
}

GeoJSONObject is the Go form of the Objective-C protocol MKGeoJSONObject.

type GeocodingRequest added in v0.17.0

type GeocodingRequest struct {
	objref.Handle
}

GeocodingRequest is an idiomatic wrapper over the Objective-C class MKGeocodingRequest.

A class that looks up a geographic coordinate using the provided string.

func GeocodingRequestFromID added in v0.17.0

func GeocodingRequestFromID(id objc.ID) *GeocodingRequest

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

func NewGeocodingRequestWithAddressString added in v0.17.0

func NewGeocodingRequestWithAddressString(addressString string) *GeocodingRequest

NewGeocodingRequestWithAddressString initializes a new geocoder request object with the provided address string.

func (*GeocodingRequest) AddressString added in v0.17.0

func (gr *GeocodingRequest) AddressString() string

AddressString returns the address string.

func (*GeocodingRequest) Cancel added in v0.17.0

func (gr *GeocodingRequest) Cancel()

Cancel a function you call to cancel a geocoding request that’s in progress.

func (*GeocodingRequest) Description added in v0.17.0

func (gr *GeocodingRequest) Description() string

Description returns the object's -description text.

func (*GeocodingRequest) GetMapItems added in v0.17.0

func (gr *GeocodingRequest) GetMapItems(ctx context.Context) (result obj.Object, err error)

GetMapItems returns the map items relevant to the geocoded location.

GetMapItems blocks until the operation completes or ctx is cancelled.

func (*GeocodingRequest) IsCancelled added in v0.17.0

func (gr *GeocodingRequest) IsCancelled() bool

IsCancelled reports whether the object is cancelled.

func (*GeocodingRequest) IsEqual added in v0.17.0

func (gr *GeocodingRequest) IsEqual(other obj.Object) bool

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

func (*GeocodingRequest) IsKind added in v0.17.0

func (gr *GeocodingRequest) IsKind(className string) bool

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

func (*GeocodingRequest) IsLoading added in v0.17.0

func (gr *GeocodingRequest) IsLoading() bool

IsLoading reports whether the object is loading.

func (*GeocodingRequest) PreferredLocale added in v0.17.0

func (gr *GeocodingRequest) PreferredLocale() *foundation.Locale

PreferredLocale returns the preferred locale.

func (*GeocodingRequest) String added in v0.17.0

func (gr *GeocodingRequest) String() string

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

func (*GeocodingRequest) WithPreferredLocale added in v0.17.0

func (gr *GeocodingRequest) WithPreferredLocale(preferredLocale obj.Object) *GeocodingRequest

WithPreferredLocale sets a value that indicates the default locale the geocoder should use when processing requests.

type GeodesicPolyline added in v0.17.0

type GeodesicPolyline struct {
	Polyline
}

GeodesicPolyline is an idiomatic wrapper over the Objective-C class MKGeodesicPolyline.

It embeds Polyline, promoting that type's methods.

An open polygon overlay consisting of line segments that follow the contours of the Earth to create the shortest path between the specified points.

func GeodesicPolylineFromID added in v0.17.0

func GeodesicPolylineFromID(id objc.ID) *GeodesicPolyline

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

func NewGeodesicPolyline added in v0.17.0

func NewGeodesicPolyline() *GeodesicPolyline

NewGeodesicPolyline creates a new GeodesicPolyline.

func PolylineWithCoordinatesCount added in v0.17.0

func PolylineWithCoordinatesCount(coords unsafe.Pointer, count int) *GeodesicPolyline

PolylineWithCoordinatesCount creates and returns a geodesic polyline using the specified coordinates.

func PolylineWithPointsCount added in v0.18.0

func PolylineWithPointsCount(points *MKMapPoint, count int) *GeodesicPolyline

PolylineWithPointsCount creates and returns a geodesic polyline using the specified map points.

func (*GeodesicPolyline) WithSubtitle added in v0.17.0

func (gp *GeodesicPolyline) WithSubtitle(subtitle string) *GeodesicPolyline

WithSubtitle sets the subtitle of the shape annotation.

func (*GeodesicPolyline) WithTitle added in v0.17.0

func (gp *GeodesicPolyline) WithTitle(title string) *GeodesicPolyline

WithTitle sets the title of the shape annotation.

type GradientPolylineRenderer added in v0.17.0

type GradientPolylineRenderer struct {
	PolylineRenderer
}

GradientPolylineRenderer is an idiomatic wrapper over the Objective-C class MKGradientPolylineRenderer.

It embeds PolylineRenderer, promoting that type's methods.

A visual representation of any polyline overlay object with a gradient.

func GradientPolylineRendererFromID added in v0.17.0

func GradientPolylineRendererFromID(id objc.ID) *GradientPolylineRenderer

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

func NewGradientPolylineRenderer added in v0.17.0

func NewGradientPolylineRenderer() *GradientPolylineRenderer

NewGradientPolylineRenderer creates a new GradientPolylineRenderer.

func (*GradientPolylineRenderer) Colors added in v0.17.0

func (gpr *GradientPolylineRenderer) Colors() []obj.Object

Colors returns the colors.

Colors returns the collection as a Go slice.

func (*GradientPolylineRenderer) Locations added in v0.17.0

func (gpr *GradientPolylineRenderer) Locations() []obj.Object

Locations returns the locations.

Locations returns the collection as a Go slice.

func (*GradientPolylineRenderer) SetColorsAtLocations added in v0.17.0

func (gpr *GradientPolylineRenderer) SetColorsAtLocations(colors []obj.Object, locations []*foundation.Number)

SetColorsAtLocations sets the colors and corresponding unit distance values to create gradients.

func (*GradientPolylineRenderer) WithAlpha added in v0.17.0

WithAlpha sets the amount of transparency to apply to the overlay.

func (*GradientPolylineRenderer) WithFillColor added in v0.17.0

func (gpr *GradientPolylineRenderer) WithFillColor(fillColor obj.Object) *GradientPolylineRenderer

WithFillColor sets the fill color to use for the path.

func (*GradientPolylineRenderer) WithLineDashPattern added in v0.17.0

func (gpr *GradientPolylineRenderer) WithLineDashPattern(items ...obj.Object) *GradientPolylineRenderer

WithLineDashPattern sets an array of numbers specifying the dash pattern to use for the path.

func (*GradientPolylineRenderer) WithLineDashPhase added in v0.17.0

func (gpr *GradientPolylineRenderer) WithLineDashPhase(lineDashPhase float64) *GradientPolylineRenderer

WithLineDashPhase sets the offset (in points) at which to start drawing the dash pattern.

func (*GradientPolylineRenderer) WithLineWidth added in v0.17.0

func (gpr *GradientPolylineRenderer) WithLineWidth(lineWidth float64) *GradientPolylineRenderer

WithLineWidth sets the stroke width to use for the path.

func (*GradientPolylineRenderer) WithMiterLimit added in v0.17.0

func (gpr *GradientPolylineRenderer) WithMiterLimit(miterLimit float64) *GradientPolylineRenderer

WithMiterLimit sets the limiting value that helps avoid spikes at junctions between connected line segments.

func (*GradientPolylineRenderer) WithPath added in v0.17.0

WithPath sets the path representing the overlay’s shape.

func (*GradientPolylineRenderer) WithShouldRasterize added in v0.17.0

func (gpr *GradientPolylineRenderer) WithShouldRasterize(shouldRasterize bool) *GradientPolylineRenderer

WithShouldRasterize sets a Boolean value that determines whether the overlay path renderer renders the overlay as a bitmap before compositing.

func (*GradientPolylineRenderer) WithStrokeColor added in v0.17.0

func (gpr *GradientPolylineRenderer) WithStrokeColor(strokeColor obj.Object) *GradientPolylineRenderer

WithStrokeColor sets the stroke color to use for the path.

func (*GradientPolylineRenderer) WithStrokeEnd added in v0.17.0

func (gpr *GradientPolylineRenderer) WithStrokeEnd(strokeEnd float64) *GradientPolylineRenderer

WithStrokeEnd sets the unit distance along the line where the stroke ends.

func (*GradientPolylineRenderer) WithStrokeStart added in v0.17.0

func (gpr *GradientPolylineRenderer) WithStrokeStart(strokeStart float64) *GradientPolylineRenderer

WithStrokeStart sets the unit distance along the line where the stroke starts.

type HybridMapConfiguration added in v0.17.0

type HybridMapConfiguration struct {
	MapConfiguration
}

HybridMapConfiguration is an idiomatic wrapper over the Objective-C class MKHybridMapConfiguration.

It embeds MapConfiguration, promoting that type's methods.

The class that represents a satellite image of the area with road and road name information layers on top.

func HybridMapConfigurationFromID added in v0.17.0

func HybridMapConfigurationFromID(id objc.ID) *HybridMapConfiguration

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

func NewHybridMapConfiguration added in v0.17.0

func NewHybridMapConfiguration() *HybridMapConfiguration

NewHybridMapConfiguration creates a new HybridMapConfiguration.

func NewHybridMapConfigurationWithElevationStyle added in v0.17.0

func NewHybridMapConfigurationWithElevationStyle(elevationStyle MapElevationStyle) *HybridMapConfiguration

NewHybridMapConfigurationWithElevationStyle creates a new hybrid map configuration with the specified elevation style.

func (*HybridMapConfiguration) PointOfInterestFilter added in v0.17.0

func (hmc *HybridMapConfiguration) PointOfInterestFilter() *PointOfInterestFilter

PointOfInterestFilter returns the point of interest filter.

func (*HybridMapConfiguration) ShowsTraffic added in v0.17.0

func (hmc *HybridMapConfiguration) ShowsTraffic() bool

ShowsTraffic wraps the corresponding Objective-C method.

func (*HybridMapConfiguration) WithElevationStyle added in v0.17.0

func (hmc *HybridMapConfiguration) WithElevationStyle(elevationStyle MapElevationStyle) *HybridMapConfiguration

WithElevationStyle sets the value that indicates the map’s elevation style.

func (*HybridMapConfiguration) WithPointOfInterestFilter added in v0.17.0

func (hmc *HybridMapConfiguration) WithPointOfInterestFilter(pointOfInterestFilter *PointOfInterestFilter) *HybridMapConfiguration

WithPointOfInterestFilter sets the filter the framework uses to determine the points of interest to show on the map.

func (*HybridMapConfiguration) WithShowsTraffic added in v0.17.0

func (hmc *HybridMapConfiguration) WithShowsTraffic(showsTraffic bool) *HybridMapConfiguration

WithShowsTraffic sets a Boolean value that indicates whether the maps shows traffic conditions.

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

type ImageryMapConfiguration struct {
	MapConfiguration
}

ImageryMapConfiguration is an idiomatic wrapper over the Objective-C class MKImageryMapConfiguration.

It embeds MapConfiguration, promoting that type's methods.

The class that represents an imagery-based map presentation, such as one using satellite imagery.

func ImageryMapConfigurationFromID added in v0.17.0

func ImageryMapConfigurationFromID(id objc.ID) *ImageryMapConfiguration

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

func NewImageryMapConfiguration added in v0.17.0

func NewImageryMapConfiguration() *ImageryMapConfiguration

NewImageryMapConfiguration creates a new ImageryMapConfiguration.

func NewImageryMapConfigurationWithElevationStyle added in v0.17.0

func NewImageryMapConfigurationWithElevationStyle(elevationStyle MapElevationStyle) *ImageryMapConfiguration

NewImageryMapConfigurationWithElevationStyle creates a new imagery based map configuration with the specified elevation style.

func (*ImageryMapConfiguration) WithElevationStyle added in v0.17.0

func (imc *ImageryMapConfiguration) WithElevationStyle(elevationStyle MapElevationStyle) *ImageryMapConfiguration

WithElevationStyle sets the value that indicates the map’s elevation style.

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

type LocalPointsOfInterestRequest struct {
	objref.Handle
}

LocalPointsOfInterestRequest is an idiomatic wrapper over the Objective-C class MKLocalPointsOfInterestRequest.

A structured request to use when searching for points of interest.

func LocalPointsOfInterestRequestFromID added in v0.17.0

func LocalPointsOfInterestRequestFromID(id objc.ID) *LocalPointsOfInterestRequest

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

func NewLocalPointsOfInterestRequestWithCenterCoordinateRadius added in v0.17.0

func NewLocalPointsOfInterestRequestWithCenterCoordinateRadius(coordinate unsafe.Pointer, radius unsafe.Pointer) *LocalPointsOfInterestRequest

NewLocalPointsOfInterestRequestWithCenterCoordinateRadius creates a points of interest search request centered on the provided coordinate with the provided radius.

func (*LocalPointsOfInterestRequest) Coordinate added in v0.18.0

func (lpoir *LocalPointsOfInterestRequest) Coordinate() unsafe.Pointer

Coordinate returns the coordinate.

func (*LocalPointsOfInterestRequest) Description added in v0.17.0

func (lpoir *LocalPointsOfInterestRequest) Description() string

Description returns the object's -description text.

func (*LocalPointsOfInterestRequest) IsEqual added in v0.17.0

func (lpoir *LocalPointsOfInterestRequest) IsEqual(other obj.Object) bool

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

func (*LocalPointsOfInterestRequest) IsKind added in v0.17.0

func (lpoir *LocalPointsOfInterestRequest) IsKind(className string) bool

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

func (*LocalPointsOfInterestRequest) PointOfInterestFilter added in v0.17.0

func (lpoir *LocalPointsOfInterestRequest) PointOfInterestFilter() *PointOfInterestFilter

PointOfInterestFilter returns the point of interest filter.

func (*LocalPointsOfInterestRequest) Radius added in v0.18.0

Radius returns the radius.

func (*LocalPointsOfInterestRequest) String added in v0.17.0

func (lpoir *LocalPointsOfInterestRequest) String() string

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

func (*LocalPointsOfInterestRequest) WithPointOfInterestFilter added in v0.17.0

func (lpoir *LocalPointsOfInterestRequest) WithPointOfInterestFilter(pointOfInterestFilter *PointOfInterestFilter) *LocalPointsOfInterestRequest

WithPointOfInterestFilter sets a filter that lists points of interest categories to include or exclude.

type LocalSearch added in v0.17.0

type LocalSearch struct {
	objref.Handle
}

LocalSearch is an idiomatic wrapper over the Objective-C class MKLocalSearch.

A utility object for initiating map-based searches and processing the results.

func LocalSearchFromID added in v0.17.0

func LocalSearchFromID(id objc.ID) *LocalSearch

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

func NewLocalSearchWithPointsOfInterestRequest added in v0.17.0

func NewLocalSearchWithPointsOfInterestRequest(request *LocalPointsOfInterestRequest) *LocalSearch

NewLocalSearchWithPointsOfInterestRequest creates and returns a search object for fetching points of interest.

func NewLocalSearchWithRequest added in v0.17.0

func NewLocalSearchWithRequest(request *LocalSearchRequest) *LocalSearch

NewLocalSearchWithRequest creates and returns a search object with the specified parameters.

func (*LocalSearch) Cancel added in v0.17.0

func (ls *LocalSearch) Cancel()

Cancel cancels an in-progress search operation.

func (*LocalSearch) Description added in v0.17.0

func (ls *LocalSearch) Description() string

Description returns the object's -description text.

func (*LocalSearch) IsEqual added in v0.17.0

func (ls *LocalSearch) IsEqual(other obj.Object) bool

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

func (*LocalSearch) IsKind added in v0.17.0

func (ls *LocalSearch) IsKind(className string) bool

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

func (*LocalSearch) IsSearching added in v0.17.0

func (ls *LocalSearch) IsSearching() bool

IsSearching reports whether the object is searching.

func (*LocalSearch) StartWithCompletionHandler added in v0.18.0

func (ls *LocalSearch) StartWithCompletionHandler(completionHandler func(obj.Object, unsafe.Pointer))

StartWithCompletionHandler starts the search and delivers the results to the specified completion handler.

func (*LocalSearch) String added in v0.17.0

func (ls *LocalSearch) String() string

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

type LocalSearchCompleter added in v0.17.0

type LocalSearchCompleter struct {
	objref.Handle
}

LocalSearchCompleter is an idiomatic wrapper over the Objective-C class MKLocalSearchCompleter.

A utility object for generating a list of completion strings based on a partial search string that you provide.

func LocalSearchCompleterFromID added in v0.17.0

func LocalSearchCompleterFromID(id objc.ID) *LocalSearchCompleter

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

func NewLocalSearchCompleter added in v0.17.0

func NewLocalSearchCompleter() *LocalSearchCompleter

NewLocalSearchCompleter creates a new LocalSearchCompleter.

func (*LocalSearchCompleter) AddressFilter added in v0.17.0

func (lsc *LocalSearchCompleter) AddressFilter() *AddressFilter

AddressFilter returns the address filter.

func (*LocalSearchCompleter) Cancel added in v0.17.0

func (lsc *LocalSearchCompleter) Cancel()

Cancel cancels an in-progress search operation.

func (*LocalSearchCompleter) Description added in v0.17.0

func (lsc *LocalSearchCompleter) Description() string

Description returns the object's -description text.

func (*LocalSearchCompleter) FilterType added in v0.17.0

FilterType returns the filter type.

func (*LocalSearchCompleter) IsEqual added in v0.17.0

func (lsc *LocalSearchCompleter) IsEqual(other obj.Object) bool

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

func (*LocalSearchCompleter) IsKind added in v0.17.0

func (lsc *LocalSearchCompleter) IsKind(className string) bool

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

func (*LocalSearchCompleter) IsSearching added in v0.17.0

func (lsc *LocalSearchCompleter) IsSearching() bool

IsSearching reports whether the object is searching.

func (*LocalSearchCompleter) PointOfInterestFilter added in v0.17.0

func (lsc *LocalSearchCompleter) PointOfInterestFilter() *PointOfInterestFilter

PointOfInterestFilter returns the point of interest filter.

func (*LocalSearchCompleter) QueryFragment added in v0.17.0

func (lsc *LocalSearchCompleter) QueryFragment() string

QueryFragment returns the query fragment.

func (*LocalSearchCompleter) RegionPriority added in v0.17.0

func (lsc *LocalSearchCompleter) RegionPriority() LocalSearchRegionPriority

RegionPriority returns the region priority.

func (*LocalSearchCompleter) ResultTypes added in v0.17.0

ResultTypes returns the result types.

func (*LocalSearchCompleter) Results added in v0.17.0

func (lsc *LocalSearchCompleter) Results() []*LocalSearchCompletion

Results returns the results.

Results returns the collection as a Go slice.

func (*LocalSearchCompleter) String added in v0.17.0

func (lsc *LocalSearchCompleter) String() string

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

func (*LocalSearchCompleter) WithAddressFilter added in v0.17.0

func (lsc *LocalSearchCompleter) WithAddressFilter(addressFilter *AddressFilter) *LocalSearchCompleter

WithAddressFilter sets a filter that lists which address options to include or exclude in search results.

func (*LocalSearchCompleter) WithDelegate added in v0.17.0

WithDelegate sets the object that receives the completion results.

func (*LocalSearchCompleter) WithFilterType added in v0.17.0

func (lsc *LocalSearchCompleter) WithFilterType(filterType SearchCompletionFilterType) *LocalSearchCompleter

WithFilterType sets the filter options for the search results.

func (*LocalSearchCompleter) WithPointOfInterestFilter added in v0.17.0

func (lsc *LocalSearchCompleter) WithPointOfInterestFilter(pointOfInterestFilter *PointOfInterestFilter) *LocalSearchCompleter

WithPointOfInterestFilter sets a filter that lists point of interest categories to include or exclude in the search.

func (*LocalSearchCompleter) WithQueryFragment added in v0.17.0

func (lsc *LocalSearchCompleter) WithQueryFragment(queryFragment string) *LocalSearchCompleter

WithQueryFragment sets the search string that you want completions for.

func (*LocalSearchCompleter) WithRegionPriority added in v0.17.0

func (lsc *LocalSearchCompleter) WithRegionPriority(regionPriority LocalSearchRegionPriority) *LocalSearchCompleter

WithRegionPriority sets a value that indicates the importance of the configured region.

func (*LocalSearchCompleter) WithResultTypes added in v0.17.0

WithResultTypes sets the types of search completions to include.

type LocalSearchCompleterDelegate added in v0.17.0

type LocalSearchCompleterDelegate interface {
}

LocalSearchCompleterDelegate receives the callbacks of the Objective-C protocol MKLocalSearchCompleterDelegate. 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 (LocalSearchCompleterDelegate…Handler): implement the ones you need on the same value and the framework will call them too.

type LocalSearchCompleterDelegateCompleterDidFailWithErrorHandler added in v0.17.0

type LocalSearchCompleterDelegateCompleterDidFailWithErrorHandler interface {
	CompleterDidFailWithError(completer *LocalSearchCompleter, err error)
}

LocalSearchCompleterDelegateCompleterDidFailWithErrorHandler is the optional MKLocalSearchCompleterDelegate method completer:didFailWithError:. Implement it on a LocalSearchCompleterDelegate value to receive that callback; a value without it is simply never sent one.

type LocalSearchCompleterDelegateCompleterDidUpdateResultsHandler added in v0.17.0

type LocalSearchCompleterDelegateCompleterDidUpdateResultsHandler interface {
	CompleterDidUpdateResults(completer *LocalSearchCompleter)
}

LocalSearchCompleterDelegateCompleterDidUpdateResultsHandler is the optional MKLocalSearchCompleterDelegate method completerDidUpdateResults:. Implement it on a LocalSearchCompleterDelegate value to receive that callback; a value without it is simply never sent one.

type LocalSearchCompleterResultType added in v0.17.0

type LocalSearchCompleterResultType uint64

Options that indicate types of search completions. Bitmask — values may be combined with |.

const (
	// Deprecated: Use MKLocalSearchCompleterResultType
	LocalSearchCompleterResultTypeAddress         LocalSearchCompleterResultType = 1
	LocalSearchCompleterResultTypePointOfInterest LocalSearchCompleterResultType = 2
	LocalSearchCompleterResultTypeQuery           LocalSearchCompleterResultType = 4
	LocalSearchCompleterResultTypePhysicalFeature LocalSearchCompleterResultType = 8
)

func (LocalSearchCompleterResultType) String added in v0.17.0

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

type LocalSearchCompletion added in v0.17.0

type LocalSearchCompletion struct {
	objref.Handle
}

LocalSearchCompletion is an idiomatic wrapper over the Objective-C class MKLocalSearchCompletion.

A fully formed string that completes a partial string.

func LocalSearchCompletionFromID added in v0.17.0

func LocalSearchCompletionFromID(id objc.ID) *LocalSearchCompletion

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

func NewLocalSearchCompletion added in v0.17.0

func NewLocalSearchCompletion() *LocalSearchCompletion

NewLocalSearchCompletion creates a new LocalSearchCompletion.

func (*LocalSearchCompletion) Description added in v0.17.0

func (lsc *LocalSearchCompletion) Description() string

Description returns the object's -description text.

func (*LocalSearchCompletion) IsEqual added in v0.17.0

func (lsc *LocalSearchCompletion) IsEqual(other obj.Object) bool

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

func (*LocalSearchCompletion) IsKind added in v0.17.0

func (lsc *LocalSearchCompletion) IsKind(className string) bool

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

func (*LocalSearchCompletion) String added in v0.17.0

func (lsc *LocalSearchCompletion) String() string

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

func (*LocalSearchCompletion) Subtitle added in v0.17.0

func (lsc *LocalSearchCompletion) Subtitle() string

Subtitle returns the subtitle.

func (*LocalSearchCompletion) SubtitleHighlightRanges added in v0.17.0

func (lsc *LocalSearchCompletion) SubtitleHighlightRanges() []obj.Object

SubtitleHighlightRanges returns the subtitle highlight ranges.

SubtitleHighlightRanges returns the collection as a Go slice.

func (*LocalSearchCompletion) Title added in v0.17.0

func (lsc *LocalSearchCompletion) Title() string

Title returns the title.

func (*LocalSearchCompletion) TitleHighlightRanges added in v0.17.0

func (lsc *LocalSearchCompletion) TitleHighlightRanges() []obj.Object

TitleHighlightRanges returns the title highlight ranges.

TitleHighlightRanges returns the collection as a Go slice.

type LocalSearchRegionPriority added in v0.17.0

type LocalSearchRegionPriority int64

A value that indicates the importance of the configured region.

const (
	// A value indicating that the results can originate from outside the specified region.
	LocalSearchRegionPriorityDefault LocalSearchRegionPriority = 0
	// A value indicating that no results can originate from outside the specified region.
	LocalSearchRegionPriorityRequired LocalSearchRegionPriority = 1
)

func (LocalSearchRegionPriority) String added in v0.17.0

func (e LocalSearchRegionPriority) String() string

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

type LocalSearchRequest added in v0.17.0

type LocalSearchRequest struct {
	objref.Handle
}

LocalSearchRequest is an idiomatic wrapper over the Objective-C class MKLocalSearchRequest.

The parameters to use when searching for points of interest on the map.

func LocalSearchRequestFromID added in v0.17.0

func LocalSearchRequestFromID(id objc.ID) *LocalSearchRequest

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

func NewLocalSearchRequest added in v0.17.0

func NewLocalSearchRequest() *LocalSearchRequest

NewLocalSearchRequest creates a new LocalSearchRequest.

func NewLocalSearchRequestWithCompletion added in v0.17.0

func NewLocalSearchRequestWithCompletion(completion *LocalSearchCompletion) *LocalSearchRequest

NewLocalSearchRequestWithCompletion creates a new LocalSearchRequest.

func NewLocalSearchRequestWithNaturalLanguageQuery added in v0.17.0

func NewLocalSearchRequestWithNaturalLanguageQuery(naturalLanguageQuery string) *LocalSearchRequest

NewLocalSearchRequestWithNaturalLanguageQuery creates a new LocalSearchRequest.

func (*LocalSearchRequest) AddressFilter added in v0.17.0

func (lsr *LocalSearchRequest) AddressFilter() *AddressFilter

AddressFilter returns the address filter.

func (*LocalSearchRequest) Description added in v0.17.0

func (lsr *LocalSearchRequest) Description() string

Description returns the object's -description text.

func (*LocalSearchRequest) IsEqual added in v0.17.0

func (lsr *LocalSearchRequest) IsEqual(other obj.Object) bool

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

func (*LocalSearchRequest) IsKind added in v0.17.0

func (lsr *LocalSearchRequest) IsKind(className string) bool

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

func (*LocalSearchRequest) NaturalLanguageQuery added in v0.17.0

func (lsr *LocalSearchRequest) NaturalLanguageQuery() string

NaturalLanguageQuery returns the natural language query.

func (*LocalSearchRequest) PointOfInterestFilter added in v0.17.0

func (lsr *LocalSearchRequest) PointOfInterestFilter() *PointOfInterestFilter

PointOfInterestFilter returns the point of interest filter.

func (*LocalSearchRequest) RegionPriority added in v0.17.0

func (lsr *LocalSearchRequest) RegionPriority() LocalSearchRegionPriority

RegionPriority returns the region priority.

func (*LocalSearchRequest) ResultTypes added in v0.17.0

func (lsr *LocalSearchRequest) ResultTypes() LocalSearchResultType

ResultTypes returns the result types.

func (*LocalSearchRequest) String added in v0.17.0

func (lsr *LocalSearchRequest) String() string

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

func (*LocalSearchRequest) WithAddressFilter added in v0.17.0

func (lsr *LocalSearchRequest) WithAddressFilter(addressFilter *AddressFilter) *LocalSearchRequest

WithAddressFilter sets the address filter.

func (*LocalSearchRequest) WithNaturalLanguageQuery added in v0.17.0

func (lsr *LocalSearchRequest) WithNaturalLanguageQuery(naturalLanguageQuery string) *LocalSearchRequest

WithNaturalLanguageQuery sets the natural language query.

func (*LocalSearchRequest) WithPointOfInterestFilter added in v0.17.0

func (lsr *LocalSearchRequest) WithPointOfInterestFilter(pointOfInterestFilter *PointOfInterestFilter) *LocalSearchRequest

WithPointOfInterestFilter sets the point of interest filter.

func (*LocalSearchRequest) WithRegionPriority added in v0.17.0

func (lsr *LocalSearchRequest) WithRegionPriority(regionPriority LocalSearchRegionPriority) *LocalSearchRequest

WithRegionPriority sets the region priority.

func (*LocalSearchRequest) WithResultTypes added in v0.17.0

func (lsr *LocalSearchRequest) WithResultTypes(resultTypes LocalSearchResultType) *LocalSearchRequest

WithResultTypes sets the result types.

type LocalSearchResponse added in v0.17.0

type LocalSearchResponse struct {
	objref.Handle
}

LocalSearchResponse is an idiomatic wrapper over the Objective-C class MKLocalSearchResponse.

The results from a map-based search.

func LocalSearchResponseFromID added in v0.17.0

func LocalSearchResponseFromID(id objc.ID) *LocalSearchResponse

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

func NewLocalSearchResponse added in v0.17.0

func NewLocalSearchResponse() *LocalSearchResponse

NewLocalSearchResponse creates a new LocalSearchResponse.

func (*LocalSearchResponse) Description added in v0.17.0

func (lsr *LocalSearchResponse) Description() string

Description returns the object's -description text.

func (*LocalSearchResponse) IsEqual added in v0.17.0

func (lsr *LocalSearchResponse) IsEqual(other obj.Object) bool

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

func (*LocalSearchResponse) IsKind added in v0.17.0

func (lsr *LocalSearchResponse) IsKind(className string) bool

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

func (*LocalSearchResponse) MapItems added in v0.17.0

func (lsr *LocalSearchResponse) MapItems() []*MapItem

MapItems returns the map items.

MapItems returns the collection as a Go slice.

func (*LocalSearchResponse) String added in v0.17.0

func (lsr *LocalSearchResponse) String() string

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

type LocalSearchResultType added in v0.17.0

type LocalSearchResultType uint64

Options that indicate types of search results. Bitmask — values may be combined with |.

const (
	LocalSearchResultTypeAddress         LocalSearchResultType = 1
	LocalSearchResultTypePointOfInterest LocalSearchResultType = 2
	LocalSearchResultTypePhysicalFeature LocalSearchResultType = 4
)

func (LocalSearchResultType) String added in v0.17.0

func (e LocalSearchResultType) String() string

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

type LookAroundBadgePosition added in v0.17.0

type LookAroundBadgePosition int64

Constants that control the position of badges on LookAround views.

const (
	// The value that indicates the top-left badge position.
	LookAroundBadgePositionTopLeading LookAroundBadgePosition = 0
	// The value that indicates the top-right badge position.
	LookAroundBadgePositionTopTrailing LookAroundBadgePosition = 1
	// The value that indicates the bottom-right badge position.
	LookAroundBadgePositionBottomTrailing LookAroundBadgePosition = 2
)

func (LookAroundBadgePosition) String added in v0.17.0

func (e LookAroundBadgePosition) String() string

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

type LookAroundScene added in v0.17.0

type LookAroundScene struct {
	objref.Handle
}

LookAroundScene is an idiomatic wrapper over the Objective-C class MKLookAroundScene.

A utility class that encapsulates information the framework requires to retrieve and display a specific Look Around location’s imagery.

func LookAroundSceneFromID added in v0.17.0

func LookAroundSceneFromID(id objc.ID) *LookAroundScene

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

func NewLookAroundScene added in v0.17.0

func NewLookAroundScene() *LookAroundScene

NewLookAroundScene creates a new LookAroundScene.

func (*LookAroundScene) Description added in v0.17.0

func (las *LookAroundScene) Description() string

Description returns the object's -description text.

func (*LookAroundScene) IsEqual added in v0.17.0

func (las *LookAroundScene) IsEqual(other obj.Object) bool

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

func (*LookAroundScene) IsKind added in v0.17.0

func (las *LookAroundScene) IsKind(className string) bool

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

func (*LookAroundScene) String added in v0.17.0

func (las *LookAroundScene) String() string

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

type LookAroundSceneRequest added in v0.17.0

type LookAroundSceneRequest struct {
	objref.Handle
}

LookAroundSceneRequest is an idiomatic wrapper over the Objective-C class MKLookAroundSceneRequest.

A class you use to request a LookAround scene at the location you specify.

func LookAroundSceneRequestFromID added in v0.17.0

func LookAroundSceneRequestFromID(id objc.ID) *LookAroundSceneRequest

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

func NewLookAroundSceneRequestWithCoordinate added in v0.17.0

func NewLookAroundSceneRequestWithCoordinate(coordinate unsafe.Pointer) *LookAroundSceneRequest

NewLookAroundSceneRequestWithCoordinate creates a LookAround scene at the specified coordinates.

func NewLookAroundSceneRequestWithMapItem added in v0.17.0

func NewLookAroundSceneRequestWithMapItem(mapItem *MapItem) *LookAroundSceneRequest

NewLookAroundSceneRequestWithMapItem creates a LookAround scene with the location described by the specified map item.

func (*LookAroundSceneRequest) Cancel added in v0.17.0

func (lasr *LookAroundSceneRequest) Cancel()

Cancel cancels the pending scene request.

func (*LookAroundSceneRequest) Coordinate added in v0.18.0

func (lasr *LookAroundSceneRequest) Coordinate() unsafe.Pointer

Coordinate returns the coordinate.

func (*LookAroundSceneRequest) Description added in v0.17.0

func (lasr *LookAroundSceneRequest) Description() string

Description returns the object's -description text.

func (*LookAroundSceneRequest) GetSceneWithCompletionHandler added in v0.18.0

func (lasr *LookAroundSceneRequest) GetSceneWithCompletionHandler(completionHandler func(unsafe.Pointer, unsafe.Pointer))

GetSceneWithCompletionHandler requests a LookAround scene and calls the specified completion handler.

func (*LookAroundSceneRequest) IsCancelled added in v0.17.0

func (lasr *LookAroundSceneRequest) IsCancelled() bool

IsCancelled reports whether the object is cancelled.

func (*LookAroundSceneRequest) IsEqual added in v0.17.0

func (lasr *LookAroundSceneRequest) IsEqual(other obj.Object) bool

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

func (*LookAroundSceneRequest) IsKind added in v0.17.0

func (lasr *LookAroundSceneRequest) IsKind(className string) bool

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

func (*LookAroundSceneRequest) IsLoading added in v0.17.0

func (lasr *LookAroundSceneRequest) IsLoading() bool

IsLoading reports whether the object is loading.

func (*LookAroundSceneRequest) MapItem added in v0.17.0

func (lasr *LookAroundSceneRequest) MapItem() *MapItem

MapItem returns the map item.

func (*LookAroundSceneRequest) String added in v0.17.0

func (lasr *LookAroundSceneRequest) String() string

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

type LookAroundSnapshot added in v0.17.0

type LookAroundSnapshot struct {
	objref.Handle
}

LookAroundSnapshot is an idiomatic wrapper over the Objective-C class MKLookAroundSnapshot.

An object that contains a snapshot image.

func LookAroundSnapshotFromID added in v0.17.0

func LookAroundSnapshotFromID(id objc.ID) *LookAroundSnapshot

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

func NewLookAroundSnapshot added in v0.17.0

func NewLookAroundSnapshot() *LookAroundSnapshot

NewLookAroundSnapshot creates a new LookAroundSnapshot.

func (*LookAroundSnapshot) Description added in v0.17.0

func (las *LookAroundSnapshot) Description() string

Description returns the object's -description text.

func (*LookAroundSnapshot) Image added in v0.17.0

func (las *LookAroundSnapshot) Image() obj.Object

Image returns the image.

func (*LookAroundSnapshot) IsEqual added in v0.17.0

func (las *LookAroundSnapshot) IsEqual(other obj.Object) bool

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

func (*LookAroundSnapshot) IsKind added in v0.17.0

func (las *LookAroundSnapshot) IsKind(className string) bool

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

func (*LookAroundSnapshot) String added in v0.17.0

func (las *LookAroundSnapshot) String() string

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

type LookAroundSnapshotOptions added in v0.17.0

type LookAroundSnapshotOptions struct {
	objref.Handle
}

LookAroundSnapshotOptions is an idiomatic wrapper over the Objective-C class MKLookAroundSnapshotOptions.

Values you use to customize LookAround snapshots.

func LookAroundSnapshotOptionsFromID added in v0.17.0

func LookAroundSnapshotOptionsFromID(id objc.ID) *LookAroundSnapshotOptions

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

func NewLookAroundSnapshotOptions added in v0.17.0

func NewLookAroundSnapshotOptions() *LookAroundSnapshotOptions

NewLookAroundSnapshotOptions creates a new LookAroundSnapshotOptions.

func (*LookAroundSnapshotOptions) Description added in v0.17.0

func (laso *LookAroundSnapshotOptions) Description() string

Description returns the object's -description text.

func (*LookAroundSnapshotOptions) IsEqual added in v0.17.0

func (laso *LookAroundSnapshotOptions) IsEqual(other obj.Object) bool

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

func (*LookAroundSnapshotOptions) IsKind added in v0.17.0

func (laso *LookAroundSnapshotOptions) IsKind(className string) bool

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

func (*LookAroundSnapshotOptions) PointOfInterestFilter added in v0.17.0

func (laso *LookAroundSnapshotOptions) PointOfInterestFilter() *PointOfInterestFilter

PointOfInterestFilter returns the point of interest filter.

func (*LookAroundSnapshotOptions) Size added in v0.17.0

Size returns the size.

func (*LookAroundSnapshotOptions) String added in v0.17.0

func (laso *LookAroundSnapshotOptions) String() string

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

func (*LookAroundSnapshotOptions) WithPointOfInterestFilter added in v0.17.0

func (laso *LookAroundSnapshotOptions) WithPointOfInterestFilter(pointOfInterestFilter *PointOfInterestFilter) *LookAroundSnapshotOptions

WithPointOfInterestFilter sets the point of interest filter.

func (*LookAroundSnapshotOptions) WithSize added in v0.17.0

WithSize sets the size.

type LookAroundSnapshotter added in v0.17.0

type LookAroundSnapshotter struct {
	objref.Handle
}

LookAroundSnapshotter is an idiomatic wrapper over the Objective-C class MKLookAroundSnapshotter.

A utility class that you use to create a static image from a LookAround scene.

func LookAroundSnapshotterFromID added in v0.17.0

func LookAroundSnapshotterFromID(id objc.ID) *LookAroundSnapshotter

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

func NewLookAroundSnapshotterWithSceneOptions added in v0.17.0

func NewLookAroundSnapshotterWithSceneOptions(scene *LookAroundScene, options *LookAroundSnapshotOptions) *LookAroundSnapshotter

NewLookAroundSnapshotterWithSceneOptions create a new snapshotter object with the scene and options you specify.

func (*LookAroundSnapshotter) Cancel added in v0.17.0

func (las *LookAroundSnapshotter) Cancel()

Cancel cancels an in-progress snapshot request.

func (*LookAroundSnapshotter) Description added in v0.17.0

func (las *LookAroundSnapshotter) Description() string

Description returns the object's -description text.

func (*LookAroundSnapshotter) GetSnapshot added in v0.17.0

func (las *LookAroundSnapshotter) GetSnapshot(ctx context.Context) (result *LookAroundSnapshot, err error)

GetSnapshot requests a new snapshot and calls the completion handler you provide.

GetSnapshot blocks until the operation completes or ctx is cancelled.

func (*LookAroundSnapshotter) IsEqual added in v0.17.0

func (las *LookAroundSnapshotter) IsEqual(other obj.Object) bool

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

func (*LookAroundSnapshotter) IsKind added in v0.17.0

func (las *LookAroundSnapshotter) IsKind(className string) bool

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

func (*LookAroundSnapshotter) IsLoading added in v0.17.0

func (las *LookAroundSnapshotter) IsLoading() bool

IsLoading reports whether the object is loading.

func (*LookAroundSnapshotter) String added in v0.17.0

func (las *LookAroundSnapshotter) String() string

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

type LookAroundViewController added in v0.17.0

type LookAroundViewController struct {
	objref.Handle
}

LookAroundViewController is an idiomatic wrapper over the Objective-C class MKLookAroundViewController.

A class that manages the presentation and display of a LookAround view.

func LookAroundViewControllerFromID added in v0.17.0

func LookAroundViewControllerFromID(id objc.ID) *LookAroundViewController

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

func NewLookAroundViewControllerWithCoder added in v0.17.0

func NewLookAroundViewControllerWithCoder(coder obj.Object) *LookAroundViewController

NewLookAroundViewControllerWithCoder creates a new LookAround view controller object from a coder object provided by a storyboard or nib file.

func NewLookAroundViewControllerWithNibNameBundle added in v0.17.0

func NewLookAroundViewControllerWithNibNameBundle(nibNameOrNil string, nibBundleOrNil obj.Object) *LookAroundViewController

NewLookAroundViewControllerWithNibNameBundle creates a new LookAround view controller from the specified nib and bundle.

func NewLookAroundViewControllerWithScene added in v0.17.0

func NewLookAroundViewControllerWithScene(scene *LookAroundScene) *LookAroundViewController

NewLookAroundViewControllerWithScene creates a new LookAround view controller with the specified scene.

func (*LookAroundViewController) BadgePosition added in v0.17.0

func (lavc *LookAroundViewController) BadgePosition() LookAroundBadgePosition

BadgePosition returns the badge position.

func (*LookAroundViewController) Description added in v0.17.0

func (lavc *LookAroundViewController) Description() string

Description returns the object's -description text.

func (*LookAroundViewController) IsEqual added in v0.17.0

func (lavc *LookAroundViewController) IsEqual(other obj.Object) bool

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

func (*LookAroundViewController) IsKind added in v0.17.0

func (lavc *LookAroundViewController) IsKind(className string) bool

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

func (*LookAroundViewController) IsNavigationEnabled added in v0.17.0

func (lavc *LookAroundViewController) IsNavigationEnabled() bool

IsNavigationEnabled reports whether the object is navigation enabled.

func (*LookAroundViewController) PointOfInterestFilter added in v0.17.0

func (lavc *LookAroundViewController) PointOfInterestFilter() *PointOfInterestFilter

PointOfInterestFilter returns the point of interest filter.

func (*LookAroundViewController) Scene added in v0.17.0

Scene returns the scene.

func (*LookAroundViewController) ShowsRoadLabels added in v0.17.0

func (lavc *LookAroundViewController) ShowsRoadLabels() bool

ShowsRoadLabels wraps the corresponding Objective-C method.

func (*LookAroundViewController) String added in v0.17.0

func (lavc *LookAroundViewController) String() string

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

func (*LookAroundViewController) WithBadgePosition added in v0.17.0

func (lavc *LookAroundViewController) WithBadgePosition(badgePosition LookAroundBadgePosition) *LookAroundViewController

WithBadgePosition sets a value that indicates the badge’s position on the LookAround view.

func (*LookAroundViewController) WithDelegate added in v0.17.0

WithDelegate sets an object you provide to receive events related to the user’s interaction with the LookAround view controller.

func (*LookAroundViewController) WithNavigationEnabled added in v0.17.0

func (lavc *LookAroundViewController) WithNavigationEnabled(navigationEnabled bool) *LookAroundViewController

WithNavigationEnabled sets a Boolean value that indicates whether the map’s navigation controls are visible.

func (*LookAroundViewController) WithPointOfInterestFilter added in v0.17.0

func (lavc *LookAroundViewController) WithPointOfInterestFilter(pointOfInterestFilter *PointOfInterestFilter) *LookAroundViewController

WithPointOfInterestFilter sets the filter used to determine the points of interest shown on the map.

func (*LookAroundViewController) WithScene added in v0.17.0

WithScene sets the LookAround scene.

func (*LookAroundViewController) WithShowsRoadLabels added in v0.17.0

func (lavc *LookAroundViewController) WithShowsRoadLabels(showsRoadLabels bool) *LookAroundViewController

WithShowsRoadLabels sets a Boolean value that indicates whether the map display road labels.

type LookAroundViewControllerDelegate added in v0.17.0

type LookAroundViewControllerDelegate interface {
}

LookAroundViewControllerDelegate receives the callbacks of the Objective-C protocol MKLookAroundViewControllerDelegate. 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 (LookAroundViewControllerDelegate…Handler): implement the ones you need on the same value and the framework will call them too.

type LookAroundViewControllerDelegateLookAroundViewControllerDidDismissFullScreenHandler added in v0.17.0

type LookAroundViewControllerDelegateLookAroundViewControllerDidDismissFullScreenHandler interface {
	LookAroundViewControllerDidDismissFullScreen(viewController *LookAroundViewController)
}

LookAroundViewControllerDelegateLookAroundViewControllerDidDismissFullScreenHandler is the optional MKLookAroundViewControllerDelegate method lookAroundViewControllerDidDismissFullScreen:. Implement it on a LookAroundViewControllerDelegate value to receive that callback; a value without it is simply never sent one.

type LookAroundViewControllerDelegateLookAroundViewControllerDidPresentFullScreenHandler added in v0.17.0

type LookAroundViewControllerDelegateLookAroundViewControllerDidPresentFullScreenHandler interface {
	LookAroundViewControllerDidPresentFullScreen(viewController *LookAroundViewController)
}

LookAroundViewControllerDelegateLookAroundViewControllerDidPresentFullScreenHandler is the optional MKLookAroundViewControllerDelegate method lookAroundViewControllerDidPresentFullScreen:. Implement it on a LookAroundViewControllerDelegate value to receive that callback; a value without it is simply never sent one.

type LookAroundViewControllerDelegateLookAroundViewControllerDidUpdateSceneHandler added in v0.17.0

type LookAroundViewControllerDelegateLookAroundViewControllerDidUpdateSceneHandler interface {
	LookAroundViewControllerDidUpdateScene(viewController *LookAroundViewController)
}

LookAroundViewControllerDelegateLookAroundViewControllerDidUpdateSceneHandler is the optional MKLookAroundViewControllerDelegate method lookAroundViewControllerDidUpdateScene:. Implement it on a LookAroundViewControllerDelegate value to receive that callback; a value without it is simply never sent one.

type LookAroundViewControllerDelegateLookAroundViewControllerWillDismissFullScreenHandler added in v0.17.0

type LookAroundViewControllerDelegateLookAroundViewControllerWillDismissFullScreenHandler interface {
	LookAroundViewControllerWillDismissFullScreen(viewController *LookAroundViewController)
}

LookAroundViewControllerDelegateLookAroundViewControllerWillDismissFullScreenHandler is the optional MKLookAroundViewControllerDelegate method lookAroundViewControllerWillDismissFullScreen:. Implement it on a LookAroundViewControllerDelegate value to receive that callback; a value without it is simply never sent one.

type LookAroundViewControllerDelegateLookAroundViewControllerWillPresentFullScreenHandler added in v0.17.0

type LookAroundViewControllerDelegateLookAroundViewControllerWillPresentFullScreenHandler interface {
	LookAroundViewControllerWillPresentFullScreen(viewController *LookAroundViewController)
}

LookAroundViewControllerDelegateLookAroundViewControllerWillPresentFullScreenHandler is the optional MKLookAroundViewControllerDelegate method lookAroundViewControllerWillPresentFullScreen:. Implement it on a LookAroundViewControllerDelegate value to receive that callback; a value without it is simply never sent one.

type LookAroundViewControllerDelegateLookAroundViewControllerWillUpdateSceneHandler added in v0.17.0

type LookAroundViewControllerDelegateLookAroundViewControllerWillUpdateSceneHandler interface {
	LookAroundViewControllerWillUpdateScene(viewController *LookAroundViewController)
}

LookAroundViewControllerDelegateLookAroundViewControllerWillUpdateSceneHandler is the optional MKLookAroundViewControllerDelegate method lookAroundViewControllerWillUpdateScene:. Implement it on a LookAroundViewControllerDelegate value to receive that callback; a value without it is simply never sent one.

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 MKCoordinateRegion

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

A rectangular geographic region that centers around a specific latitude and longitude. The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.

type MKCoordinateSpan

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

The width and height of a map region. The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.

type MKMapPoint

type MKMapPoint struct {
	X float64
	Y float64
}

A point on a two-dimensional map projection.

func MKMapPointForCoordinate

func MKMapPointForCoordinate(coordinate unsafe.Pointer) MKMapPoint

MKMapPointForCoordinate calls the MapKit framework function MKMapPointForCoordinate.

func MKMapPointMake

func MKMapPointMake(x float64, y float64) MKMapPoint

MKMapPointMake calls the MapKit framework function MKMapPointMake.

type MKMapRect

type MKMapRect struct {
	Origin MKMapPoint
	Size   MKMapSize
}

A rectangular area on a two-dimensional map projection.

func MKMapRectInset

func MKMapRectInset(rect MKMapRect, dx float64, dy float64) MKMapRect

MKMapRectInset calls the MapKit framework function MKMapRectInset.

func MKMapRectIntersection

func MKMapRectIntersection(rect1 MKMapRect, rect2 MKMapRect) MKMapRect

MKMapRectIntersection calls the MapKit framework function MKMapRectIntersection.

func MKMapRectMake

func MKMapRectMake(x float64, y float64, width float64, height float64) MKMapRect

MKMapRectMake calls the MapKit framework function MKMapRectMake.

func MKMapRectOffset

func MKMapRectOffset(rect MKMapRect, dx float64, dy float64) MKMapRect

MKMapRectOffset calls the MapKit framework function MKMapRectOffset.

func MKMapRectRemainder

func MKMapRectRemainder(rect MKMapRect) MKMapRect

MKMapRectRemainder calls the MapKit framework function MKMapRectRemainder.

func MKMapRectUnion

func MKMapRectUnion(rect1 MKMapRect, rect2 MKMapRect) MKMapRect

MKMapRectUnion calls the MapKit framework function MKMapRectUnion.

type MKMapSize

type MKMapSize struct {
	Width  float64
	Height float64
}

Width and height information on a two-dimensional map projection.

func MKMapSizeMake

func MKMapSizeMake(width float64, height float64) MKMapSize

MKMapSizeMake calls the MapKit framework function MKMapSizeMake.

type MKTileOverlayPath

type MKTileOverlayPath struct {
	X                  int
	Y                  int
	Z                  int
	ContentScaleFactor float64
}

Values that specify the path indexes for a single overlay tile.

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

type MapCamera struct {
	objref.Handle
}

MapCamera is an idiomatic wrapper over the Objective-C class MKMapCamera.

A virtual camera for defining the appearance of the map.

func Camera added in v0.17.0

func Camera() *MapCamera

Camera returns a new camera object for you to configure.

func CameraLookingAtCenterCoordinateFromDistancePitchHeading added in v0.17.0

func CameraLookingAtCenterCoordinateFromDistancePitchHeading(centerCoordinate unsafe.Pointer, distance unsafe.Pointer, pitch float64, heading unsafe.Pointer) *MapCamera

CameraLookingAtCenterCoordinateFromDistancePitchHeading returns a new camera object using the specified distance, pitch, and heading information.

func CameraLookingAtCenterCoordinateFromEyeCoordinateEyeAltitude added in v0.17.0

func CameraLookingAtCenterCoordinateFromEyeCoordinateEyeAltitude(centerCoordinate unsafe.Pointer, eyeCoordinate unsafe.Pointer, eyeAltitude unsafe.Pointer) *MapCamera

CameraLookingAtCenterCoordinateFromEyeCoordinateEyeAltitude returns a new camera object using the specified viewing angle information.

func CameraLookingAtMapItemForViewSizeAllowPitch added in v0.17.0

func CameraLookingAtMapItemForViewSizeAllowPitch(mapItem *MapItem, viewSize corefoundation.CGSize, allowPitch bool) *MapCamera

CameraLookingAtMapItemForViewSizeAllowPitch returns a new camera object using the specified map item, view size, and pitch.

func MapCameraFromID added in v0.17.0

func MapCameraFromID(id objc.ID) *MapCamera

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

func NewMapCamera added in v0.17.0

func NewMapCamera() *MapCamera

NewMapCamera creates a new MapCamera.

func (*MapCamera) Altitude added in v0.18.0

func (mc *MapCamera) Altitude() unsafe.Pointer

Altitude returns the altitude.

func (*MapCamera) CenterCoordinate added in v0.18.0

func (mc *MapCamera) CenterCoordinate() unsafe.Pointer

CenterCoordinate returns the center coordinate.

func (*MapCamera) CenterCoordinateDistance added in v0.18.0

func (mc *MapCamera) CenterCoordinateDistance() unsafe.Pointer

CenterCoordinateDistance returns the center coordinate distance.

func (*MapCamera) Description added in v0.17.0

func (mc *MapCamera) Description() string

Description returns the object's -description text.

func (*MapCamera) Heading added in v0.18.0

func (mc *MapCamera) Heading() unsafe.Pointer

Heading returns the heading.

func (*MapCamera) IsEqual added in v0.17.0

func (mc *MapCamera) IsEqual(other obj.Object) bool

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

func (*MapCamera) IsKind added in v0.17.0

func (mc *MapCamera) IsKind(className string) bool

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

func (*MapCamera) Pitch added in v0.17.0

func (mc *MapCamera) Pitch() float64

Pitch returns the pitch.

func (*MapCamera) String added in v0.17.0

func (mc *MapCamera) String() string

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

func (*MapCamera) WithAltitude added in v0.17.0

func (mc *MapCamera) WithAltitude(altitude unsafe.Pointer) *MapCamera

WithAltitude sets the altitude above the ground, in meters.

func (*MapCamera) WithCenterCoordinate added in v0.17.0

func (mc *MapCamera) WithCenterCoordinate(centerCoordinate unsafe.Pointer) *MapCamera

WithCenterCoordinate sets the map coordinate at the center of the map view.

func (*MapCamera) WithCenterCoordinateDistance added in v0.17.0

func (mc *MapCamera) WithCenterCoordinateDistance(centerCoordinateDistance unsafe.Pointer) *MapCamera

WithCenterCoordinateDistance sets the distance from the center point of the map to the camera, in meters.

func (*MapCamera) WithHeading added in v0.17.0

func (mc *MapCamera) WithHeading(heading unsafe.Pointer) *MapCamera

WithHeading sets the heading of the camera (in degrees) relative to true north.

func (*MapCamera) WithPitch added in v0.17.0

func (mc *MapCamera) WithPitch(pitch float64) *MapCamera

WithPitch sets the viewing angle of the camera, in degrees.

type MapCameraBoundary added in v0.17.0

type MapCameraBoundary struct {
	objref.Handle
}

MapCameraBoundary is an idiomatic wrapper over the Objective-C class MKMapCameraBoundary.

A boundary of an area within which the map’s center needs to remain.

func MapCameraBoundaryFromID added in v0.17.0

func MapCameraBoundaryFromID(id objc.ID) *MapCameraBoundary

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

func NewMapCameraBoundaryWithCoder added in v0.17.0

func NewMapCameraBoundaryWithCoder(coder obj.Object) *MapCameraBoundary

NewMapCameraBoundaryWithCoder creates a new MapCameraBoundary.

func NewMapCameraBoundaryWithMapRect added in v0.18.1

func NewMapCameraBoundaryWithMapRect(mapRect MKMapRect) *MapCameraBoundary

NewMapCameraBoundaryWithMapRect creates a new MapCameraBoundary.

func (*MapCameraBoundary) Description added in v0.17.0

func (mcb *MapCameraBoundary) Description() string

Description returns the object's -description text.

func (*MapCameraBoundary) IsEqual added in v0.17.0

func (mcb *MapCameraBoundary) IsEqual(other obj.Object) bool

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

func (*MapCameraBoundary) IsKind added in v0.17.0

func (mcb *MapCameraBoundary) IsKind(className string) bool

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

func (*MapCameraBoundary) MapRect added in v0.18.1

func (mcb *MapCameraBoundary) MapRect() MKMapRect

MapRect returns the map rect.

func (*MapCameraBoundary) String added in v0.17.0

func (mcb *MapCameraBoundary) String() string

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

type MapCameraZoomRange added in v0.17.0

type MapCameraZoomRange struct {
	objref.Handle
}

MapCameraZoomRange is an idiomatic wrapper over the Objective-C class MKMapCameraZoomRange.

A camera zoom range that limits the distances to which the user can zoom.

func MapCameraZoomRangeFromID added in v0.17.0

func MapCameraZoomRangeFromID(id objc.ID) *MapCameraZoomRange

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

func NewMapCameraZoomRangeWithMaxCenterCoordinateDistance added in v0.17.0

func NewMapCameraZoomRangeWithMaxCenterCoordinateDistance(maxDistance unsafe.Pointer) *MapCameraZoomRange

NewMapCameraZoomRangeWithMaxCenterCoordinateDistance creates a new MapCameraZoomRange.

func NewMapCameraZoomRangeWithMinCenterCoordinateDistance added in v0.17.0

func NewMapCameraZoomRangeWithMinCenterCoordinateDistance(minDistance unsafe.Pointer) *MapCameraZoomRange

NewMapCameraZoomRangeWithMinCenterCoordinateDistance creates a new MapCameraZoomRange.

func NewMapCameraZoomRangeWithMinCenterCoordinateDistanceMaxCenterCoordinateDistance added in v0.17.0

func NewMapCameraZoomRangeWithMinCenterCoordinateDistanceMaxCenterCoordinateDistance(minDistance unsafe.Pointer, maxDistance unsafe.Pointer) *MapCameraZoomRange

NewMapCameraZoomRangeWithMinCenterCoordinateDistanceMaxCenterCoordinateDistance creates a new MapCameraZoomRange.

func (*MapCameraZoomRange) Description added in v0.17.0

func (mczr *MapCameraZoomRange) Description() string

Description returns the object's -description text.

func (*MapCameraZoomRange) IsEqual added in v0.17.0

func (mczr *MapCameraZoomRange) IsEqual(other obj.Object) bool

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

func (*MapCameraZoomRange) IsKind added in v0.17.0

func (mczr *MapCameraZoomRange) IsKind(className string) bool

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

func (*MapCameraZoomRange) MaxCenterCoordinateDistance added in v0.18.0

func (mczr *MapCameraZoomRange) MaxCenterCoordinateDistance() unsafe.Pointer

MaxCenterCoordinateDistance returns the max center coordinate distance.

func (*MapCameraZoomRange) MinCenterCoordinateDistance added in v0.18.0

func (mczr *MapCameraZoomRange) MinCenterCoordinateDistance() unsafe.Pointer

MinCenterCoordinateDistance returns the min center coordinate distance.

func (*MapCameraZoomRange) String added in v0.17.0

func (mczr *MapCameraZoomRange) String() string

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

type MapConfiguration added in v0.17.0

type MapConfiguration struct {
	objref.Handle
}

MapConfiguration is an idiomatic wrapper over the Objective-C class MKMapConfiguration.

MapConfiguration is an abstract base — you do not construct it directly. Construct one of HybridMapConfiguration, ImageryMapConfiguration, StandardMapConfiguration and pass it where a MapConfiguration is accepted.

An abstract class that represents the shared elements of map configurations.

func MapConfigurationFromID added in v0.17.0

func MapConfigurationFromID(id objc.ID) *MapConfiguration

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

func (*MapConfiguration) Description added in v0.17.0

func (mc *MapConfiguration) Description() string

Description returns the object's -description text.

func (*MapConfiguration) ElevationStyle added in v0.17.0

func (mc *MapConfiguration) ElevationStyle() MapElevationStyle

ElevationStyle returns the elevation style.

func (*MapConfiguration) IsEqual added in v0.17.0

func (mc *MapConfiguration) IsEqual(other obj.Object) bool

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

func (*MapConfiguration) IsKind added in v0.17.0

func (mc *MapConfiguration) IsKind(className string) bool

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

func (*MapConfiguration) String added in v0.17.0

func (mc *MapConfiguration) String() string

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

func (*MapConfiguration) WithElevationStyle added in v0.17.0

func (mc *MapConfiguration) WithElevationStyle(elevationStyle MapElevationStyle) *MapConfiguration

WithElevationStyle sets the value that indicates the map’s elevation style.

type MapConfigurationProvider added in v0.17.0

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

MapConfigurationProvider is accepted wherever a MKMapConfiguration (or one of its subclasses) is expected.

type MapElevationStyle added in v0.17.0

type MapElevationStyle int64

Values that control the map’s elevation style.

const (
	MapElevationStyleFlat      MapElevationStyle = 0
	MapElevationStyleRealistic MapElevationStyle = 1
)

func (MapElevationStyle) String added in v0.17.0

func (e MapElevationStyle) String() string

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

type MapItem added in v0.17.0

type MapItem struct {
	objref.Handle
}

MapItem is an idiomatic wrapper over the Objective-C class MKMapItem.

A point of interest on the map.

func MapItemForCurrentLocation added in v0.17.0

func MapItemForCurrentLocation() *MapItem

MapItemForCurrentLocation creates and returns a singleton map item object representing the user’s location.

func MapItemFromID added in v0.17.0

func MapItemFromID(id objc.ID) *MapItem

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

func NewMapItemWithLocationAddress added in v0.17.0

func NewMapItemWithLocationAddress(location unsafe.Pointer, address *Address) *MapItem

NewMapItemWithLocationAddress creates and returns a map item object using the specified location and address objects.

func NewMapItemWithPlacemark added in v0.17.0

func NewMapItemWithPlacemark(placemark *Placemark) *MapItem

NewMapItemWithPlacemark creates and returns a map item object using the specified placemark object.

func (*MapItem) Address added in v0.17.0

func (mi *MapItem) Address() *Address

Address returns the address.

func (*MapItem) AddressRepresentations added in v0.17.0

func (mi *MapItem) AddressRepresentations() *AddressRepresentations

AddressRepresentations returns the address representations.

func (*MapItem) AlternateIdentifiers added in v0.17.0

func (mi *MapItem) AlternateIdentifiers() []*MapItemIdentifier

AlternateIdentifiers returns the order of the returned elements is unspecified.

func (*MapItem) Description added in v0.17.0

func (mi *MapItem) Description() string

Description returns the object's -description text.

func (*MapItem) Identifier added in v0.17.0

func (mi *MapItem) Identifier() *MapItemIdentifier

Identifier returns the identifier.

func (*MapItem) IsCurrentLocation added in v0.17.0

func (mi *MapItem) IsCurrentLocation() bool

IsCurrentLocation reports whether the object is current location.

func (*MapItem) IsEqual added in v0.17.0

func (mi *MapItem) IsEqual(other obj.Object) bool

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

func (*MapItem) IsKind added in v0.17.0

func (mi *MapItem) IsKind(className string) bool

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

func (*MapItem) Location added in v0.18.0

func (mi *MapItem) Location() unsafe.Pointer

Location returns the location.

func (*MapItem) Name added in v0.17.0

func (mi *MapItem) Name() string

Name returns the name.

func (*MapItem) OpenInMapsWithLaunchOptions added in v0.17.0

func (mi *MapItem) OpenInMapsWithLaunchOptions(launchOptions map[string]obj.Object) bool

OpenInMapsWithLaunchOptions opens the Maps app and displays the map item.

func (*MapItem) OpenInMapsWithLaunchOptionsCompletionHandler added in v0.17.0

func (mi *MapItem) OpenInMapsWithLaunchOptionsCompletionHandler(launchOptions map[string]obj.Object, completion func(bool))

OpenInMapsWithLaunchOptionsCompletionHandler opens the Maps app and displays the map item.

func (*MapItem) PhoneNumber added in v0.17.0

func (mi *MapItem) PhoneNumber() string

PhoneNumber returns the phone number.

func (*MapItem) Placemark added in v0.17.0

func (mi *MapItem) Placemark() *Placemark

Placemark returns the placemark.

func (*MapItem) PointOfInterestCategory added in v0.17.0

func (mi *MapItem) PointOfInterestCategory() *foundation.String

PointOfInterestCategory returns the point of interest category.

func (*MapItem) String added in v0.17.0

func (mi *MapItem) String() string

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

func (*MapItem) TimeZone added in v0.17.0

func (mi *MapItem) TimeZone() *foundation.TimeZone

TimeZone returns the time zone.

func (*MapItem) URL added in v0.17.0

func (mi *MapItem) URL() string

URL returns the URL.

func (*MapItem) WithName added in v0.17.0

func (mi *MapItem) WithName(name string) *MapItem

WithName sets the descriptive name associated with the map item.

func (*MapItem) WithPhoneNumber added in v0.17.0

func (mi *MapItem) WithPhoneNumber(phoneNumber string) *MapItem

WithPhoneNumber sets the phone number associated with a business at the specified location.

func (*MapItem) WithPointOfInterestCategory added in v0.17.0

func (mi *MapItem) WithPointOfInterestCategory(pointOfInterestCategory obj.Object) *MapItem

WithPointOfInterestCategory sets the point-of-interest category for the map item.

func (*MapItem) WithTimeZone added in v0.17.0

func (mi *MapItem) WithTimeZone(timeZone obj.Object) *MapItem

WithTimeZone sets the time zone of the specified location.

func (*MapItem) WithURL added in v0.17.0

func (mi *MapItem) WithURL(url string) *MapItem

WithURL sets the URL associated with the specified location.

type MapItemAnnotation added in v0.17.0

type MapItemAnnotation struct {
	objref.Handle
}

MapItemAnnotation is an idiomatic wrapper over the Objective-C class MKMapItemAnnotation.

An annotation that represents a map item

func MapItemAnnotationFromID added in v0.17.0

func MapItemAnnotationFromID(id objc.ID) *MapItemAnnotation

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

func NewMapItemAnnotationWithMapItem added in v0.17.0

func NewMapItemAnnotationWithMapItem(mapItem *MapItem) *MapItemAnnotation

NewMapItemAnnotationWithMapItem creates a map item annotation

func (*MapItemAnnotation) Description added in v0.17.0

func (mia *MapItemAnnotation) Description() string

Description returns the object's -description text.

func (*MapItemAnnotation) IsEqual added in v0.17.0

func (mia *MapItemAnnotation) IsEqual(other obj.Object) bool

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

func (*MapItemAnnotation) IsKind added in v0.17.0

func (mia *MapItemAnnotation) IsKind(className string) bool

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

func (*MapItemAnnotation) MapItem added in v0.17.0

func (mia *MapItemAnnotation) MapItem() *MapItem

MapItem returns the map item.

func (*MapItemAnnotation) String added in v0.17.0

func (mia *MapItemAnnotation) String() string

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

type MapItemDetailSelectionAccessoryCalloutStyle added in v0.17.0

type MapItemDetailSelectionAccessoryCalloutStyle int64

The style to use for a map item detail callout presentation.

const (
	MapItemDetailSelectionAccessoryCalloutStyleAutomatic MapItemDetailSelectionAccessoryCalloutStyle = 0
	MapItemDetailSelectionAccessoryCalloutStyleFull      MapItemDetailSelectionAccessoryCalloutStyle = 1
	MapItemDetailSelectionAccessoryCalloutStyleCompact   MapItemDetailSelectionAccessoryCalloutStyle = 2
)

func (MapItemDetailSelectionAccessoryCalloutStyle) String added in v0.17.0

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

type MapItemDetailSelectionAccessoryPresentationStyle added in v0.17.0

type MapItemDetailSelectionAccessoryPresentationStyle struct {
	objref.Handle
}

MapItemDetailSelectionAccessoryPresentationStyle is an idiomatic wrapper over the Objective-C class MKMapItemDetailSelectionAccessoryPresentationStyle.

The type of map item detail accessory presentation to use.

func AutomaticWithPresentationViewController added in v0.17.0

func AutomaticWithPresentationViewController(presentationViewController obj.Object) *MapItemDetailSelectionAccessoryPresentationStyle

AutomaticWithPresentationViewController an appropriate presentation style will be chosen automatically.

func Callout added in v0.17.0

Callout returns the callout.

func CalloutWithCalloutStyle added in v0.17.0

CalloutWithCalloutStyle show map item detail as an annotation callout on the map

func MapItemDetailSelectionAccessoryPresentationStyleFromID added in v0.17.0

func MapItemDetailSelectionAccessoryPresentationStyleFromID(id objc.ID) *MapItemDetailSelectionAccessoryPresentationStyle

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

func NewMapItemDetailSelectionAccessoryPresentationStyle added in v0.17.0

func NewMapItemDetailSelectionAccessoryPresentationStyle() *MapItemDetailSelectionAccessoryPresentationStyle

NewMapItemDetailSelectionAccessoryPresentationStyle creates a new MapItemDetailSelectionAccessoryPresentationStyle.

func OpenInMaps added in v0.17.0

OpenInMaps returns the open in maps.

func SheetPresentedFromViewController added in v0.17.0

func SheetPresentedFromViewController(viewController obj.Object) *MapItemDetailSelectionAccessoryPresentationStyle

SheetPresentedFromViewController wraps the corresponding Objective-C method.

func (*MapItemDetailSelectionAccessoryPresentationStyle) Description added in v0.17.0

Description returns the object's -description text.

func (*MapItemDetailSelectionAccessoryPresentationStyle) IsEqual added in v0.17.0

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

func (*MapItemDetailSelectionAccessoryPresentationStyle) IsKind added in v0.17.0

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

func (*MapItemDetailSelectionAccessoryPresentationStyle) String added in v0.17.0

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

type MapItemDetailViewController added in v0.17.0

type MapItemDetailViewController struct {
	objref.Handle
}

MapItemDetailViewController is an idiomatic wrapper over the Objective-C class MKMapItemDetailViewController.

An object that displays detailed information about a map item.

func MapItemDetailViewControllerFromID added in v0.17.0

func MapItemDetailViewControllerFromID(id objc.ID) *MapItemDetailViewController

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

func NewMapItemDetailViewControllerWithMapItem added in v0.17.0

func NewMapItemDetailViewControllerWithMapItem(mapItem *MapItem) *MapItemDetailViewController

NewMapItemDetailViewControllerWithMapItem create a map item detail view controller.

func NewMapItemDetailViewControllerWithMapItemDisplaysMap added in v0.17.0

func NewMapItemDetailViewControllerWithMapItemDisplaysMap(mapItem *MapItem, displaysMap bool) *MapItemDetailViewController

NewMapItemDetailViewControllerWithMapItemDisplaysMap create a map item detail view controller

func (*MapItemDetailViewController) Description added in v0.17.0

func (midvc *MapItemDetailViewController) Description() string

Description returns the object's -description text.

func (*MapItemDetailViewController) IsEqual added in v0.17.0

func (midvc *MapItemDetailViewController) IsEqual(other obj.Object) bool

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

func (*MapItemDetailViewController) IsKind added in v0.17.0

func (midvc *MapItemDetailViewController) IsKind(className string) bool

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

func (*MapItemDetailViewController) MapItem added in v0.17.0

func (midvc *MapItemDetailViewController) MapItem() *MapItem

MapItem returns the map item.

func (*MapItemDetailViewController) String added in v0.17.0

func (midvc *MapItemDetailViewController) String() string

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

func (*MapItemDetailViewController) WithDelegate added in v0.17.0

WithDelegate sets the map item detail view controller’s delegate.

func (*MapItemDetailViewController) WithMapItem added in v0.17.0

func (midvc *MapItemDetailViewController) WithMapItem(mapItem *MapItem) *MapItemDetailViewController

WithMapItem sets the map item to display.

type MapItemDetailViewControllerDelegate added in v0.17.0

type MapItemDetailViewControllerDelegate interface {
	// MapItemDetailViewControllerDidFinish wraps the corresponding Objective-C method.
	MapItemDetailViewControllerDidFinish(detailViewController *MapItemDetailViewController)
}

MapItemDetailViewControllerDelegate receives the callbacks of the Objective-C protocol MKMapItemDetailViewControllerDelegate. 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 (MapItemDetailViewControllerDelegate…Handler): implement the ones you need on the same value and the framework will call them too.

type MapItemIdentifier added in v0.17.0

type MapItemIdentifier struct {
	objref.Handle
}

MapItemIdentifier is an idiomatic wrapper over the Objective-C class MKMapItemIdentifier.

A unique identifier for a place.

func MapItemIdentifierFromID added in v0.17.0

func MapItemIdentifierFromID(id objc.ID) *MapItemIdentifier

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

func NewMapItemIdentifierWithIdentifierString added in v0.17.0

func NewMapItemIdentifierWithIdentifierString(str string) *MapItemIdentifier

NewMapItemIdentifierWithIdentifierString creates a new MapItemIdentifier.

func (*MapItemIdentifier) Description added in v0.17.0

func (mii *MapItemIdentifier) Description() string

Description returns the object's -description text.

func (*MapItemIdentifier) IdentifierString added in v0.17.0

func (mii *MapItemIdentifier) IdentifierString() string

IdentifierString returns the identifier string.

func (*MapItemIdentifier) IsEqual added in v0.17.0

func (mii *MapItemIdentifier) IsEqual(other obj.Object) bool

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

func (*MapItemIdentifier) IsKind added in v0.17.0

func (mii *MapItemIdentifier) IsKind(className string) bool

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

func (*MapItemIdentifier) String added in v0.17.0

func (mii *MapItemIdentifier) String() string

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

type MapItemRequest added in v0.17.0

type MapItemRequest struct {
	objref.Handle
}

MapItemRequest is an idiomatic wrapper over the Objective-C class MKMapItemRequest.

A utility class you use to request additional information about a map feature.

func MapItemRequestFromID added in v0.17.0

func MapItemRequestFromID(id objc.ID) *MapItemRequest

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

func NewMapItemRequestWithMapItemIdentifier added in v0.17.0

func NewMapItemRequestWithMapItemIdentifier(identifier *MapItemIdentifier) *MapItemRequest

NewMapItemRequestWithMapItemIdentifier create a request with a map item identifier.

func (*MapItemRequest) Description added in v0.17.0

func (mir *MapItemRequest) Description() string

Description returns the object's -description text.

func (*MapItemRequest) IsEqual added in v0.17.0

func (mir *MapItemRequest) IsEqual(other obj.Object) bool

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

func (*MapItemRequest) IsKind added in v0.17.0

func (mir *MapItemRequest) IsKind(className string) bool

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

func (*MapItemRequest) MapItemIdentifier added in v0.17.0

func (mir *MapItemRequest) MapItemIdentifier() *MapItemIdentifier

MapItemIdentifier returns the map item identifier.

func (*MapItemRequest) String added in v0.17.0

func (mir *MapItemRequest) String() string

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

type MapSnapshot added in v0.17.0

type MapSnapshot struct {
	objref.Handle
}

MapSnapshot is an idiomatic wrapper over the Objective-C class MKMapSnapshot.

An image that a snapshotter object generates.

func MapSnapshotFromID added in v0.17.0

func MapSnapshotFromID(id objc.ID) *MapSnapshot

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

func NewMapSnapshot added in v0.17.0

func NewMapSnapshot() *MapSnapshot

NewMapSnapshot creates a new MapSnapshot.

func (*MapSnapshot) Appearance added in v0.17.0

func (ms *MapSnapshot) Appearance() obj.Object

Appearance returns the appearance.

func (*MapSnapshot) Description added in v0.17.0

func (ms *MapSnapshot) Description() string

Description returns the object's -description text.

func (*MapSnapshot) IsEqual added in v0.17.0

func (ms *MapSnapshot) IsEqual(other obj.Object) bool

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

func (*MapSnapshot) IsKind added in v0.17.0

func (ms *MapSnapshot) IsKind(className string) bool

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

func (*MapSnapshot) PointForCoordinate added in v0.17.0

func (ms *MapSnapshot) PointForCoordinate(coordinate unsafe.Pointer) corefoundation.CGPoint

PointForCoordinate wraps the corresponding Objective-C method.

func (*MapSnapshot) String added in v0.17.0

func (ms *MapSnapshot) String() string

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

type MapSnapshotOptions added in v0.17.0

type MapSnapshotOptions struct {
	objref.Handle
}

MapSnapshotOptions is an idiomatic wrapper over the Objective-C class MKMapSnapshotOptions.

The options the snapshotter initializer uses to create a snapshotter to capture map-based imagery.

func MapSnapshotOptionsFromID added in v0.17.0

func MapSnapshotOptionsFromID(id objc.ID) *MapSnapshotOptions

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

func NewMapSnapshotOptions added in v0.17.0

func NewMapSnapshotOptions() *MapSnapshotOptions

NewMapSnapshotOptions creates a new MapSnapshotOptions.

func (*MapSnapshotOptions) Appearance added in v0.17.0

func (mso *MapSnapshotOptions) Appearance() obj.Object

Appearance returns the appearance.

func (*MapSnapshotOptions) Camera added in v0.17.0

func (mso *MapSnapshotOptions) Camera() *MapCamera

Camera returns the camera.

func (*MapSnapshotOptions) Description added in v0.17.0

func (mso *MapSnapshotOptions) Description() string

Description returns the object's -description text.

func (*MapSnapshotOptions) IsEqual added in v0.17.0

func (mso *MapSnapshotOptions) IsEqual(other obj.Object) bool

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

func (*MapSnapshotOptions) IsKind added in v0.17.0

func (mso *MapSnapshotOptions) IsKind(className string) bool

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

func (*MapSnapshotOptions) MapRect added in v0.18.1

func (mso *MapSnapshotOptions) MapRect() MKMapRect

MapRect returns the map rect.

func (*MapSnapshotOptions) MapType added in v0.17.0

func (mso *MapSnapshotOptions) MapType() MapType

MapType returns the map type.

func (*MapSnapshotOptions) PointOfInterestFilter added in v0.17.0

func (mso *MapSnapshotOptions) PointOfInterestFilter() *PointOfInterestFilter

PointOfInterestFilter returns the point of interest filter.

func (*MapSnapshotOptions) PreferredConfiguration added in v0.17.0

func (mso *MapSnapshotOptions) PreferredConfiguration() *MapConfiguration

PreferredConfiguration returns the preferred configuration.

func (*MapSnapshotOptions) ShowsBuildings added in v0.17.0

func (mso *MapSnapshotOptions) ShowsBuildings() bool

ShowsBuildings wraps the corresponding Objective-C method.

func (*MapSnapshotOptions) ShowsPointsOfInterest added in v0.17.0

func (mso *MapSnapshotOptions) ShowsPointsOfInterest() bool

ShowsPointsOfInterest wraps the corresponding Objective-C method.

func (*MapSnapshotOptions) Size added in v0.17.0

Size returns the size.

func (*MapSnapshotOptions) String added in v0.17.0

func (mso *MapSnapshotOptions) String() string

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

func (*MapSnapshotOptions) WithAppearance added in v0.17.0

func (mso *MapSnapshotOptions) WithAppearance(appearance obj.Object) *MapSnapshotOptions

WithAppearance sets the appearance.

func (*MapSnapshotOptions) WithCamera added in v0.17.0

func (mso *MapSnapshotOptions) WithCamera(camera *MapCamera) *MapSnapshotOptions

WithCamera sets the camera.

func (*MapSnapshotOptions) WithMapRect added in v0.18.1

func (mso *MapSnapshotOptions) WithMapRect(mapRect MKMapRect) *MapSnapshotOptions

WithMapRect sets the map rect.

func (*MapSnapshotOptions) WithMapType added in v0.17.0

func (mso *MapSnapshotOptions) WithMapType(mapType MapType) *MapSnapshotOptions

WithMapType sets the map type.

func (*MapSnapshotOptions) WithPointOfInterestFilter added in v0.17.0

func (mso *MapSnapshotOptions) WithPointOfInterestFilter(pointOfInterestFilter *PointOfInterestFilter) *MapSnapshotOptions

WithPointOfInterestFilter sets the point of interest filter.

func (*MapSnapshotOptions) WithPreferredConfiguration added in v0.17.0

func (mso *MapSnapshotOptions) WithPreferredConfiguration(preferredConfiguration MapConfigurationProvider) *MapSnapshotOptions

WithPreferredConfiguration sets the preferred configuration.

func (*MapSnapshotOptions) WithShowsBuildings added in v0.17.0

func (mso *MapSnapshotOptions) WithShowsBuildings(showsBuildings bool) *MapSnapshotOptions

WithShowsBuildings sets the shows buildings.

func (*MapSnapshotOptions) WithShowsPointsOfInterest added in v0.17.0

func (mso *MapSnapshotOptions) WithShowsPointsOfInterest(showsPointsOfInterest bool) *MapSnapshotOptions

WithShowsPointsOfInterest sets the shows points of interest.

func (*MapSnapshotOptions) WithSize added in v0.17.0

WithSize sets the size.

type MapSnapshotter added in v0.17.0

type MapSnapshotter struct {
	objref.Handle
}

MapSnapshotter is an idiomatic wrapper over the Objective-C class MKMapSnapshotter.

A utility class for capturing a map and its content into an image.

func MapSnapshotterFromID added in v0.17.0

func MapSnapshotterFromID(id objc.ID) *MapSnapshotter

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

func NewMapSnapshotterWithOptions added in v0.17.0

func NewMapSnapshotterWithOptions(options *MapSnapshotOptions) *MapSnapshotter

NewMapSnapshotterWithOptions creates and returns a snapshotter object based on the specified options.

func (*MapSnapshotter) Cancel added in v0.17.0

func (ms *MapSnapshotter) Cancel()

Cancel cancels the request to create a snapshot.

func (*MapSnapshotter) Description added in v0.17.0

func (ms *MapSnapshotter) Description() string

Description returns the object's -description text.

func (*MapSnapshotter) IsEqual added in v0.17.0

func (ms *MapSnapshotter) IsEqual(other obj.Object) bool

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

func (*MapSnapshotter) IsKind added in v0.17.0

func (ms *MapSnapshotter) IsKind(className string) bool

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

func (*MapSnapshotter) IsLoading added in v0.17.0

func (ms *MapSnapshotter) IsLoading() bool

IsLoading reports whether the object is loading.

func (*MapSnapshotter) StartWithCompletionHandler added in v0.18.0

func (ms *MapSnapshotter) StartWithCompletionHandler(completionHandler func(obj.Object, unsafe.Pointer))

StartWithCompletionHandler submits the request to create a snapshot and delivers the results to the specified block.

func (*MapSnapshotter) StartWithQueueCompletionHandler added in v0.18.0

func (ms *MapSnapshotter) StartWithQueueCompletionHandler(queue dispatch.Queue, completionHandler func(obj.Object, unsafe.Pointer))

StartWithQueueCompletionHandler submits the request to create a snapshot and executes the resulting block on the specified queue.

func (*MapSnapshotter) String added in v0.17.0

func (ms *MapSnapshotter) String() string

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

type MapType added in v0.17.0

type MapType uint64

The type of map to display.

const (
	// A street map that shows the position of all roads and some road names.
	MapTypeStandard MapType = 0
	// Satellite imagery of the area.
	MapTypeSatellite MapType = 1
	// A satellite image of the area with road and road name information layered on top.
	MapTypeHybrid MapType = 2
	// A satellite image of the area with flyover data where available.
	MapTypeSatelliteFlyover MapType = 3
	// A hybrid satellite image with flyover data where available.
	MapTypeHybridFlyover MapType = 4
	// A street map where MapKit emphasizes your data over the underlying map details.
	MapTypeMutedStandard MapType = 5
)

func (MapType) String added in v0.17.0

func (e MapType) String() string

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

type MapView added in v0.17.0

type MapView struct {
	objref.Handle
}

MapView is an idiomatic wrapper over the Objective-C class MKMapView.

An embeddable map interface, similar to the one that the Maps app provides.

func MapViewFromID added in v0.17.0

func MapViewFromID(id objc.ID) *MapView

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

func NewMapView added in v0.17.0

func NewMapView() *MapView

NewMapView creates a new MapView.

func (*MapView) AddAnnotations added in v0.17.0

func (mv *MapView) AddAnnotations(annotations []obj.Object)

AddAnnotations adds an array of annotation objects to the map view.

func (*MapView) AddOverlays added in v0.17.0

func (mv *MapView) AddOverlays(overlays []obj.Object)

AddOverlays adds an array of overlay objects to the map.

func (*MapView) AddOverlaysLevel added in v0.17.0

func (mv *MapView) AddOverlaysLevel(overlays []obj.Object, level OverlayLevel)

AddOverlaysLevel adds an array of overlay objects to the map at the specified level.

func (*MapView) AnnotationVisibleRect added in v0.17.0

func (mv *MapView) AnnotationVisibleRect() corefoundation.CGRect

AnnotationVisibleRect returns the annotation visible rect.

func (*MapView) Annotations added in v0.17.0

func (mv *MapView) Annotations() []obj.Object

Annotations returns the annotations.

func (*MapView) AnnotationsInMapRect added in v0.18.1

func (mv *MapView) AnnotationsInMapRect(mapRect MKMapRect) []obj.Object

AnnotationsInMapRect returns the annotation objects within the specified map rectangle. The order of the returned elements is unspecified.

func (*MapView) Camera added in v0.17.0

func (mv *MapView) Camera() *MapCamera

Camera returns the camera.

func (*MapView) CameraBoundary added in v0.17.0

func (mv *MapView) CameraBoundary() *MapCameraBoundary

CameraBoundary returns the camera boundary.

func (*MapView) CameraZoomRange added in v0.17.0

func (mv *MapView) CameraZoomRange() *MapCameraZoomRange

CameraZoomRange returns the camera zoom range.

func (*MapView) CenterCoordinate added in v0.18.0

func (mv *MapView) CenterCoordinate() unsafe.Pointer

CenterCoordinate returns the center coordinate.

func (*MapView) ConvertCoordinateToPointToView added in v0.17.0

func (mv *MapView) ConvertCoordinateToPointToView(coordinate unsafe.Pointer, view obj.Object) corefoundation.CGPoint

ConvertCoordinateToPointToView converts a map coordinate to a point in the specified view.

func (*MapView) ConvertPointToCoordinateFromView added in v0.18.0

func (mv *MapView) ConvertPointToCoordinateFromView(point corefoundation.CGPoint, view obj.Object) unsafe.Pointer

ConvertPointToCoordinateFromView converts a point in the specified view’s coordinate system to a map coordinate.

func (*MapView) DequeueReusableAnnotationViewWithIdentifier added in v0.17.0

func (mv *MapView) DequeueReusableAnnotationViewWithIdentifier(identifier string) *AnnotationView

DequeueReusableAnnotationViewWithIdentifier returns a reusable annotation view using its identifier.

func (*MapView) Description added in v0.17.0

func (mv *MapView) Description() string

Description returns the object's -description text.

func (*MapView) ExchangeOverlayAtIndexWithOverlayAtIndex added in v0.17.0

func (mv *MapView) ExchangeOverlayAtIndexWithOverlayAtIndex(index1 int, index2 int)

ExchangeOverlayAtIndexWithOverlayAtIndex exchanges the position of two overlay objects at the specified index.

func (*MapView) IsEqual added in v0.17.0

func (mv *MapView) IsEqual(other obj.Object) bool

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

func (*MapView) IsKind added in v0.17.0

func (mv *MapView) IsKind(className string) bool

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

func (*MapView) IsPitchEnabled added in v0.17.0

func (mv *MapView) IsPitchEnabled() bool

IsPitchEnabled reports whether the object is pitch enabled.

func (*MapView) IsRotateEnabled added in v0.17.0

func (mv *MapView) IsRotateEnabled() bool

IsRotateEnabled reports whether the object is rotate enabled.

func (*MapView) IsScrollEnabled added in v0.17.0

func (mv *MapView) IsScrollEnabled() bool

IsScrollEnabled reports whether the object is scroll enabled.

func (*MapView) IsUserLocationVisible added in v0.17.0

func (mv *MapView) IsUserLocationVisible() bool

IsUserLocationVisible reports whether the object is user location visible.

func (*MapView) IsZoomEnabled added in v0.17.0

func (mv *MapView) IsZoomEnabled() bool

IsZoomEnabled reports whether the object is zoom enabled.

func (*MapView) MapRectThatFits added in v0.18.1

func (mv *MapView) MapRectThatFits(mapRect MKMapRect) MKMapRect

MapRectThatFits returns a centered map rectangle with the same aspect ratio as the map view’s frame.

func (*MapView) MapRectThatFitsEdgePadding added in v0.18.1

func (mv *MapView) MapRectThatFitsEdgePadding(mapRect MKMapRect, insets foundation.NSEdgeInsets) MKMapRect

MapRectThatFitsEdgePadding returns a centered, inset map rectangle with the same aspect ratio as the map view’s frame.

func (*MapView) MapType added in v0.17.0

func (mv *MapView) MapType() MapType

MapType returns the map type.

func (*MapView) Overlays added in v0.17.0

func (mv *MapView) Overlays() []obj.Object

Overlays returns the overlays.

func (*MapView) OverlaysInLevel added in v0.17.0

func (mv *MapView) OverlaysInLevel(level OverlayLevel) []obj.Object

OverlaysInLevel returns overlay objects in the specified level of the map.

func (*MapView) PitchButtonVisibility added in v0.17.0

func (mv *MapView) PitchButtonVisibility() FeatureVisibility

PitchButtonVisibility returns the pitch button visibility.

func (*MapView) PointOfInterestFilter added in v0.17.0

func (mv *MapView) PointOfInterestFilter() *PointOfInterestFilter

PointOfInterestFilter returns the point of interest filter.

func (*MapView) PreferredConfiguration added in v0.17.0

func (mv *MapView) PreferredConfiguration() *MapConfiguration

PreferredConfiguration returns the preferred configuration.

func (*MapView) RemoveAnnotations added in v0.17.0

func (mv *MapView) RemoveAnnotations(annotations []obj.Object)

RemoveAnnotations removes an array of annotation objects from the map view.

func (*MapView) RemoveOverlays added in v0.17.0

func (mv *MapView) RemoveOverlays(overlays []obj.Object)

RemoveOverlays removes one or more overlay objects from the map.

func (*MapView) SelectedAnnotations added in v0.17.0

func (mv *MapView) SelectedAnnotations() []obj.Object

SelectedAnnotations returns the selected annotations.

func (*MapView) SetCameraAnimated added in v0.17.0

func (mv *MapView) SetCameraAnimated(camera *MapCamera, animated bool)

SetCameraAnimated changes the camera to use for determining the map’s viewing parameters, and optionally animates the change.

func (*MapView) SetCameraBoundaryAnimated added in v0.17.0

func (mv *MapView) SetCameraBoundaryAnimated(cameraBoundary *MapCameraBoundary, animated bool)

SetCameraBoundaryAnimated sets the camera boundary for the map view, specifying whether to use animation.

func (*MapView) SetCameraZoomRangeAnimated added in v0.17.0

func (mv *MapView) SetCameraZoomRangeAnimated(cameraZoomRange *MapCameraZoomRange, animated bool)

SetCameraZoomRangeAnimated sets the camera zoom range for the map view, specifying whether to use animation.

func (*MapView) SetCenterCoordinateAnimated added in v0.17.0

func (mv *MapView) SetCenterCoordinateAnimated(coordinate unsafe.Pointer, animated bool)

SetCenterCoordinateAnimated changes the center coordinate of the map, and optionally animates the change.

func (*MapView) SetSelectedAnnotations added in v0.17.0

func (mv *MapView) SetSelectedAnnotations(selectedAnnotations []obj.Object)

SetSelectedAnnotations wraps the corresponding Objective-C method.

func (*MapView) SetUserTrackingModeAnimated added in v0.17.0

func (mv *MapView) SetUserTrackingModeAnimated(mode UserTrackingMode, animated bool)

SetUserTrackingModeAnimated sets the mode to use for tracking the user’s location, with optional animation.

func (*MapView) SetVisibleMapRectAnimated added in v0.18.1

func (mv *MapView) SetVisibleMapRectAnimated(mapRect MKMapRect, animate bool)

SetVisibleMapRectAnimated changes the currently visible portion of the map, and optionally animates the change.

func (*MapView) SetVisibleMapRectEdgePaddingAnimated added in v0.18.1

func (mv *MapView) SetVisibleMapRectEdgePaddingAnimated(mapRect MKMapRect, insets foundation.NSEdgeInsets, animate bool)

SetVisibleMapRectEdgePaddingAnimated changes the currently visible portion of the map, allowing you to specify additional space around the edges.

func (*MapView) ShowAnnotationsAnimated added in v0.17.0

func (mv *MapView) ShowAnnotationsAnimated(annotations []obj.Object, animated bool)

ShowAnnotationsAnimated sets the visible region so that the map displays the specified annotations.

func (*MapView) ShowsBuildings added in v0.17.0

func (mv *MapView) ShowsBuildings() bool

ShowsBuildings wraps the corresponding Objective-C method.

func (*MapView) ShowsCompass added in v0.17.0

func (mv *MapView) ShowsCompass() bool

ShowsCompass wraps the corresponding Objective-C method.

func (*MapView) ShowsPitchControl added in v0.17.0

func (mv *MapView) ShowsPitchControl() bool

ShowsPitchControl wraps the corresponding Objective-C method.

func (*MapView) ShowsPointsOfInterest added in v0.17.0

func (mv *MapView) ShowsPointsOfInterest() bool

ShowsPointsOfInterest wraps the corresponding Objective-C method.

func (*MapView) ShowsScale added in v0.17.0

func (mv *MapView) ShowsScale() bool

ShowsScale wraps the corresponding Objective-C method.

func (*MapView) ShowsTraffic added in v0.17.0

func (mv *MapView) ShowsTraffic() bool

ShowsTraffic wraps the corresponding Objective-C method.

func (*MapView) ShowsUserLocation added in v0.17.0

func (mv *MapView) ShowsUserLocation() bool

ShowsUserLocation wraps the corresponding Objective-C method.

func (*MapView) ShowsUserTrackingButton added in v0.17.0

func (mv *MapView) ShowsUserTrackingButton() bool

ShowsUserTrackingButton wraps the corresponding Objective-C method.

func (*MapView) ShowsZoomControls added in v0.17.0

func (mv *MapView) ShowsZoomControls() bool

ShowsZoomControls wraps the corresponding Objective-C method.

func (*MapView) String added in v0.17.0

func (mv *MapView) String() string

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

func (*MapView) UserLocation added in v0.17.0

func (mv *MapView) UserLocation() *UserLocation

UserLocation returns the user location.

func (*MapView) UserTrackingMode added in v0.17.0

func (mv *MapView) UserTrackingMode() UserTrackingMode

UserTrackingMode returns the user tracking mode.

func (*MapView) VisibleMapRect added in v0.18.1

func (mv *MapView) VisibleMapRect() MKMapRect

VisibleMapRect returns the visible map rect.

func (*MapView) WithCamera added in v0.17.0

func (mv *MapView) WithCamera(camera *MapCamera) *MapView

WithCamera sets the camera to use for determining the appearance of the map.

func (*MapView) WithCameraBoundary added in v0.17.0

func (mv *MapView) WithCameraBoundary(cameraBoundary *MapCameraBoundary) *MapView

WithCameraBoundary sets the boundary of the area within which the map view’s center needs to remain.

func (*MapView) WithCameraZoomRange added in v0.17.0

func (mv *MapView) WithCameraZoomRange(cameraZoomRange *MapCameraZoomRange) *MapView

WithCameraZoomRange sets the zoom range to apply to the map view.

func (*MapView) WithCenterCoordinate added in v0.17.0

func (mv *MapView) WithCenterCoordinate(centerCoordinate unsafe.Pointer) *MapView

WithCenterCoordinate sets the map coordinate at the center of the map view.

func (*MapView) WithDelegate added in v0.17.0

func (mv *MapView) WithDelegate(delegate MapViewDelegate) *MapView

WithDelegate sets the receiver’s delegate.

func (*MapView) WithMapType added in v0.17.0

func (mv *MapView) WithMapType(mapType MapType) *MapView

WithMapType sets the type of data the map view displays.

func (*MapView) WithPitchButtonVisibility added in v0.17.0

func (mv *MapView) WithPitchButtonVisibility(pitchButtonVisibility FeatureVisibility) *MapView

WithPitchButtonVisibility sets a value that indicates whether the map’s pitch button is visible.

func (*MapView) WithPitchEnabled added in v0.17.0

func (mv *MapView) WithPitchEnabled(pitchEnabled bool) *MapView

WithPitchEnabled sets a Boolean value that indicates whether the map uses the camera’s pitch information.

func (*MapView) WithPointOfInterestFilter added in v0.17.0

func (mv *MapView) WithPointOfInterestFilter(pointOfInterestFilter *PointOfInterestFilter) *MapView

WithPointOfInterestFilter sets the filter to use for determining the points of interest that appear on the map.

func (*MapView) WithPreferredConfiguration added in v0.17.0

func (mv *MapView) WithPreferredConfiguration(preferredConfiguration MapConfigurationProvider) *MapView

WithPreferredConfiguration sets the characteristics of the map view, including the map type and features the map displays.

func (*MapView) WithRotateEnabled added in v0.17.0

func (mv *MapView) WithRotateEnabled(rotateEnabled bool) *MapView

WithRotateEnabled sets a Boolean value that indicates whether the map uses the camera’s heading information.

func (*MapView) WithScrollEnabled added in v0.17.0

func (mv *MapView) WithScrollEnabled(scrollEnabled bool) *MapView

WithScrollEnabled sets a Boolean value that determines whether the user may scroll around the map.

func (*MapView) WithShowsBuildings added in v0.17.0

func (mv *MapView) WithShowsBuildings(showsBuildings bool) *MapView

WithShowsBuildings sets a Boolean value that indicates whether the map displays extruded building information on supported map types.

func (*MapView) WithShowsCompass added in v0.17.0

func (mv *MapView) WithShowsCompass(showsCompass bool) *MapView

WithShowsCompass sets a Boolean value that indicates whether the map displays a compass control.

func (*MapView) WithShowsPitchControl added in v0.17.0

func (mv *MapView) WithShowsPitchControl(showsPitchControl bool) *MapView

WithShowsPitchControl sets a Boolean value that indicates whether the map displays the pitch control.

func (*MapView) WithShowsPointsOfInterest added in v0.17.0

func (mv *MapView) WithShowsPointsOfInterest(showsPointsOfInterest bool) *MapView

WithShowsPointsOfInterest sets a Boolean value that indicates whether the map displays point-of-interest information.

func (*MapView) WithShowsScale added in v0.17.0

func (mv *MapView) WithShowsScale(showsScale bool) *MapView

WithShowsScale sets a Boolean value that indicates whether the map shows scale information.

func (*MapView) WithShowsTraffic added in v0.17.0

func (mv *MapView) WithShowsTraffic(showsTraffic bool) *MapView

WithShowsTraffic sets a Boolean value that indicates whether the map displays traffic information.

func (*MapView) WithShowsUserLocation added in v0.17.0

func (mv *MapView) WithShowsUserLocation(showsUserLocation bool) *MapView

WithShowsUserLocation sets a Boolean value that indicates whether the map tries to display the user’s location.

func (*MapView) WithShowsUserTrackingButton added in v0.17.0

func (mv *MapView) WithShowsUserTrackingButton(showsUserTrackingButton bool) *MapView

WithShowsUserTrackingButton sets a Boolean value that indicates whether the map displays the user tracking button.

func (*MapView) WithShowsZoomControls added in v0.17.0

func (mv *MapView) WithShowsZoomControls(showsZoomControls bool) *MapView

WithShowsZoomControls sets a Boolean value that indicates whether the map displays zoom controls.

func (*MapView) WithUserTrackingMode added in v0.17.0

func (mv *MapView) WithUserTrackingMode(userTrackingMode UserTrackingMode) *MapView

WithUserTrackingMode sets the mode to use for tracking the user’s location.

func (*MapView) WithVisibleMapRect added in v0.18.1

func (mv *MapView) WithVisibleMapRect(visibleMapRect MKMapRect) *MapView

WithVisibleMapRect sets the area visible in the map view.

func (*MapView) WithZoomEnabled added in v0.17.0

func (mv *MapView) WithZoomEnabled(zoomEnabled bool) *MapView

WithZoomEnabled sets a Boolean value that determines whether the user may use pinch gestures to zoom in and out of the map.

type MapViewDelegate added in v0.17.0

type MapViewDelegate interface {
}

MapViewDelegate receives the callbacks of the Objective-C protocol MKMapViewDelegate. 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 (MapViewDelegate…Handler): implement the ones you need on the same value and the framework will call them too.

type MapViewDelegateMapViewAnnotationViewDidChangeDragStateFromOldStateHandler added in v0.17.0

type MapViewDelegateMapViewAnnotationViewDidChangeDragStateFromOldStateHandler interface {
	MapViewAnnotationViewDidChangeDragStateFromOldState(mapView *MapView, view *AnnotationView, newState AnnotationViewDragState, oldState AnnotationViewDragState)
}

MapViewDelegateMapViewAnnotationViewDidChangeDragStateFromOldStateHandler is the optional MKMapViewDelegate method mapView:annotationView:didChangeDragState:fromOldState:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewDidAddAnnotationViewsHandler added in v0.17.0

type MapViewDelegateMapViewDidAddAnnotationViewsHandler interface {
	MapViewDidAddAnnotationViews(mapView *MapView, views obj.Object)
}

MapViewDelegateMapViewDidAddAnnotationViewsHandler is the optional MKMapViewDelegate method mapView:didAddAnnotationViews:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewDidAddOverlayRenderersHandler added in v0.17.0

type MapViewDelegateMapViewDidAddOverlayRenderersHandler interface {
	MapViewDidAddOverlayRenderers(mapView *MapView, renderers obj.Object)
}

MapViewDelegateMapViewDidAddOverlayRenderersHandler is the optional MKMapViewDelegate method mapView:didAddOverlayRenderers:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewDidChangeUserTrackingModeAnimatedHandler added in v0.17.0

type MapViewDelegateMapViewDidChangeUserTrackingModeAnimatedHandler interface {
	MapViewDidChangeUserTrackingModeAnimated(mapView *MapView, mode UserTrackingMode, animated bool)
}

MapViewDelegateMapViewDidChangeUserTrackingModeAnimatedHandler is the optional MKMapViewDelegate method mapView:didChangeUserTrackingMode:animated:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewDidChangeVisibleRegionHandler added in v0.17.0

type MapViewDelegateMapViewDidChangeVisibleRegionHandler interface {
	MapViewDidChangeVisibleRegion(mapView *MapView)
}

MapViewDelegateMapViewDidChangeVisibleRegionHandler is the optional MKMapViewDelegate method mapViewDidChangeVisibleRegion:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewDidDeselectAnnotationViewHandler added in v0.17.0

type MapViewDelegateMapViewDidDeselectAnnotationViewHandler interface {
	MapViewDidDeselectAnnotationView(mapView *MapView, view *AnnotationView)
}

MapViewDelegateMapViewDidDeselectAnnotationViewHandler is the optional MKMapViewDelegate method mapView:didDeselectAnnotationView:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewDidFailLoadingMapWithErrorHandler added in v0.17.0

type MapViewDelegateMapViewDidFailLoadingMapWithErrorHandler interface {
	MapViewDidFailLoadingMapWithError(mapView *MapView, err error)
}

MapViewDelegateMapViewDidFailLoadingMapWithErrorHandler is the optional MKMapViewDelegate method mapViewDidFailLoadingMap:withError:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewDidFailToLocateUserWithErrorHandler added in v0.17.0

type MapViewDelegateMapViewDidFailToLocateUserWithErrorHandler interface {
	MapViewDidFailToLocateUserWithError(mapView *MapView, err error)
}

MapViewDelegateMapViewDidFailToLocateUserWithErrorHandler is the optional MKMapViewDelegate method mapView:didFailToLocateUserWithError:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewDidFinishLoadingMapHandler added in v0.17.0

type MapViewDelegateMapViewDidFinishLoadingMapHandler interface {
	MapViewDidFinishLoadingMap(mapView *MapView)
}

MapViewDelegateMapViewDidFinishLoadingMapHandler is the optional MKMapViewDelegate method mapViewDidFinishLoadingMap:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewDidFinishRenderingMapFullyRenderedHandler added in v0.17.0

type MapViewDelegateMapViewDidFinishRenderingMapFullyRenderedHandler interface {
	MapViewDidFinishRenderingMapFullyRendered(mapView *MapView, fullyRendered bool)
}

MapViewDelegateMapViewDidFinishRenderingMapFullyRenderedHandler is the optional MKMapViewDelegate method mapViewDidFinishRenderingMap:fullyRendered:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewDidSelectAnnotationViewHandler added in v0.17.0

type MapViewDelegateMapViewDidSelectAnnotationViewHandler interface {
	MapViewDidSelectAnnotationView(mapView *MapView, view *AnnotationView)
}

MapViewDelegateMapViewDidSelectAnnotationViewHandler is the optional MKMapViewDelegate method mapView:didSelectAnnotationView:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewDidStopLocatingUserHandler added in v0.17.0

type MapViewDelegateMapViewDidStopLocatingUserHandler interface {
	MapViewDidStopLocatingUser(mapView *MapView)
}

MapViewDelegateMapViewDidStopLocatingUserHandler is the optional MKMapViewDelegate method mapViewDidStopLocatingUser:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewDidUpdateUserLocationHandler added in v0.17.0

type MapViewDelegateMapViewDidUpdateUserLocationHandler interface {
	MapViewDidUpdateUserLocation(mapView *MapView, userLocation *UserLocation)
}

MapViewDelegateMapViewDidUpdateUserLocationHandler is the optional MKMapViewDelegate method mapView:didUpdateUserLocation:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewRegionDidChangeAnimatedHandler added in v0.17.0

type MapViewDelegateMapViewRegionDidChangeAnimatedHandler interface {
	MapViewRegionDidChangeAnimated(mapView *MapView, animated bool)
}

MapViewDelegateMapViewRegionDidChangeAnimatedHandler is the optional MKMapViewDelegate method mapView:regionDidChangeAnimated:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewRegionWillChangeAnimatedHandler added in v0.17.0

type MapViewDelegateMapViewRegionWillChangeAnimatedHandler interface {
	MapViewRegionWillChangeAnimated(mapView *MapView, animated bool)
}

MapViewDelegateMapViewRegionWillChangeAnimatedHandler is the optional MKMapViewDelegate method mapView:regionWillChangeAnimated:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewWillStartLoadingMapHandler added in v0.17.0

type MapViewDelegateMapViewWillStartLoadingMapHandler interface {
	MapViewWillStartLoadingMap(mapView *MapView)
}

MapViewDelegateMapViewWillStartLoadingMapHandler is the optional MKMapViewDelegate method mapViewWillStartLoadingMap:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewWillStartLocatingUserHandler added in v0.17.0

type MapViewDelegateMapViewWillStartLocatingUserHandler interface {
	MapViewWillStartLocatingUser(mapView *MapView)
}

MapViewDelegateMapViewWillStartLocatingUserHandler is the optional MKMapViewDelegate method mapViewWillStartLocatingUser:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MapViewDelegateMapViewWillStartRenderingMapHandler added in v0.17.0

type MapViewDelegateMapViewWillStartRenderingMapHandler interface {
	MapViewWillStartRenderingMap(mapView *MapView)
}

MapViewDelegateMapViewWillStartRenderingMapHandler is the optional MKMapViewDelegate method mapViewWillStartRenderingMap:. Implement it on a MapViewDelegate value to receive that callback; a value without it is simply never sent one.

type MarkerAnnotationView added in v0.17.0

type MarkerAnnotationView struct {
	AnnotationView
}

MarkerAnnotationView is an idiomatic wrapper over the Objective-C class MKMarkerAnnotationView.

It embeds AnnotationView, promoting that type's methods.

An annotation view that displays a balloon-shaped marker at the designated location.

func MarkerAnnotationViewFromID added in v0.17.0

func MarkerAnnotationViewFromID(id objc.ID) *MarkerAnnotationView

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

func NewMarkerAnnotationView added in v0.17.0

func NewMarkerAnnotationView() *MarkerAnnotationView

NewMarkerAnnotationView creates a new MarkerAnnotationView.

func (*MarkerAnnotationView) AnimatesWhenAdded added in v0.17.0

func (mav *MarkerAnnotationView) AnimatesWhenAdded() bool

AnimatesWhenAdded wraps the corresponding Objective-C method.

func (*MarkerAnnotationView) GlyphImage added in v0.17.0

func (mav *MarkerAnnotationView) GlyphImage() obj.Object

GlyphImage returns the glyph image.

func (*MarkerAnnotationView) GlyphText added in v0.17.0

func (mav *MarkerAnnotationView) GlyphText() string

GlyphText returns the glyph text.

func (*MarkerAnnotationView) GlyphTintColor added in v0.17.0

func (mav *MarkerAnnotationView) GlyphTintColor() obj.Object

GlyphTintColor returns the glyph tint color.

func (*MarkerAnnotationView) MarkerTintColor added in v0.17.0

func (mav *MarkerAnnotationView) MarkerTintColor() obj.Object

MarkerTintColor returns the marker tint color.

func (*MarkerAnnotationView) SelectedGlyphImage added in v0.17.0

func (mav *MarkerAnnotationView) SelectedGlyphImage() obj.Object

SelectedGlyphImage returns the selected glyph image.

func (*MarkerAnnotationView) SubtitleVisibility added in v0.17.0

func (mav *MarkerAnnotationView) SubtitleVisibility() FeatureVisibility

SubtitleVisibility returns the subtitle visibility.

func (*MarkerAnnotationView) TitleVisibility added in v0.17.0

func (mav *MarkerAnnotationView) TitleVisibility() FeatureVisibility

TitleVisibility returns the title visibility.

func (*MarkerAnnotationView) WithAccessoryOffset added in v0.17.0

func (mav *MarkerAnnotationView) WithAccessoryOffset(accessoryOffset corefoundation.CGPoint) *MarkerAnnotationView

WithAccessoryOffset sets an offset that changes the accessory’s default anchor point.

func (*MarkerAnnotationView) WithAnimatesWhenAdded added in v0.17.0

func (mav *MarkerAnnotationView) WithAnimatesWhenAdded(animatesWhenAdded bool) *MarkerAnnotationView

WithAnimatesWhenAdded sets a Boolean that indicates whether the marker animates into position onscreen.

func (*MarkerAnnotationView) WithCalloutOffset added in v0.17.0

func (mav *MarkerAnnotationView) WithCalloutOffset(calloutOffset corefoundation.CGPoint) *MarkerAnnotationView

WithCalloutOffset sets the offset (in points) at which to place the callout.

func (*MarkerAnnotationView) WithCanShowCallout added in v0.17.0

func (mav *MarkerAnnotationView) WithCanShowCallout(canShowCallout bool) *MarkerAnnotationView

WithCanShowCallout sets a Boolean value that indicates whether the annotation view is able to display extra information in a callout.

func (*MarkerAnnotationView) WithCenterOffset added in v0.17.0

func (mav *MarkerAnnotationView) WithCenterOffset(centerOffset corefoundation.CGPoint) *MarkerAnnotationView

WithCenterOffset sets the offset (in points) at which to display the view.

func (*MarkerAnnotationView) WithClusteringIdentifier added in v0.17.0

func (mav *MarkerAnnotationView) WithClusteringIdentifier(clusteringIdentifier string) *MarkerAnnotationView

WithClusteringIdentifier sets an identifier that determines whether the annotation view participates in clustering.

func (*MarkerAnnotationView) WithCollisionMode added in v0.17.0

func (mav *MarkerAnnotationView) WithCollisionMode(collisionMode AnnotationViewCollisionMode) *MarkerAnnotationView

WithCollisionMode sets the collision mode to use when interpreting the collision frame rectangle.

func (*MarkerAnnotationView) WithDetailCalloutAccessoryView added in v0.17.0

func (mav *MarkerAnnotationView) WithDetailCalloutAccessoryView(detailCalloutAccessoryView obj.Object) *MarkerAnnotationView

WithDetailCalloutAccessoryView sets the detail accessory view to use in the standard callout.

func (*MarkerAnnotationView) WithDisplayPriority added in v0.17.0

func (mav *MarkerAnnotationView) WithDisplayPriority(displayPriority float32) *MarkerAnnotationView

WithDisplayPriority sets the display priority of the annotation view.

func (*MarkerAnnotationView) WithDragState added in v0.17.0

func (mav *MarkerAnnotationView) WithDragState(dragState AnnotationViewDragState) *MarkerAnnotationView

WithDragState sets the drag state of the annotation view.

func (*MarkerAnnotationView) WithDraggable added in v0.17.0

func (mav *MarkerAnnotationView) WithDraggable(draggable bool) *MarkerAnnotationView

WithDraggable sets a Boolean value that indicates whether the annotation view is draggable.

func (*MarkerAnnotationView) WithEnabled added in v0.17.0

func (mav *MarkerAnnotationView) WithEnabled(enabled bool) *MarkerAnnotationView

WithEnabled sets a Boolean value that indicates whether the annotation is in an enabled state.

func (*MarkerAnnotationView) WithGlyphImage added in v0.17.0

func (mav *MarkerAnnotationView) WithGlyphImage(glyphImage obj.Object) *MarkerAnnotationView

WithGlyphImage sets an image to display in the marker balloon.

func (*MarkerAnnotationView) WithGlyphText added in v0.17.0

func (mav *MarkerAnnotationView) WithGlyphText(glyphText string) *MarkerAnnotationView

WithGlyphText sets the text to display in the marker balloon.

func (*MarkerAnnotationView) WithGlyphTintColor added in v0.17.0

func (mav *MarkerAnnotationView) WithGlyphTintColor(glyphTintColor obj.Object) *MarkerAnnotationView

WithGlyphTintColor sets the color to apply to the glyph text or image.

func (*MarkerAnnotationView) WithHighlighted added in v0.17.0

func (mav *MarkerAnnotationView) WithHighlighted(highlighted bool) *MarkerAnnotationView

WithHighlighted sets a Boolean value that indicates whether the map view highlights the annotation view.

func (*MarkerAnnotationView) WithImage added in v0.17.0

func (mav *MarkerAnnotationView) WithImage(image obj.Object) *MarkerAnnotationView

WithImage sets the image the annotation view displays.

func (*MarkerAnnotationView) WithLeftCalloutAccessoryView added in v0.17.0

func (mav *MarkerAnnotationView) WithLeftCalloutAccessoryView(leftCalloutAccessoryView obj.Object) *MarkerAnnotationView

WithLeftCalloutAccessoryView sets the view to display on the left side of the standard callout.

func (*MarkerAnnotationView) WithLeftCalloutOffset added in v0.17.0

func (mav *MarkerAnnotationView) WithLeftCalloutOffset(leftCalloutOffset corefoundation.CGPoint) *MarkerAnnotationView

WithLeftCalloutOffset sets the offset in points from the middle-left of the annotation view.

func (*MarkerAnnotationView) WithMarkerTintColor added in v0.17.0

func (mav *MarkerAnnotationView) WithMarkerTintColor(markerTintColor obj.Object) *MarkerAnnotationView

WithMarkerTintColor sets the background color of the marker balloon.

func (*MarkerAnnotationView) WithRightCalloutAccessoryView added in v0.17.0

func (mav *MarkerAnnotationView) WithRightCalloutAccessoryView(rightCalloutAccessoryView obj.Object) *MarkerAnnotationView

WithRightCalloutAccessoryView sets the view to display on the right side of the standard callout.

func (*MarkerAnnotationView) WithRightCalloutOffset added in v0.17.0

func (mav *MarkerAnnotationView) WithRightCalloutOffset(rightCalloutOffset corefoundation.CGPoint) *MarkerAnnotationView

WithRightCalloutOffset sets the offset in points from the middle-right of the annotation view.

func (*MarkerAnnotationView) WithSelected added in v0.17.0

func (mav *MarkerAnnotationView) WithSelected(selected bool) *MarkerAnnotationView

WithSelected sets a Boolean value that indicates whether the annotation view is in a selected state.

func (*MarkerAnnotationView) WithSelectedGlyphImage added in v0.17.0

func (mav *MarkerAnnotationView) WithSelectedGlyphImage(selectedGlyphImage obj.Object) *MarkerAnnotationView

WithSelectedGlyphImage sets an image to display when the user selects the marker.

func (*MarkerAnnotationView) WithSelectedZPriority added in v0.17.0

func (mav *MarkerAnnotationView) WithSelectedZPriority(selectedZPriority float32) *MarkerAnnotationView

WithSelectedZPriority sets the relative importance of the annotation view when in a selected state with respect to its ordering along the z-axis.

func (*MarkerAnnotationView) WithSubtitleVisibility added in v0.17.0

func (mav *MarkerAnnotationView) WithSubtitleVisibility(subtitleVisibility FeatureVisibility) *MarkerAnnotationView

WithSubtitleVisibility sets the visibility of the subtitle text rendered beneath the marker balloon.

func (*MarkerAnnotationView) WithTitleVisibility added in v0.17.0

func (mav *MarkerAnnotationView) WithTitleVisibility(titleVisibility FeatureVisibility) *MarkerAnnotationView

WithTitleVisibility sets the visibility of the title text rendered beneath the marker balloon.

func (*MarkerAnnotationView) WithZPriority added in v0.17.0

func (mav *MarkerAnnotationView) WithZPriority(zPriority float32) *MarkerAnnotationView

WithZPriority sets the relative importance of the annotation view when in an unselected state with respect to its ordering along the z-axis.

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

type MultiPoint struct {
	Shape
}

MultiPoint is an idiomatic wrapper over the Objective-C class MKMultiPoint.

MultiPoint is an abstract base — you do not construct it directly. Construct one of Polygon, Polyline and pass it where a MultiPoint is accepted.

An abstract class that defines the common behavior that open and closed polygon overlays share.

func MultiPointFromID added in v0.17.0

func MultiPointFromID(id objc.ID) *MultiPoint

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

func (*MultiPoint) GetCoordinatesRange added in v0.17.0

func (mp *MultiPoint) GetCoordinatesRange(coords unsafe.Pointer, range_ foundation.NSRange)

GetCoordinatesRange retrieves one or more points associated with the shape and converts them to coordinate values.

func (*MultiPoint) LocationAtPointIndex added in v0.17.0

func (mp *MultiPoint) LocationAtPointIndex(index int) float64

LocationAtPointIndex translates a point index into a unit distance along the shape.

func (*MultiPoint) LocationsAtPointIndexes added in v0.17.0

func (mp *MultiPoint) LocationsAtPointIndexes(indexes obj.Object) []*foundation.Number

LocationsAtPointIndexes returns a set of unit distance values that correspond to the point indexes along the shape.

func (*MultiPoint) PointCount added in v0.17.0

func (mp *MultiPoint) PointCount() int

PointCount returns the point count.

func (*MultiPoint) Points added in v0.18.0

func (mp *MultiPoint) Points() *MKMapPoint

Points returns an array of map points associated with the shape.

func (*MultiPoint) WithSubtitle added in v0.17.0

func (mp *MultiPoint) WithSubtitle(subtitle string) *MultiPoint

WithSubtitle sets the subtitle of the shape annotation.

func (*MultiPoint) WithTitle added in v0.17.0

func (mp *MultiPoint) WithTitle(title string) *MultiPoint

WithTitle sets the title of the shape annotation.

type MultiPointProvider added in v0.17.0

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

MultiPointProvider is accepted wherever a MKMultiPoint (or one of its subclasses) is expected.

type MultiPolygon added in v0.17.0

type MultiPolygon struct {
	Shape
}

MultiPolygon is an idiomatic wrapper over the Objective-C class MKMultiPolygon.

It embeds Shape, promoting that type's methods.

A collection of multiple closed polygon overlays.

func MultiPolygonFromID added in v0.17.0

func MultiPolygonFromID(id objc.ID) *MultiPolygon

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

func NewMultiPolygonWithPolygons added in v0.17.0

func NewMultiPolygonWithPolygons(polygons []*Polygon) *MultiPolygon

NewMultiPolygonWithPolygons creates a multipolygon object using the provided polygons.

func (*MultiPolygon) Polygons added in v0.17.0

func (mp *MultiPolygon) Polygons() []*Polygon

Polygons returns the polygons.

Polygons returns the collection as a Go slice.

func (*MultiPolygon) WithSubtitle added in v0.17.0

func (mp *MultiPolygon) WithSubtitle(subtitle string) *MultiPolygon

WithSubtitle sets the subtitle of the shape annotation.

func (*MultiPolygon) WithTitle added in v0.17.0

func (mp *MultiPolygon) WithTitle(title string) *MultiPolygon

WithTitle sets the title of the shape annotation.

type MultiPolygonRenderer added in v0.17.0

type MultiPolygonRenderer struct {
	OverlayPathRenderer
}

MultiPolygonRenderer is an idiomatic wrapper over the Objective-C class MKMultiPolygonRenderer.

It embeds OverlayPathRenderer, promoting that type's methods.

The visual representation of multiple polygon overlays.

func MultiPolygonRendererFromID added in v0.17.0

func MultiPolygonRendererFromID(id objc.ID) *MultiPolygonRenderer

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

func NewMultiPolygonRendererWithMultiPolygon added in v0.17.0

func NewMultiPolygonRendererWithMultiPolygon(multiPolygon *MultiPolygon) *MultiPolygonRenderer

NewMultiPolygonRendererWithMultiPolygon creates and returns a renderer that handles drawing for the specified multipolygon overlay object.

func (*MultiPolygonRenderer) MultiPolygon added in v0.17.0

func (mpr *MultiPolygonRenderer) MultiPolygon() *MultiPolygon

MultiPolygon returns the multi polygon.

func (*MultiPolygonRenderer) WithAlpha added in v0.17.0

func (mpr *MultiPolygonRenderer) WithAlpha(alpha float64) *MultiPolygonRenderer

WithAlpha sets the amount of transparency to apply to the overlay.

func (*MultiPolygonRenderer) WithFillColor added in v0.17.0

func (mpr *MultiPolygonRenderer) WithFillColor(fillColor obj.Object) *MultiPolygonRenderer

WithFillColor sets the fill color to use for the path.

func (*MultiPolygonRenderer) WithLineDashPattern added in v0.17.0

func (mpr *MultiPolygonRenderer) WithLineDashPattern(items ...obj.Object) *MultiPolygonRenderer

WithLineDashPattern sets an array of numbers specifying the dash pattern to use for the path.

func (*MultiPolygonRenderer) WithLineDashPhase added in v0.17.0

func (mpr *MultiPolygonRenderer) WithLineDashPhase(lineDashPhase float64) *MultiPolygonRenderer

WithLineDashPhase sets the offset (in points) at which to start drawing the dash pattern.

func (*MultiPolygonRenderer) WithLineWidth added in v0.17.0

func (mpr *MultiPolygonRenderer) WithLineWidth(lineWidth float64) *MultiPolygonRenderer

WithLineWidth sets the stroke width to use for the path.

func (*MultiPolygonRenderer) WithMiterLimit added in v0.17.0

func (mpr *MultiPolygonRenderer) WithMiterLimit(miterLimit float64) *MultiPolygonRenderer

WithMiterLimit sets the limiting value that helps avoid spikes at junctions between connected line segments.

func (*MultiPolygonRenderer) WithPath added in v0.17.0

WithPath sets the path representing the overlay’s shape.

func (*MultiPolygonRenderer) WithShouldRasterize added in v0.17.0

func (mpr *MultiPolygonRenderer) WithShouldRasterize(shouldRasterize bool) *MultiPolygonRenderer

WithShouldRasterize sets a Boolean value that determines whether the overlay path renderer renders the overlay as a bitmap before compositing.

func (*MultiPolygonRenderer) WithStrokeColor added in v0.17.0

func (mpr *MultiPolygonRenderer) WithStrokeColor(strokeColor obj.Object) *MultiPolygonRenderer

WithStrokeColor sets the stroke color to use for the path.

type MultiPolyline added in v0.17.0

type MultiPolyline struct {
	Shape
}

MultiPolyline is an idiomatic wrapper over the Objective-C class MKMultiPolyline.

It embeds Shape, promoting that type's methods.

A collection of multipolyline shapes, each consisting of one or more connected line segments.

func MultiPolylineFromID added in v0.17.0

func MultiPolylineFromID(id objc.ID) *MultiPolyline

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

func NewMultiPolylineWithPolylines added in v0.17.0

func NewMultiPolylineWithPolylines(polylines []*Polyline) *MultiPolyline

NewMultiPolylineWithPolylines creates a multipolyline object using the provided polylines.

func (*MultiPolyline) Polylines added in v0.17.0

func (mp *MultiPolyline) Polylines() []*Polyline

Polylines returns the polylines.

Polylines returns the collection as a Go slice.

func (*MultiPolyline) WithSubtitle added in v0.17.0

func (mp *MultiPolyline) WithSubtitle(subtitle string) *MultiPolyline

WithSubtitle sets the subtitle of the shape annotation.

func (*MultiPolyline) WithTitle added in v0.17.0

func (mp *MultiPolyline) WithTitle(title string) *MultiPolyline

WithTitle sets the title of the shape annotation.

type MultiPolylineRenderer added in v0.17.0

type MultiPolylineRenderer struct {
	OverlayPathRenderer
}

MultiPolylineRenderer is an idiomatic wrapper over the Objective-C class MKMultiPolylineRenderer.

It embeds OverlayPathRenderer, promoting that type's methods.

A visual representation of multiple polyline overlay objects.

func MultiPolylineRendererFromID added in v0.17.0

func MultiPolylineRendererFromID(id objc.ID) *MultiPolylineRenderer

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

func NewMultiPolylineRendererWithMultiPolyline added in v0.17.0

func NewMultiPolylineRendererWithMultiPolyline(multiPolyline *MultiPolyline) *MultiPolylineRenderer

NewMultiPolylineRendererWithMultiPolyline creates an object that renders a visual representation of multiple polyline objects.

func (*MultiPolylineRenderer) MultiPolyline added in v0.17.0

func (mpr *MultiPolylineRenderer) MultiPolyline() *MultiPolyline

MultiPolyline returns the multi polyline.

func (*MultiPolylineRenderer) WithAlpha added in v0.17.0

func (mpr *MultiPolylineRenderer) WithAlpha(alpha float64) *MultiPolylineRenderer

WithAlpha sets the amount of transparency to apply to the overlay.

func (*MultiPolylineRenderer) WithFillColor added in v0.17.0

func (mpr *MultiPolylineRenderer) WithFillColor(fillColor obj.Object) *MultiPolylineRenderer

WithFillColor sets the fill color to use for the path.

func (*MultiPolylineRenderer) WithLineDashPattern added in v0.17.0

func (mpr *MultiPolylineRenderer) WithLineDashPattern(items ...obj.Object) *MultiPolylineRenderer

WithLineDashPattern sets an array of numbers specifying the dash pattern to use for the path.

func (*MultiPolylineRenderer) WithLineDashPhase added in v0.17.0

func (mpr *MultiPolylineRenderer) WithLineDashPhase(lineDashPhase float64) *MultiPolylineRenderer

WithLineDashPhase sets the offset (in points) at which to start drawing the dash pattern.

func (*MultiPolylineRenderer) WithLineWidth added in v0.17.0

func (mpr *MultiPolylineRenderer) WithLineWidth(lineWidth float64) *MultiPolylineRenderer

WithLineWidth sets the stroke width to use for the path.

func (*MultiPolylineRenderer) WithMiterLimit added in v0.17.0

func (mpr *MultiPolylineRenderer) WithMiterLimit(miterLimit float64) *MultiPolylineRenderer

WithMiterLimit sets the limiting value that helps avoid spikes at junctions between connected line segments.

func (*MultiPolylineRenderer) WithPath added in v0.17.0

WithPath sets the path representing the overlay’s shape.

func (*MultiPolylineRenderer) WithShouldRasterize added in v0.17.0

func (mpr *MultiPolylineRenderer) WithShouldRasterize(shouldRasterize bool) *MultiPolylineRenderer

WithShouldRasterize sets a Boolean value that determines whether the overlay path renderer renders the overlay as a bitmap before compositing.

func (*MultiPolylineRenderer) WithStrokeColor added in v0.17.0

func (mpr *MultiPolylineRenderer) WithStrokeColor(strokeColor obj.Object) *MultiPolylineRenderer

WithStrokeColor sets the stroke color to use for the path.

type NXMouseButton

type NXMouseButton int32
const (
	NX_OneButton   NXMouseButton = 0
	NX_LeftButton  NXMouseButton = 1
	NX_RightButton NXMouseButton = 2
)

func (NXMouseButton) String

func (e NXMouseButton) String() string

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

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

type OSUnfairLockFlags uint32

Bitmask — values may be combined with |.

const (
	OSUnfairLockFlagsNone         OSUnfairLockFlags = 0
	OSUnfairLockFlagsAdaptiveSpin OSUnfairLockFlags = 262144
)

func (OSUnfairLockFlags) String added in v0.17.0

func (e OSUnfairLockFlags) String() string

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

type Overlay added in v0.17.0

type Overlay interface {
	Coordinate() unsafe.Pointer
	BoundingMapRect() MKMapRect
}

Overlay is the Go form of the Objective-C protocol MKOverlay.

type OverlayLevel added in v0.17.0

type OverlayLevel int64

Constants that indicate the position of overlays relative to other content.

const (
	// Place the overlay above roadways but below map labels, shields, or point-of-interest icons.
	OverlayLevelAboveRoads OverlayLevel = 0
	// Place the overlay above map labels, shields, or point-of-interest icons but below annotations and 3D projections of buildings.
	OverlayLevelAboveLabels OverlayLevel = 1
)

func (OverlayLevel) String added in v0.17.0

func (e OverlayLevel) String() string

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

type OverlayPathRenderer added in v0.17.0

type OverlayPathRenderer struct {
	OverlayRenderer
}

OverlayPathRenderer is an idiomatic wrapper over the Objective-C class MKOverlayPathRenderer.

OverlayPathRenderer is an abstract base — you do not construct it directly. Construct one of CircleRenderer, MultiPolygonRenderer, MultiPolylineRenderer, PolygonRenderer, PolylineRenderer and pass it where a OverlayPathRenderer is accepted.

The visual representation of a path-based overlay.

func OverlayPathRendererFromID added in v0.17.0

func OverlayPathRendererFromID(id objc.ID) *OverlayPathRenderer

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

func (*OverlayPathRenderer) ApplyFillPropertiesToContextAtZoomScale added in v0.17.0

func (opr *OverlayPathRenderer) ApplyFillPropertiesToContextAtZoomScale(context_ coregraphics.CGContextRef, zoomScale float64)

ApplyFillPropertiesToContextAtZoomScale applies the receiver’s fill-related drawing properties to the specified graphics context.

func (*OverlayPathRenderer) ApplyStrokePropertiesToContextAtZoomScale added in v0.17.0

func (opr *OverlayPathRenderer) ApplyStrokePropertiesToContextAtZoomScale(context_ coregraphics.CGContextRef, zoomScale float64)

ApplyStrokePropertiesToContextAtZoomScale applies the renderer’s stroke-related drawing properties to the specified graphics context.

func (*OverlayPathRenderer) CreatePath added in v0.17.0

func (opr *OverlayPathRenderer) CreatePath()

CreatePath creates the path for the overlay.

func (*OverlayPathRenderer) FillColor added in v0.17.0

func (opr *OverlayPathRenderer) FillColor() obj.Object

FillColor returns the fill color.

func (*OverlayPathRenderer) FillPathInContext added in v0.17.0

func (opr *OverlayPathRenderer) FillPathInContext(path coregraphics.CGPathRef, context_ coregraphics.CGContextRef)

FillPathInContext fills the area that the specified path encloses.

func (*OverlayPathRenderer) InvalidatePath added in v0.17.0

func (opr *OverlayPathRenderer) InvalidatePath()

InvalidatePath updates the path associated with the overlay renderer.

func (*OverlayPathRenderer) LineDashPattern added in v0.17.0

func (opr *OverlayPathRenderer) LineDashPattern() []obj.Object

LineDashPattern returns the line dash pattern.

LineDashPattern returns the collection as a Go slice.

func (*OverlayPathRenderer) LineDashPhase added in v0.17.0

func (opr *OverlayPathRenderer) LineDashPhase() float64

LineDashPhase returns the line dash phase.

func (*OverlayPathRenderer) LineWidth added in v0.17.0

func (opr *OverlayPathRenderer) LineWidth() float64

LineWidth returns the line width.

func (*OverlayPathRenderer) MiterLimit added in v0.17.0

func (opr *OverlayPathRenderer) MiterLimit() float64

MiterLimit returns the miter limit.

func (*OverlayPathRenderer) Path added in v0.17.0

Path returns the path.

func (*OverlayPathRenderer) ShouldRasterize added in v0.17.0

func (opr *OverlayPathRenderer) ShouldRasterize() bool

ShouldRasterize wraps the corresponding Objective-C method.

func (*OverlayPathRenderer) StrokeColor added in v0.17.0

func (opr *OverlayPathRenderer) StrokeColor() obj.Object

StrokeColor returns the stroke color.

func (*OverlayPathRenderer) StrokePathInContext added in v0.17.0

func (opr *OverlayPathRenderer) StrokePathInContext(path coregraphics.CGPathRef, context_ coregraphics.CGContextRef)

StrokePathInContext draws a line along the specified path.

func (*OverlayPathRenderer) WithAlpha added in v0.17.0

func (opr *OverlayPathRenderer) WithAlpha(alpha float64) *OverlayPathRenderer

WithAlpha sets the amount of transparency to apply to the overlay.

func (*OverlayPathRenderer) WithFillColor added in v0.17.0

func (opr *OverlayPathRenderer) WithFillColor(fillColor obj.Object) *OverlayPathRenderer

WithFillColor sets the fill color to use for the path.

func (*OverlayPathRenderer) WithLineDashPattern added in v0.17.0

func (opr *OverlayPathRenderer) WithLineDashPattern(items ...obj.Object) *OverlayPathRenderer

WithLineDashPattern sets an array of numbers specifying the dash pattern to use for the path.

func (*OverlayPathRenderer) WithLineDashPhase added in v0.17.0

func (opr *OverlayPathRenderer) WithLineDashPhase(lineDashPhase float64) *OverlayPathRenderer

WithLineDashPhase sets the offset (in points) at which to start drawing the dash pattern.

func (*OverlayPathRenderer) WithLineWidth added in v0.17.0

func (opr *OverlayPathRenderer) WithLineWidth(lineWidth float64) *OverlayPathRenderer

WithLineWidth sets the stroke width to use for the path.

func (*OverlayPathRenderer) WithMiterLimit added in v0.17.0

func (opr *OverlayPathRenderer) WithMiterLimit(miterLimit float64) *OverlayPathRenderer

WithMiterLimit sets the limiting value that helps avoid spikes at junctions between connected line segments.

func (*OverlayPathRenderer) WithPath added in v0.17.0

WithPath sets the path representing the overlay’s shape.

func (*OverlayPathRenderer) WithShouldRasterize added in v0.17.0

func (opr *OverlayPathRenderer) WithShouldRasterize(shouldRasterize bool) *OverlayPathRenderer

WithShouldRasterize sets a Boolean value that determines whether the overlay path renderer renders the overlay as a bitmap before compositing.

func (*OverlayPathRenderer) WithStrokeColor added in v0.17.0

func (opr *OverlayPathRenderer) WithStrokeColor(strokeColor obj.Object) *OverlayPathRenderer

WithStrokeColor sets the stroke color to use for the path.

type OverlayPathRendererProvider added in v0.17.0

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

OverlayPathRendererProvider is accepted wherever a MKOverlayPathRenderer (or one of its subclasses) is expected.

type OverlayRenderer added in v0.17.0

type OverlayRenderer struct {
	objref.Handle
}

OverlayRenderer is an idiomatic wrapper over the Objective-C class MKOverlayRenderer.

OverlayRenderer is an abstract base — you do not construct it directly. Construct one of OverlayPathRenderer, TileOverlayRenderer and pass it where a OverlayRenderer is accepted.

The shared infrastructure for drawing overlays on the map surface.

func OverlayRendererFromID added in v0.17.0

func OverlayRendererFromID(id objc.ID) *OverlayRenderer

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

func (*OverlayRenderer) Alpha added in v0.17.0

func (or *OverlayRenderer) Alpha() float64

Alpha returns the alpha.

func (*OverlayRenderer) CanDrawMapRectZoomScale added in v0.18.1

func (or *OverlayRenderer) CanDrawMapRectZoomScale(mapRect MKMapRect, zoomScale float64) bool

CanDrawMapRectZoomScale returns a Boolean value that indicates whether the overlay view is ready to draw its content.

func (*OverlayRenderer) ContentScaleFactor added in v0.17.0

func (or *OverlayRenderer) ContentScaleFactor() float64

ContentScaleFactor returns the content scale factor.

func (*OverlayRenderer) Description added in v0.17.0

func (or *OverlayRenderer) Description() string

Description returns the object's -description text.

func (*OverlayRenderer) DrawMapRectZoomScaleInContext added in v0.18.1

func (or *OverlayRenderer) DrawMapRectZoomScaleInContext(mapRect MKMapRect, zoomScale float64, context_ coregraphics.CGContextRef)

DrawMapRectZoomScaleInContext draws the overlay’s contents at the specified location on the map.

func (*OverlayRenderer) IsEqual added in v0.17.0

func (or *OverlayRenderer) IsEqual(other obj.Object) bool

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

func (*OverlayRenderer) IsKind added in v0.17.0

func (or *OverlayRenderer) IsKind(className string) bool

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

func (*OverlayRenderer) MapPointForPoint added in v0.18.1

func (or *OverlayRenderer) MapPointForPoint(point corefoundation.CGPoint) MKMapPoint

MapPointForPoint returns the point on the map that corresponds to the specified point in the overlay renderer’s drawing area.

func (*OverlayRenderer) MapRectForRect added in v0.18.1

func (or *OverlayRenderer) MapRectForRect(rect corefoundation.CGRect) MKMapRect

MapRectForRect returns the rectangle on the map that corresponds to the specified rectangle in the overlay renderer’s drawing area.

func (*OverlayRenderer) PointForMapPoint added in v0.18.1

func (or *OverlayRenderer) PointForMapPoint(mapPoint MKMapPoint) corefoundation.CGPoint

PointForMapPoint returns the point in the overlay renderer’s drawing area corresponding to the specified point on the map.

func (*OverlayRenderer) RectForMapRect added in v0.18.1

func (or *OverlayRenderer) RectForMapRect(mapRect MKMapRect) corefoundation.CGRect

RectForMapRect returns the rectangle in the overlay renderer’s drawing area corresponding to the specified rectangle on the map.

func (*OverlayRenderer) SetNeedsDisplay added in v0.17.0

func (or *OverlayRenderer) SetNeedsDisplay()

SetNeedsDisplay invalidates the entire contents of the overlay for all zoom scales.

func (*OverlayRenderer) SetNeedsDisplayInMapRect added in v0.18.1

func (or *OverlayRenderer) SetNeedsDisplayInMapRect(mapRect MKMapRect)

SetNeedsDisplayInMapRect invalidates the specified portion of the overlay at all zoom scales.

func (*OverlayRenderer) SetNeedsDisplayInMapRectZoomScale added in v0.18.1

func (or *OverlayRenderer) SetNeedsDisplayInMapRectZoomScale(mapRect MKMapRect, zoomScale float64)

SetNeedsDisplayInMapRectZoomScale invalidates the specified portion of the overlay, but only at the specified zoom scale.

func (*OverlayRenderer) String added in v0.17.0

func (or *OverlayRenderer) String() string

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

func (*OverlayRenderer) WithAlpha added in v0.17.0

func (or *OverlayRenderer) WithAlpha(alpha float64) *OverlayRenderer

WithAlpha sets the amount of transparency to apply to the overlay.

type OverlayRendererProvider added in v0.17.0

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

OverlayRendererProvider is accepted wherever a MKOverlayRenderer (or one of its subclasses) is expected.

type PMPageToPaperMappingType

type PMPageToPaperMappingType int32
const (
	KPMPageToPaperMappingNone       PMPageToPaperMappingType = 1
	KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2
)

func (PMPageToPaperMappingType) String

func (e PMPageToPaperMappingType) String() string

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

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

type PinAnnotationColor uint64

The supported colors for pin annotations.

const (
	PinAnnotationColorRed    PinAnnotationColor = 0
	PinAnnotationColorGreen  PinAnnotationColor = 1
	PinAnnotationColorPurple PinAnnotationColor = 2
)

func (PinAnnotationColor) String added in v0.17.0

func (e PinAnnotationColor) String() string

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

type PinAnnotationView added in v0.17.0

type PinAnnotationView struct {
	AnnotationView
}

PinAnnotationView is an idiomatic wrapper over the Objective-C class MKPinAnnotationView.

It embeds AnnotationView, promoting that type's methods.

An annotation view that displays a pin image on the map.

func NewPinAnnotationView added in v0.17.0

func NewPinAnnotationView() *PinAnnotationView

NewPinAnnotationView creates a new PinAnnotationView.

func PinAnnotationViewFromID added in v0.17.0

func PinAnnotationViewFromID(id objc.ID) *PinAnnotationView

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

func (*PinAnnotationView) AnimatesDrop added in v0.17.0

func (pav *PinAnnotationView) AnimatesDrop() bool

AnimatesDrop wraps the corresponding Objective-C method.

func (*PinAnnotationView) PinColor added in v0.17.0

func (pav *PinAnnotationView) PinColor() PinAnnotationColor

PinColor returns the pin color.

func (*PinAnnotationView) PinTintColor added in v0.17.0

func (pav *PinAnnotationView) PinTintColor() obj.Object

PinTintColor returns the pin tint color.

func (*PinAnnotationView) WithAccessoryOffset added in v0.17.0

func (pav *PinAnnotationView) WithAccessoryOffset(accessoryOffset corefoundation.CGPoint) *PinAnnotationView

WithAccessoryOffset sets an offset that changes the accessory’s default anchor point.

func (*PinAnnotationView) WithAnimatesDrop added in v0.17.0

func (pav *PinAnnotationView) WithAnimatesDrop(animatesDrop bool) *PinAnnotationView

WithAnimatesDrop sets a Boolean value indicating whether the annotation view is animated onto the screen.

func (*PinAnnotationView) WithCalloutOffset added in v0.17.0

func (pav *PinAnnotationView) WithCalloutOffset(calloutOffset corefoundation.CGPoint) *PinAnnotationView

WithCalloutOffset sets the offset (in points) at which to place the callout.

func (*PinAnnotationView) WithCanShowCallout added in v0.17.0

func (pav *PinAnnotationView) WithCanShowCallout(canShowCallout bool) *PinAnnotationView

WithCanShowCallout sets a Boolean value that indicates whether the annotation view is able to display extra information in a callout.

func (*PinAnnotationView) WithCenterOffset added in v0.17.0

func (pav *PinAnnotationView) WithCenterOffset(centerOffset corefoundation.CGPoint) *PinAnnotationView

WithCenterOffset sets the offset (in points) at which to display the view.

func (*PinAnnotationView) WithClusteringIdentifier added in v0.17.0

func (pav *PinAnnotationView) WithClusteringIdentifier(clusteringIdentifier string) *PinAnnotationView

WithClusteringIdentifier sets an identifier that determines whether the annotation view participates in clustering.

func (*PinAnnotationView) WithCollisionMode added in v0.17.0

func (pav *PinAnnotationView) WithCollisionMode(collisionMode AnnotationViewCollisionMode) *PinAnnotationView

WithCollisionMode sets the collision mode to use when interpreting the collision frame rectangle.

func (*PinAnnotationView) WithDetailCalloutAccessoryView added in v0.17.0

func (pav *PinAnnotationView) WithDetailCalloutAccessoryView(detailCalloutAccessoryView obj.Object) *PinAnnotationView

WithDetailCalloutAccessoryView sets the detail accessory view to use in the standard callout.

func (*PinAnnotationView) WithDisplayPriority added in v0.17.0

func (pav *PinAnnotationView) WithDisplayPriority(displayPriority float32) *PinAnnotationView

WithDisplayPriority sets the display priority of the annotation view.

func (*PinAnnotationView) WithDragState added in v0.17.0

func (pav *PinAnnotationView) WithDragState(dragState AnnotationViewDragState) *PinAnnotationView

WithDragState sets the drag state of the annotation view.

func (*PinAnnotationView) WithDraggable added in v0.17.0

func (pav *PinAnnotationView) WithDraggable(draggable bool) *PinAnnotationView

WithDraggable sets a Boolean value that indicates whether the annotation view is draggable.

func (*PinAnnotationView) WithEnabled added in v0.17.0

func (pav *PinAnnotationView) WithEnabled(enabled bool) *PinAnnotationView

WithEnabled sets a Boolean value that indicates whether the annotation is in an enabled state.

func (*PinAnnotationView) WithHighlighted added in v0.17.0

func (pav *PinAnnotationView) WithHighlighted(highlighted bool) *PinAnnotationView

WithHighlighted sets a Boolean value that indicates whether the map view highlights the annotation view.

func (*PinAnnotationView) WithImage added in v0.17.0

func (pav *PinAnnotationView) WithImage(image obj.Object) *PinAnnotationView

WithImage sets the image the annotation view displays.

func (*PinAnnotationView) WithLeftCalloutAccessoryView added in v0.17.0

func (pav *PinAnnotationView) WithLeftCalloutAccessoryView(leftCalloutAccessoryView obj.Object) *PinAnnotationView

WithLeftCalloutAccessoryView sets the view to display on the left side of the standard callout.

func (*PinAnnotationView) WithLeftCalloutOffset added in v0.17.0

func (pav *PinAnnotationView) WithLeftCalloutOffset(leftCalloutOffset corefoundation.CGPoint) *PinAnnotationView

WithLeftCalloutOffset sets the offset in points from the middle-left of the annotation view.

func (*PinAnnotationView) WithPinColor added in v0.17.0

func (pav *PinAnnotationView) WithPinColor(pinColor PinAnnotationColor) *PinAnnotationView

WithPinColor sets the color of the pin head.

func (*PinAnnotationView) WithPinTintColor added in v0.17.0

func (pav *PinAnnotationView) WithPinTintColor(pinTintColor obj.Object) *PinAnnotationView

WithPinTintColor sets the color of the pin head.

func (*PinAnnotationView) WithRightCalloutAccessoryView added in v0.17.0

func (pav *PinAnnotationView) WithRightCalloutAccessoryView(rightCalloutAccessoryView obj.Object) *PinAnnotationView

WithRightCalloutAccessoryView sets the view to display on the right side of the standard callout.

func (*PinAnnotationView) WithRightCalloutOffset added in v0.17.0

func (pav *PinAnnotationView) WithRightCalloutOffset(rightCalloutOffset corefoundation.CGPoint) *PinAnnotationView

WithRightCalloutOffset sets the offset in points from the middle-right of the annotation view.

func (*PinAnnotationView) WithSelected added in v0.17.0

func (pav *PinAnnotationView) WithSelected(selected bool) *PinAnnotationView

WithSelected sets a Boolean value that indicates whether the annotation view is in a selected state.

func (*PinAnnotationView) WithSelectedZPriority added in v0.17.0

func (pav *PinAnnotationView) WithSelectedZPriority(selectedZPriority float32) *PinAnnotationView

WithSelectedZPriority sets the relative importance of the annotation view when in a selected state with respect to its ordering along the z-axis.

func (*PinAnnotationView) WithZPriority added in v0.17.0

func (pav *PinAnnotationView) WithZPriority(zPriority float32) *PinAnnotationView

WithZPriority sets the relative importance of the annotation view when in an unselected state with respect to its ordering along the z-axis.

type PitchControl added in v0.17.0

type PitchControl struct {
	objref.Handle
}

PitchControl is an idiomatic wrapper over the Objective-C class MKPitchControl.

A specialized view that displays and controls the pitch angle of the map view.

func NewPitchControl added in v0.17.0

func NewPitchControl() *PitchControl

NewPitchControl creates a new PitchControl.

func PitchControlFromID added in v0.17.0

func PitchControlFromID(id objc.ID) *PitchControl

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

func PitchControlWithMapView added in v0.17.0

func PitchControlWithMapView(mapView *MapView) *PitchControl

PitchControlWithMapView creates a pitch control and associates it with the specified map view.

func (*PitchControl) Description added in v0.17.0

func (pc *PitchControl) Description() string

Description returns the object's -description text.

func (*PitchControl) IsEqual added in v0.17.0

func (pc *PitchControl) IsEqual(other obj.Object) bool

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

func (*PitchControl) IsKind added in v0.17.0

func (pc *PitchControl) IsKind(className string) bool

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

func (*PitchControl) MapView added in v0.17.0

func (pc *PitchControl) MapView() *MapView

MapView returns the map view.

func (*PitchControl) String added in v0.17.0

func (pc *PitchControl) String() string

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

func (*PitchControl) WithMapView added in v0.17.0

func (pc *PitchControl) WithMapView(mapView *MapView) *PitchControl

WithMapView sets the map view associated with this control.

type Placemark added in v0.17.0

type Placemark struct {
	objref.Handle
}

Placemark is an idiomatic wrapper over the Objective-C class MKPlacemark.

A user-friendly description of a location on the map.

func NewPlacemarkWithCoordinate added in v0.17.0

func NewPlacemarkWithCoordinate(coordinate unsafe.Pointer) *Placemark

NewPlacemarkWithCoordinate creates and returns a placemark object using the specified coordinate.

func NewPlacemarkWithCoordinateAddressDictionary added in v0.17.0

func NewPlacemarkWithCoordinateAddressDictionary(coordinate unsafe.Pointer, addressDictionary map[string]obj.Object) *Placemark

NewPlacemarkWithCoordinateAddressDictionary creates and returns a placemark object using the specified coordinate and Address Book dictionary.

func NewPlacemarkWithCoordinatePostalAddress added in v0.17.0

func NewPlacemarkWithCoordinatePostalAddress(coordinate unsafe.Pointer, postalAddress obj.Object) *Placemark

NewPlacemarkWithCoordinatePostalAddress creates and returns a placemark object with the specified coordinate and postal address from the user’s Contacts database.

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

func (p *Placemark) CountryCode() string

CountryCode returns the country code.

func (*Placemark) Description added in v0.17.0

func (p *Placemark) Description() string

Description returns the object's -description text.

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) 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.

type PointAnnotation added in v0.17.0

type PointAnnotation struct {
	Shape
}

PointAnnotation is an idiomatic wrapper over the Objective-C class MKPointAnnotation.

It embeds Shape, promoting that type's methods.

A string-based piece of location-specific data that you apply to a specific point on a map.

func NewPointAnnotation added in v0.17.0

func NewPointAnnotation() *PointAnnotation

NewPointAnnotation creates a new PointAnnotation.

func NewPointAnnotationWithCoordinate added in v0.17.0

func NewPointAnnotationWithCoordinate(coordinate unsafe.Pointer) *PointAnnotation

NewPointAnnotationWithCoordinate creates a point annotation at the specified coordinate on the map.

func NewPointAnnotationWithCoordinateTitleSubtitle added in v0.17.0

func NewPointAnnotationWithCoordinateTitleSubtitle(coordinate unsafe.Pointer, title string, subtitle string) *PointAnnotation

NewPointAnnotationWithCoordinateTitleSubtitle creates a point annotation displaying a title and subtitle string at the specified coordinate on the map.

func PointAnnotationFromID added in v0.17.0

func PointAnnotationFromID(id objc.ID) *PointAnnotation

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

func (*PointAnnotation) Coordinate added in v0.18.0

func (pa *PointAnnotation) Coordinate() unsafe.Pointer

Coordinate returns the coordinate.

func (*PointAnnotation) WithCoordinate added in v0.17.0

func (pa *PointAnnotation) WithCoordinate(coordinate unsafe.Pointer) *PointAnnotation

WithCoordinate sets the coordinate point of the annotation.

func (*PointAnnotation) WithSubtitle added in v0.17.0

func (pa *PointAnnotation) WithSubtitle(subtitle string) *PointAnnotation

WithSubtitle sets the subtitle of the shape annotation.

func (*PointAnnotation) WithTitle added in v0.17.0

func (pa *PointAnnotation) WithTitle(title string) *PointAnnotation

WithTitle sets the title of the shape annotation.

type PointOfInterestFilter added in v0.17.0

type PointOfInterestFilter struct {
	objref.Handle
}

PointOfInterestFilter is an idiomatic wrapper over the Objective-C class MKPointOfInterestFilter.

A filter that includes or excludes point of interest categories from a map view, local search, or local search completer.

func FilterExcludingAllCategories added in v0.17.0

func FilterExcludingAllCategories() *PointOfInterestFilter

FilterExcludingAllCategories returns the filter excluding all categories.

func FilterIncludingAllCategories added in v0.17.0

func FilterIncludingAllCategories() *PointOfInterestFilter

FilterIncludingAllCategories returns the filter including all categories.

func NewPointOfInterestFilterExcludingCategories added in v0.17.0

func NewPointOfInterestFilterExcludingCategories(categories []*foundation.String) *PointOfInterestFilter

NewPointOfInterestFilterExcludingCategories initialize the point of interest filter with a list of categories to exclude.

func NewPointOfInterestFilterIncludingCategories added in v0.17.0

func NewPointOfInterestFilterIncludingCategories(categories []*foundation.String) *PointOfInterestFilter

NewPointOfInterestFilterIncludingCategories initialize the point of interest filter with a list of categories to include.

func PointOfInterestFilterFromID added in v0.17.0

func PointOfInterestFilterFromID(id objc.ID) *PointOfInterestFilter

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

func (*PointOfInterestFilter) Description added in v0.17.0

func (poif *PointOfInterestFilter) Description() string

Description returns the object's -description text.

func (*PointOfInterestFilter) ExcludesCategory added in v0.17.0

func (poif *PointOfInterestFilter) ExcludesCategory(category obj.Object) bool

ExcludesCategory returns a Boolean value indicating whether the filter excludes the point of interest category.

func (*PointOfInterestFilter) IncludesCategory added in v0.17.0

func (poif *PointOfInterestFilter) IncludesCategory(category obj.Object) bool

IncludesCategory returns a Boolean value indicating whether the filter includes the point of interest category.

func (*PointOfInterestFilter) IsEqual added in v0.17.0

func (poif *PointOfInterestFilter) IsEqual(other obj.Object) bool

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

func (*PointOfInterestFilter) IsKind added in v0.17.0

func (poif *PointOfInterestFilter) IsKind(className string) bool

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

func (*PointOfInterestFilter) String added in v0.17.0

func (poif *PointOfInterestFilter) String() string

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

type Polygon added in v0.17.0

type Polygon struct {
	MultiPoint
}

Polygon is an idiomatic wrapper over the Objective-C class MKPolygon.

It embeds MultiPoint, promoting that type's methods.

A closed polygon overlay.

func NewPolygon added in v0.17.0

func NewPolygon() *Polygon

NewPolygon creates a new Polygon.

func PolygonFromID added in v0.17.0

func PolygonFromID(id objc.ID) *Polygon

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

func PolygonWithCoordinatesCount added in v0.17.0

func PolygonWithCoordinatesCount(coords unsafe.Pointer, count int) *Polygon

PolygonWithCoordinatesCount creates and returns a polygon object from the specified set of coordinates.

func PolygonWithCoordinatesCountInteriorPolygons added in v0.17.0

func PolygonWithCoordinatesCountInteriorPolygons(coords unsafe.Pointer, count int, interiorPolygons []*Polygon) *Polygon

PolygonWithCoordinatesCountInteriorPolygons creates and returns a polygon object from the specified set of coordinates and interior polygons.

func PolygonWithPointsCount added in v0.18.0

func PolygonWithPointsCount(points *MKMapPoint, count int) *Polygon

PolygonWithPointsCount creates and returns a polygon object from the specified set of map points.

func PolygonWithPointsCountInteriorPolygons added in v0.18.0

func PolygonWithPointsCountInteriorPolygons(points *MKMapPoint, count int, interiorPolygons []*Polygon) *Polygon

PolygonWithPointsCountInteriorPolygons creates and returns a polygon object from the specified set of map points and interior polygons.

func (*Polygon) InteriorPolygons added in v0.17.0

func (p *Polygon) InteriorPolygons() []*Polygon

InteriorPolygons returns the interior polygons.

InteriorPolygons returns the collection as a Go slice.

func (*Polygon) WithSubtitle added in v0.17.0

func (p *Polygon) WithSubtitle(subtitle string) *Polygon

WithSubtitle sets the subtitle of the shape annotation.

func (*Polygon) WithTitle added in v0.17.0

func (p *Polygon) WithTitle(title string) *Polygon

WithTitle sets the title of the shape annotation.

type PolygonRenderer added in v0.17.0

type PolygonRenderer struct {
	OverlayPathRenderer
}

PolygonRenderer is an idiomatic wrapper over the Objective-C class MKPolygonRenderer.

It embeds OverlayPathRenderer, promoting that type's methods.

The visual representation of a single polygon overlay.

func NewPolygonRendererWithPolygon added in v0.17.0

func NewPolygonRendererWithPolygon(polygon *Polygon) *PolygonRenderer

NewPolygonRendererWithPolygon creates a new renderer that handles drawing for the specified polygon overlay object.

func PolygonRendererFromID added in v0.17.0

func PolygonRendererFromID(id objc.ID) *PolygonRenderer

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

func (*PolygonRenderer) Polygon added in v0.17.0

func (pr *PolygonRenderer) Polygon() *Polygon

Polygon returns the polygon.

func (*PolygonRenderer) StrokeEnd added in v0.17.0

func (pr *PolygonRenderer) StrokeEnd() float64

StrokeEnd returns the stroke end.

func (*PolygonRenderer) StrokeStart added in v0.17.0

func (pr *PolygonRenderer) StrokeStart() float64

StrokeStart returns the stroke start.

func (*PolygonRenderer) WithAlpha added in v0.17.0

func (pr *PolygonRenderer) WithAlpha(alpha float64) *PolygonRenderer

WithAlpha sets the amount of transparency to apply to the overlay.

func (*PolygonRenderer) WithFillColor added in v0.17.0

func (pr *PolygonRenderer) WithFillColor(fillColor obj.Object) *PolygonRenderer

WithFillColor sets the fill color to use for the path.

func (*PolygonRenderer) WithLineDashPattern added in v0.17.0

func (pr *PolygonRenderer) WithLineDashPattern(items ...obj.Object) *PolygonRenderer

WithLineDashPattern sets an array of numbers specifying the dash pattern to use for the path.

func (*PolygonRenderer) WithLineDashPhase added in v0.17.0

func (pr *PolygonRenderer) WithLineDashPhase(lineDashPhase float64) *PolygonRenderer

WithLineDashPhase sets the offset (in points) at which to start drawing the dash pattern.

func (*PolygonRenderer) WithLineWidth added in v0.17.0

func (pr *PolygonRenderer) WithLineWidth(lineWidth float64) *PolygonRenderer

WithLineWidth sets the stroke width to use for the path.

func (*PolygonRenderer) WithMiterLimit added in v0.17.0

func (pr *PolygonRenderer) WithMiterLimit(miterLimit float64) *PolygonRenderer

WithMiterLimit sets the limiting value that helps avoid spikes at junctions between connected line segments.

func (*PolygonRenderer) WithPath added in v0.17.0

WithPath sets the path representing the overlay’s shape.

func (*PolygonRenderer) WithShouldRasterize added in v0.17.0

func (pr *PolygonRenderer) WithShouldRasterize(shouldRasterize bool) *PolygonRenderer

WithShouldRasterize sets a Boolean value that determines whether the overlay path renderer renders the overlay as a bitmap before compositing.

func (*PolygonRenderer) WithStrokeColor added in v0.17.0

func (pr *PolygonRenderer) WithStrokeColor(strokeColor obj.Object) *PolygonRenderer

WithStrokeColor sets the stroke color to use for the path.

func (*PolygonRenderer) WithStrokeEnd added in v0.17.0

func (pr *PolygonRenderer) WithStrokeEnd(strokeEnd float64) *PolygonRenderer

WithStrokeEnd sets the unit distance along the polygon where the stroke ends.

func (*PolygonRenderer) WithStrokeStart added in v0.17.0

func (pr *PolygonRenderer) WithStrokeStart(strokeStart float64) *PolygonRenderer

WithStrokeStart sets the unit distance along the polygon where the stroke starts.

type Polyline added in v0.17.0

type Polyline struct {
	MultiPoint
}

Polyline is an idiomatic wrapper over the Objective-C class MKPolyline.

Polyline is an abstract base — you do not construct it directly. Construct one of GeodesicPolyline and pass it where a Polyline is accepted.

An open polygon overlay consisting of one or more connected line segments.

func MKPolylinePolylineWithCoordinatesCount

func MKPolylinePolylineWithCoordinatesCount(coords unsafe.Pointer, count int) *Polyline

MKPolylinePolylineWithCoordinatesCount creates a polyline object from the specified set of coordinates.

func MKPolylinePolylineWithPointsCount

func MKPolylinePolylineWithPointsCount(points *MKMapPoint, count int) *Polyline

MKPolylinePolylineWithPointsCount creates a polyline object from the specified set of map points.

func PolylineFromID added in v0.17.0

func PolylineFromID(id objc.ID) *Polyline

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

func (*Polyline) WithSubtitle added in v0.17.0

func (p *Polyline) WithSubtitle(subtitle string) *Polyline

WithSubtitle sets the subtitle of the shape annotation.

func (*Polyline) WithTitle added in v0.17.0

func (p *Polyline) WithTitle(title string) *Polyline

WithTitle sets the title of the shape annotation.

type PolylineProvider added in v0.17.0

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

PolylineProvider is accepted wherever a MKPolyline (or one of its subclasses) is expected.

type PolylineRenderer added in v0.17.0

type PolylineRenderer struct {
	OverlayPathRenderer
}

PolylineRenderer is an idiomatic wrapper over the Objective-C class MKPolylineRenderer.

PolylineRenderer is an abstract base — you do not construct it directly. Construct one of GradientPolylineRenderer and pass it where a PolylineRenderer is accepted.

A visual representation of any polyline overlay object.

func NewPolylineRendererWithPolyline added in v0.17.0

func NewPolylineRendererWithPolyline(polyline *Polyline) *PolylineRenderer

NewPolylineRendererWithPolyline creates a new overlay view using the specified polyline overlay object.

func PolylineRendererFromID added in v0.17.0

func PolylineRendererFromID(id objc.ID) *PolylineRenderer

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

func (*PolylineRenderer) Polyline added in v0.17.0

func (pr *PolylineRenderer) Polyline() *Polyline

Polyline returns the polyline.

func (*PolylineRenderer) StrokeEnd added in v0.17.0

func (pr *PolylineRenderer) StrokeEnd() float64

StrokeEnd returns the stroke end.

func (*PolylineRenderer) StrokeStart added in v0.17.0

func (pr *PolylineRenderer) StrokeStart() float64

StrokeStart returns the stroke start.

func (*PolylineRenderer) WithAlpha added in v0.17.0

func (pr *PolylineRenderer) WithAlpha(alpha float64) *PolylineRenderer

WithAlpha sets the amount of transparency to apply to the overlay.

func (*PolylineRenderer) WithFillColor added in v0.17.0

func (pr *PolylineRenderer) WithFillColor(fillColor obj.Object) *PolylineRenderer

WithFillColor sets the fill color to use for the path.

func (*PolylineRenderer) WithLineDashPattern added in v0.17.0

func (pr *PolylineRenderer) WithLineDashPattern(items ...obj.Object) *PolylineRenderer

WithLineDashPattern sets an array of numbers specifying the dash pattern to use for the path.

func (*PolylineRenderer) WithLineDashPhase added in v0.17.0

func (pr *PolylineRenderer) WithLineDashPhase(lineDashPhase float64) *PolylineRenderer

WithLineDashPhase sets the offset (in points) at which to start drawing the dash pattern.

func (*PolylineRenderer) WithLineWidth added in v0.17.0

func (pr *PolylineRenderer) WithLineWidth(lineWidth float64) *PolylineRenderer

WithLineWidth sets the stroke width to use for the path.

func (*PolylineRenderer) WithMiterLimit added in v0.17.0

func (pr *PolylineRenderer) WithMiterLimit(miterLimit float64) *PolylineRenderer

WithMiterLimit sets the limiting value that helps avoid spikes at junctions between connected line segments.

func (*PolylineRenderer) WithPath added in v0.17.0

WithPath sets the path representing the overlay’s shape.

func (*PolylineRenderer) WithShouldRasterize added in v0.17.0

func (pr *PolylineRenderer) WithShouldRasterize(shouldRasterize bool) *PolylineRenderer

WithShouldRasterize sets a Boolean value that determines whether the overlay path renderer renders the overlay as a bitmap before compositing.

func (*PolylineRenderer) WithStrokeColor added in v0.17.0

func (pr *PolylineRenderer) WithStrokeColor(strokeColor obj.Object) *PolylineRenderer

WithStrokeColor sets the stroke color to use for the path.

func (*PolylineRenderer) WithStrokeEnd added in v0.17.0

func (pr *PolylineRenderer) WithStrokeEnd(strokeEnd float64) *PolylineRenderer

WithStrokeEnd sets the unit distance along the line where the stroke ends.

func (*PolylineRenderer) WithStrokeStart added in v0.17.0

func (pr *PolylineRenderer) WithStrokeStart(strokeStart float64) *PolylineRenderer

WithStrokeStart sets the unit distance along the line where the stroke starts.

type PolylineRendererProvider added in v0.17.0

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

PolylineRendererProvider is accepted wherever a MKPolylineRenderer (or one of its subclasses) is expected.

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

type ReverseGeocodingRequest struct {
	objref.Handle
}

ReverseGeocodingRequest is an idiomatic wrapper over the Objective-C class MKReverseGeocodingRequest.

A class that looks up address strings for the provided geographic coordinates.

func NewReverseGeocodingRequestWithLocation added in v0.17.0

func NewReverseGeocodingRequestWithLocation(location unsafe.Pointer) *ReverseGeocodingRequest

NewReverseGeocodingRequestWithLocation initializes a new reverse geocoder request object with the provided location.

func ReverseGeocodingRequestFromID added in v0.17.0

func ReverseGeocodingRequestFromID(id objc.ID) *ReverseGeocodingRequest

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

func (*ReverseGeocodingRequest) Cancel added in v0.17.0

func (rgr *ReverseGeocodingRequest) Cancel()

Cancel a method you call to cancel a reverse geocoding request that’s in progress.

func (*ReverseGeocodingRequest) Description added in v0.17.0

func (rgr *ReverseGeocodingRequest) Description() string

Description returns the object's -description text.

func (*ReverseGeocodingRequest) GetMapItems added in v0.17.0

func (rgr *ReverseGeocodingRequest) GetMapItems(ctx context.Context) (result obj.Object, err error)

GetMapItems returns the map items relevant to the reverse geocoded location.

GetMapItems blocks until the operation completes or ctx is cancelled.

func (*ReverseGeocodingRequest) IsCancelled added in v0.17.0

func (rgr *ReverseGeocodingRequest) IsCancelled() bool

IsCancelled reports whether the object is cancelled.

func (*ReverseGeocodingRequest) IsEqual added in v0.17.0

func (rgr *ReverseGeocodingRequest) IsEqual(other obj.Object) bool

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

func (*ReverseGeocodingRequest) IsKind added in v0.17.0

func (rgr *ReverseGeocodingRequest) IsKind(className string) bool

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

func (*ReverseGeocodingRequest) IsLoading added in v0.17.0

func (rgr *ReverseGeocodingRequest) IsLoading() bool

IsLoading reports whether the object is loading.

func (*ReverseGeocodingRequest) Location added in v0.18.0

func (rgr *ReverseGeocodingRequest) Location() unsafe.Pointer

Location returns the location.

func (*ReverseGeocodingRequest) PreferredLocale added in v0.17.0

func (rgr *ReverseGeocodingRequest) PreferredLocale() *foundation.Locale

PreferredLocale returns the preferred locale.

func (*ReverseGeocodingRequest) String added in v0.17.0

func (rgr *ReverseGeocodingRequest) String() string

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

func (*ReverseGeocodingRequest) WithPreferredLocale added in v0.17.0

func (rgr *ReverseGeocodingRequest) WithPreferredLocale(preferredLocale obj.Object) *ReverseGeocodingRequest

WithPreferredLocale sets a value that indicates the preferred locale for the addresses the request returns, or nil if the framework should use the device locale.

type Route added in v0.17.0

type Route struct {
	objref.Handle
}

Route is an idiomatic wrapper over the Objective-C class MKRoute.

A single route between a requested start and end point.

func NewRoute added in v0.17.0

func NewRoute() *Route

NewRoute creates a new Route.

func RouteFromID added in v0.17.0

func RouteFromID(id objc.ID) *Route

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

func (*Route) AdvisoryNotices added in v0.17.0

func (r *Route) AdvisoryNotices() []string

AdvisoryNotices returns the advisory notices.

AdvisoryNotices returns the collection as a Go slice.

func (*Route) Description added in v0.17.0

func (r *Route) Description() string

Description returns the object's -description text.

func (*Route) Distance added in v0.18.0

func (r *Route) Distance() unsafe.Pointer

Distance returns the distance.

func (*Route) ExpectedTravelTime added in v0.17.0

func (r *Route) ExpectedTravelTime() float64

ExpectedTravelTime returns the expected travel time.

func (*Route) HasHighways added in v0.17.0

func (r *Route) HasHighways() bool

HasHighways reports whether the object has highways.

func (*Route) HasTolls added in v0.17.0

func (r *Route) HasTolls() bool

HasTolls reports whether the object has tolls.

func (*Route) IsEqual added in v0.17.0

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

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

func (*Route) IsKind added in v0.17.0

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

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

func (*Route) Name added in v0.17.0

func (r *Route) Name() string

Name returns the name.

func (*Route) Polyline added in v0.17.0

func (r *Route) Polyline() *Polyline

Polyline returns the polyline.

func (*Route) Steps added in v0.17.0

func (r *Route) Steps() []*RouteStep

Steps returns the steps.

Steps returns the collection as a Go slice.

func (*Route) String added in v0.17.0

func (r *Route) String() string

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

func (*Route) TransportType added in v0.17.0

func (r *Route) TransportType() DirectionsTransportType

TransportType returns the transport type.

type RouteStep added in v0.17.0

type RouteStep struct {
	objref.Handle
}

RouteStep is an idiomatic wrapper over the Objective-C class MKRouteStep.

One portion of an overall route.

func NewRouteStep added in v0.17.0

func NewRouteStep() *RouteStep

NewRouteStep creates a new RouteStep.

func RouteStepFromID added in v0.17.0

func RouteStepFromID(id objc.ID) *RouteStep

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

func (*RouteStep) Description added in v0.17.0

func (rs *RouteStep) Description() string

Description returns the object's -description text.

func (*RouteStep) Distance added in v0.18.0

func (rs *RouteStep) Distance() unsafe.Pointer

Distance returns the distance.

func (*RouteStep) Instructions added in v0.17.0

func (rs *RouteStep) Instructions() string

Instructions returns the instructions.

func (*RouteStep) IsEqual added in v0.17.0

func (rs *RouteStep) IsEqual(other obj.Object) bool

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

func (*RouteStep) IsKind added in v0.17.0

func (rs *RouteStep) IsKind(className string) bool

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

func (*RouteStep) Notice added in v0.17.0

func (rs *RouteStep) Notice() string

Notice returns the notice.

func (*RouteStep) Polyline added in v0.17.0

func (rs *RouteStep) Polyline() *Polyline

Polyline returns the polyline.

func (*RouteStep) String added in v0.17.0

func (rs *RouteStep) String() string

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

func (*RouteStep) TransportType added in v0.17.0

func (rs *RouteStep) TransportType() DirectionsTransportType

TransportType returns the transport type.

type SearchCompletionFilterType deprecated added in v0.17.0

type SearchCompletionFilterType int64

Constants indicating the types of search completions to return.

Deprecated: Use MKLocalSearchCompleterResultType

const (
	SearchCompletionFilterTypeLocationsAndQueries SearchCompletionFilterType = 0
	SearchCompletionFilterTypeLocationsOnly       SearchCompletionFilterType = 1
)

func (SearchCompletionFilterType) String added in v0.17.0

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

type SelectionAccessory added in v0.17.0

type SelectionAccessory struct {
	objref.Handle
}

SelectionAccessory is an idiomatic wrapper over the Objective-C class MKSelectionAccessory.

The type of accessory to display for a selected annotation.

func MapItemDetailWithPresentationStyle added in v0.17.0

func MapItemDetailWithPresentationStyle(presentationStyle *MapItemDetailSelectionAccessoryPresentationStyle) *SelectionAccessory

MapItemDetailWithPresentationStyle detailed information about a place

func NewSelectionAccessory added in v0.17.0

func NewSelectionAccessory() *SelectionAccessory

NewSelectionAccessory creates a new SelectionAccessory.

func SelectionAccessoryFromID added in v0.17.0

func SelectionAccessoryFromID(id objc.ID) *SelectionAccessory

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

func (*SelectionAccessory) Description added in v0.17.0

func (sa *SelectionAccessory) Description() string

Description returns the object's -description text.

func (*SelectionAccessory) IsEqual added in v0.17.0

func (sa *SelectionAccessory) IsEqual(other obj.Object) bool

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

func (*SelectionAccessory) IsKind added in v0.17.0

func (sa *SelectionAccessory) IsKind(className string) bool

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

func (*SelectionAccessory) String added in v0.17.0

func (sa *SelectionAccessory) String() string

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

type Shape added in v0.17.0

type Shape struct {
	objref.Handle
}

Shape is an idiomatic wrapper over the Objective-C class MKShape.

Shape is an abstract base — you do not construct it directly. Construct one of Circle, MultiPoint, MultiPolygon, MultiPolyline, PointAnnotation and pass it where a Shape is accepted.

An abstract class that defines the basic properties for all shape-based overlay objects.

func ShapeFromID added in v0.17.0

func ShapeFromID(id objc.ID) *Shape

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

func (*Shape) Description added in v0.17.0

func (s *Shape) Description() string

Description returns the object's -description text.

func (*Shape) IsEqual added in v0.17.0

func (s *Shape) IsEqual(other obj.Object) bool

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

func (*Shape) IsKind added in v0.17.0

func (s *Shape) IsKind(className string) bool

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

func (*Shape) String added in v0.17.0

func (s *Shape) String() string

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

func (*Shape) Subtitle added in v0.17.0

func (s *Shape) Subtitle() string

Subtitle returns the subtitle.

func (*Shape) Title added in v0.17.0

func (s *Shape) Title() string

Title returns the title.

func (*Shape) WithSubtitle added in v0.17.0

func (s *Shape) WithSubtitle(subtitle string) *Shape

WithSubtitle sets the subtitle of the shape annotation.

func (*Shape) WithTitle added in v0.17.0

func (s *Shape) WithTitle(title string) *Shape

WithTitle sets the title of the shape annotation.

type ShapeProvider added in v0.17.0

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

ShapeProvider is accepted wherever a MKShape (or one of its subclasses) is expected.

type StandardMapConfiguration added in v0.17.0

type StandardMapConfiguration struct {
	MapConfiguration
}

StandardMapConfiguration is an idiomatic wrapper over the Objective-C class MKStandardMapConfiguration.

It embeds MapConfiguration, promoting that type's methods.

The class that represents the default map presentation, which is a street map that shows the position of all roads and some road names.

func NewStandardMapConfiguration added in v0.17.0

func NewStandardMapConfiguration() *StandardMapConfiguration

NewStandardMapConfiguration creates a new StandardMapConfiguration.

func NewStandardMapConfigurationWithElevationStyle added in v0.17.0

func NewStandardMapConfigurationWithElevationStyle(elevationStyle MapElevationStyle) *StandardMapConfiguration

NewStandardMapConfigurationWithElevationStyle creates a new standard map configuration with the specified elevation style.

func NewStandardMapConfigurationWithElevationStyleEmphasisStyle added in v0.17.0

func NewStandardMapConfigurationWithElevationStyleEmphasisStyle(elevationStyle MapElevationStyle, emphasisStyle StandardMapEmphasisStyle) *StandardMapConfiguration

NewStandardMapConfigurationWithElevationStyleEmphasisStyle creates a standard map configuration with the specified elevation and emphasis styles.

func NewStandardMapConfigurationWithEmphasisStyle added in v0.17.0

func NewStandardMapConfigurationWithEmphasisStyle(emphasisStyle StandardMapEmphasisStyle) *StandardMapConfiguration

NewStandardMapConfigurationWithEmphasisStyle creates a standard map configuration with the specified emphasis style.

func StandardMapConfigurationFromID added in v0.17.0

func StandardMapConfigurationFromID(id objc.ID) *StandardMapConfiguration

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

func (*StandardMapConfiguration) EmphasisStyle added in v0.17.0

EmphasisStyle returns the emphasis style.

func (*StandardMapConfiguration) PointOfInterestFilter added in v0.17.0

func (smc *StandardMapConfiguration) PointOfInterestFilter() *PointOfInterestFilter

PointOfInterestFilter returns the point of interest filter.

func (*StandardMapConfiguration) ShowsTraffic added in v0.17.0

func (smc *StandardMapConfiguration) ShowsTraffic() bool

ShowsTraffic wraps the corresponding Objective-C method.

func (*StandardMapConfiguration) WithElevationStyle added in v0.17.0

func (smc *StandardMapConfiguration) WithElevationStyle(elevationStyle MapElevationStyle) *StandardMapConfiguration

WithElevationStyle sets the value that indicates the map’s elevation style.

func (*StandardMapConfiguration) WithEmphasisStyle added in v0.17.0

func (smc *StandardMapConfiguration) WithEmphasisStyle(emphasisStyle StandardMapEmphasisStyle) *StandardMapConfiguration

WithEmphasisStyle sets the value that indicates how the framework emphasizes map features.

func (*StandardMapConfiguration) WithPointOfInterestFilter added in v0.17.0

func (smc *StandardMapConfiguration) WithPointOfInterestFilter(pointOfInterestFilter *PointOfInterestFilter) *StandardMapConfiguration

WithPointOfInterestFilter sets the filter used to determine the points of interest shown on the map.

func (*StandardMapConfiguration) WithShowsTraffic added in v0.17.0

func (smc *StandardMapConfiguration) WithShowsTraffic(showsTraffic bool) *StandardMapConfiguration

WithShowsTraffic sets a Boolean value that controls whether the map displays traffic conditions.

type StandardMapEmphasisStyle added in v0.17.0

type StandardMapEmphasisStyle int64

Values that control how the framework emphasizes map features.

const (
	StandardMapEmphasisStyleDefault StandardMapEmphasisStyle = 0
	StandardMapEmphasisStyleMuted   StandardMapEmphasisStyle = 1
)

func (StandardMapEmphasisStyle) String added in v0.17.0

func (e StandardMapEmphasisStyle) String() string

String returns the StandardMapEmphasisStyle 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 TileOverlay added in v0.17.0

type TileOverlay struct {
	objref.Handle
}

TileOverlay is an idiomatic wrapper over the Objective-C class MKTileOverlay.

An overlay that covers an area of the map with tiles of bitmap images.

func NewTileOverlayWithURLTemplate added in v0.17.0

func NewTileOverlayWithURLTemplate(urlTemplate string) *TileOverlay

NewTileOverlayWithURLTemplate creates and returns a tile overlay object using the specified tile-access template.

func TileOverlayFromID added in v0.17.0

func TileOverlayFromID(id objc.ID) *TileOverlay

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

func (*TileOverlay) CanReplaceMapContent added in v0.17.0

func (to *TileOverlay) CanReplaceMapContent() bool

CanReplaceMapContent wraps the corresponding Objective-C method.

func (*TileOverlay) Description added in v0.17.0

func (to *TileOverlay) Description() string

Description returns the object's -description text.

func (*TileOverlay) IsEqual added in v0.17.0

func (to *TileOverlay) IsEqual(other obj.Object) bool

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

func (*TileOverlay) IsGeometryFlipped added in v0.17.0

func (to *TileOverlay) IsGeometryFlipped() bool

IsGeometryFlipped reports whether the object is geometry flipped.

func (*TileOverlay) IsKind added in v0.17.0

func (to *TileOverlay) IsKind(className string) bool

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

func (*TileOverlay) LoadTileAtPathResult added in v0.18.1

func (to *TileOverlay) LoadTileAtPathResult(ctx context.Context, path MKTileOverlayPath) (result obj.Object, err error)

LoadTileAtPathResult loads the specified tile asynchronously.

LoadTileAtPathResult blocks until the operation completes or ctx is cancelled.

func (*TileOverlay) MaximumZ added in v0.17.0

func (to *TileOverlay) MaximumZ() int

MaximumZ returns the maximum z.

func (*TileOverlay) MinimumZ added in v0.17.0

func (to *TileOverlay) MinimumZ() int

MinimumZ returns the minimum z.

func (*TileOverlay) String added in v0.17.0

func (to *TileOverlay) String() string

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

func (*TileOverlay) TileSize added in v0.17.0

func (to *TileOverlay) TileSize() corefoundation.CGSize

TileSize returns the tile size.

func (*TileOverlay) URLForTilePath added in v0.18.1

func (to *TileOverlay) URLForTilePath(path MKTileOverlayPath) string

URLForTilePath returns the URL to use to access the specified tile.

func (*TileOverlay) URLTemplate added in v0.17.0

func (to *TileOverlay) URLTemplate() string

URLTemplate returns the URL template.

func (*TileOverlay) WithCanReplaceMapContent added in v0.17.0

func (to *TileOverlay) WithCanReplaceMapContent(canReplaceMapContent bool) *TileOverlay

WithCanReplaceMapContent sets a Boolean value that indicates whether the tile content is fully opaque.

func (*TileOverlay) WithGeometryFlipped added in v0.17.0

func (to *TileOverlay) WithGeometryFlipped(geometryFlipped bool) *TileOverlay

WithGeometryFlipped sets a Boolean value that indicates the orientation of tile indexes along the y-axis.

func (*TileOverlay) WithMaximumZ added in v0.17.0

func (to *TileOverlay) WithMaximumZ(maximumZ int) *TileOverlay

WithMaximumZ sets the maximum zoom level that the tiles of this overlay object support.

func (*TileOverlay) WithMinimumZ added in v0.17.0

func (to *TileOverlay) WithMinimumZ(minimumZ int) *TileOverlay

WithMinimumZ sets the minimum zoom level that the tiles of this overlay object support.

func (*TileOverlay) WithTileSize added in v0.17.0

func (to *TileOverlay) WithTileSize(tileSize corefoundation.CGSize) *TileOverlay

WithTileSize sets the size (in pixels) of your tile images.

type TileOverlayRenderer added in v0.17.0

type TileOverlayRenderer struct {
	OverlayRenderer
}

TileOverlayRenderer is an idiomatic wrapper over the Objective-C class MKTileOverlayRenderer.

It embeds OverlayRenderer, promoting that type's methods.

The renderer for a tile overlay that handles the drawing of bitmap images on the map surface.

func NewTileOverlayRendererWithTileOverlay added in v0.17.0

func NewTileOverlayRendererWithTileOverlay(overlay *TileOverlay) *TileOverlayRenderer

NewTileOverlayRendererWithTileOverlay initializes and returns a tile renderer with the specified overlay object.

func TileOverlayRendererFromID added in v0.17.0

func TileOverlayRendererFromID(id objc.ID) *TileOverlayRenderer

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

func (*TileOverlayRenderer) ReloadData added in v0.17.0

func (tor *TileOverlayRenderer) ReloadData()

ReloadData forces the tile overlay renderer to reload and redisplay the tiles.

func (*TileOverlayRenderer) WithAlpha added in v0.17.0

func (tor *TileOverlayRenderer) WithAlpha(alpha float64) *TileOverlayRenderer

WithAlpha sets the amount of transparency to apply to the overlay.

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

type UserLocation struct {
	objref.Handle
}

UserLocation is an idiomatic wrapper over the Objective-C class MKUserLocation.

An annotation that reflects the user’s location on the map.

func NewUserLocation added in v0.17.0

func NewUserLocation() *UserLocation

NewUserLocation creates a new UserLocation.

func UserLocationFromID added in v0.17.0

func UserLocationFromID(id objc.ID) *UserLocation

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

func (*UserLocation) Description added in v0.17.0

func (ul *UserLocation) Description() string

Description returns the object's -description text.

func (*UserLocation) Heading added in v0.17.0

func (ul *UserLocation) Heading() obj.Object

Heading returns the heading.

func (*UserLocation) IsEqual added in v0.17.0

func (ul *UserLocation) IsEqual(other obj.Object) bool

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

func (*UserLocation) IsKind added in v0.17.0

func (ul *UserLocation) IsKind(className string) bool

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

func (*UserLocation) IsUpdating added in v0.17.0

func (ul *UserLocation) IsUpdating() bool

IsUpdating reports whether the object is updating.

func (*UserLocation) Location added in v0.18.0

func (ul *UserLocation) Location() unsafe.Pointer

Location returns the location.

func (*UserLocation) String added in v0.17.0

func (ul *UserLocation) String() string

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

func (*UserLocation) Subtitle added in v0.17.0

func (ul *UserLocation) Subtitle() string

Subtitle returns the subtitle.

func (*UserLocation) Title added in v0.17.0

func (ul *UserLocation) Title() string

Title returns the title.

func (*UserLocation) WithSubtitle added in v0.17.0

func (ul *UserLocation) WithSubtitle(subtitle string) *UserLocation

WithSubtitle sets the subtitle to display for the user’s location annotation.

func (*UserLocation) WithTitle added in v0.17.0

func (ul *UserLocation) WithTitle(title string) *UserLocation

WithTitle sets the title to display for the user’s location annotation.

type UserLocationView added in v0.17.0

type UserLocationView struct {
	AnnotationView
}

UserLocationView is an idiomatic wrapper over the Objective-C class MKUserLocationView.

It embeds AnnotationView, promoting that type's methods.

A configurable annotation that shows the user’s location using the default MapKit style.

func NewUserLocationView added in v0.17.0

func NewUserLocationView() *UserLocationView

NewUserLocationView creates a new UserLocationView.

func UserLocationViewFromID added in v0.17.0

func UserLocationViewFromID(id objc.ID) *UserLocationView

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

func (*UserLocationView) WithAccessoryOffset added in v0.17.0

func (ulv *UserLocationView) WithAccessoryOffset(accessoryOffset corefoundation.CGPoint) *UserLocationView

WithAccessoryOffset sets an offset that changes the accessory’s default anchor point.

func (*UserLocationView) WithCalloutOffset added in v0.17.0

func (ulv *UserLocationView) WithCalloutOffset(calloutOffset corefoundation.CGPoint) *UserLocationView

WithCalloutOffset sets the offset (in points) at which to place the callout.

func (*UserLocationView) WithCanShowCallout added in v0.17.0

func (ulv *UserLocationView) WithCanShowCallout(canShowCallout bool) *UserLocationView

WithCanShowCallout sets a Boolean value that indicates whether the annotation view is able to display extra information in a callout.

func (*UserLocationView) WithCenterOffset added in v0.17.0

func (ulv *UserLocationView) WithCenterOffset(centerOffset corefoundation.CGPoint) *UserLocationView

WithCenterOffset sets the offset (in points) at which to display the view.

func (*UserLocationView) WithClusteringIdentifier added in v0.17.0

func (ulv *UserLocationView) WithClusteringIdentifier(clusteringIdentifier string) *UserLocationView

WithClusteringIdentifier sets an identifier that determines whether the annotation view participates in clustering.

func (*UserLocationView) WithCollisionMode added in v0.17.0

func (ulv *UserLocationView) WithCollisionMode(collisionMode AnnotationViewCollisionMode) *UserLocationView

WithCollisionMode sets the collision mode to use when interpreting the collision frame rectangle.

func (*UserLocationView) WithDetailCalloutAccessoryView added in v0.17.0

func (ulv *UserLocationView) WithDetailCalloutAccessoryView(detailCalloutAccessoryView obj.Object) *UserLocationView

WithDetailCalloutAccessoryView sets the detail accessory view to use in the standard callout.

func (*UserLocationView) WithDisplayPriority added in v0.17.0

func (ulv *UserLocationView) WithDisplayPriority(displayPriority float32) *UserLocationView

WithDisplayPriority sets the display priority of the annotation view.

func (*UserLocationView) WithDragState added in v0.17.0

func (ulv *UserLocationView) WithDragState(dragState AnnotationViewDragState) *UserLocationView

WithDragState sets the drag state of the annotation view.

func (*UserLocationView) WithDraggable added in v0.17.0

func (ulv *UserLocationView) WithDraggable(draggable bool) *UserLocationView

WithDraggable sets a Boolean value that indicates whether the annotation view is draggable.

func (*UserLocationView) WithEnabled added in v0.17.0

func (ulv *UserLocationView) WithEnabled(enabled bool) *UserLocationView

WithEnabled sets a Boolean value that indicates whether the annotation is in an enabled state.

func (*UserLocationView) WithHighlighted added in v0.17.0

func (ulv *UserLocationView) WithHighlighted(highlighted bool) *UserLocationView

WithHighlighted sets a Boolean value that indicates whether the map view highlights the annotation view.

func (*UserLocationView) WithImage added in v0.17.0

func (ulv *UserLocationView) WithImage(image obj.Object) *UserLocationView

WithImage sets the image the annotation view displays.

func (*UserLocationView) WithLeftCalloutAccessoryView added in v0.17.0

func (ulv *UserLocationView) WithLeftCalloutAccessoryView(leftCalloutAccessoryView obj.Object) *UserLocationView

WithLeftCalloutAccessoryView sets the view to display on the left side of the standard callout.

func (*UserLocationView) WithLeftCalloutOffset added in v0.17.0

func (ulv *UserLocationView) WithLeftCalloutOffset(leftCalloutOffset corefoundation.CGPoint) *UserLocationView

WithLeftCalloutOffset sets the offset in points from the middle-left of the annotation view.

func (*UserLocationView) WithRightCalloutAccessoryView added in v0.17.0

func (ulv *UserLocationView) WithRightCalloutAccessoryView(rightCalloutAccessoryView obj.Object) *UserLocationView

WithRightCalloutAccessoryView sets the view to display on the right side of the standard callout.

func (*UserLocationView) WithRightCalloutOffset added in v0.17.0

func (ulv *UserLocationView) WithRightCalloutOffset(rightCalloutOffset corefoundation.CGPoint) *UserLocationView

WithRightCalloutOffset sets the offset in points from the middle-right of the annotation view.

func (*UserLocationView) WithSelected added in v0.17.0

func (ulv *UserLocationView) WithSelected(selected bool) *UserLocationView

WithSelected sets a Boolean value that indicates whether the annotation view is in a selected state.

func (*UserLocationView) WithSelectedZPriority added in v0.17.0

func (ulv *UserLocationView) WithSelectedZPriority(selectedZPriority float32) *UserLocationView

WithSelectedZPriority sets the relative importance of the annotation view when in a selected state with respect to its ordering along the z-axis.

func (*UserLocationView) WithZPriority added in v0.17.0

func (ulv *UserLocationView) WithZPriority(zPriority float32) *UserLocationView

WithZPriority sets the relative importance of the annotation view when in an unselected state with respect to its ordering along the z-axis.

type UserTrackingMode added in v0.17.0

type UserTrackingMode int64

The mode to use for tracking the user’s location on the map.

const (
	// The map doesn’t follow the user’s location.
	UserTrackingModeNone UserTrackingMode = 0
	// The map follows the user location.
	UserTrackingModeFollow UserTrackingMode = 1
)

func (UserTrackingMode) String added in v0.17.0

func (e UserTrackingMode) String() string

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

type VirtualMemoryGuardExceptionCode added in v0.17.0

type VirtualMemoryGuardExceptionCode uint32
const (
	KGUARD_EXC_DEALLOC_GAP                   VirtualMemoryGuardExceptionCode = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        VirtualMemoryGuardExceptionCode = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         VirtualMemoryGuardExceptionCode = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    VirtualMemoryGuardExceptionCode = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    VirtualMemoryGuardExceptionCode = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         VirtualMemoryGuardExceptionCode = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         VirtualMemoryGuardExceptionCode = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  VirtualMemoryGuardExceptionCode = 12
	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 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.

type ZoomControl added in v0.17.0

type ZoomControl struct {
	objref.Handle
}

ZoomControl is an idiomatic wrapper over the Objective-C class MKZoomControl.

A specialized view that displays and controls the zoom level of the map view.

func NewZoomControl added in v0.17.0

func NewZoomControl() *ZoomControl

NewZoomControl creates a new ZoomControl.

func ZoomControlFromID added in v0.17.0

func ZoomControlFromID(id objc.ID) *ZoomControl

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

func ZoomControlWithMapView added in v0.17.0

func ZoomControlWithMapView(mapView *MapView) *ZoomControl

ZoomControlWithMapView creates a zoom control and associates it with the specified map view.

func (*ZoomControl) Description added in v0.17.0

func (zc *ZoomControl) Description() string

Description returns the object's -description text.

func (*ZoomControl) IsEqual added in v0.17.0

func (zc *ZoomControl) IsEqual(other obj.Object) bool

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

func (*ZoomControl) IsKind added in v0.17.0

func (zc *ZoomControl) IsKind(className string) bool

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

func (*ZoomControl) MapView added in v0.17.0

func (zc *ZoomControl) MapView() *MapView

MapView returns the map view.

func (*ZoomControl) String added in v0.17.0

func (zc *ZoomControl) String() string

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

func (*ZoomControl) WithMapView added in v0.17.0

func (zc *ZoomControl) WithMapView(mapView *MapView) *ZoomControl

WithMapView sets the map view associated with this control.

Source Files

Jump to

Keyboard shortcuts

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