forCurrentLocation
TypeScriptstatic forCurrentLocation(): MKMapItemSwift declarationclass func forCurrentLocation() -> MKMapItemclass · iOS 6.0+ · SDK 27.1
class MKMapItemstatic forCurrentLocation(): MKMapItemSwift declarationclass func forCurrentLocation() -> MKMapItemstatic openMapsWithLaunchOptions(mapItems: Array<MKMapItem>, launchOptions?: (Record<string, unknown>) | null): booleanSwift declarationclass func openMaps(with mapItems: [MKMapItem], launchOptions: [String : Any]? = nil) -> Boolstatic openMapsWithLaunchOptionsFromCompletionHandler(mapItems: Array<MKMapItem>, launchOptions?: (Record<string, unknown>) | null, scene?: (_UIKit_UIScene) | null, completion?: (((arg0: boolean) => void)) | null): voidSwift declarationclass func openMaps(with mapItems: [MKMapItem], launchOptions: [String : Any]? = nil, from scene: UIScene?) async -> Boolstatic initLocationAddress(location: __LocationEssentials_CLLocation, address?: (MKAddress) | null): MKMapItemSwift declarationinit(location: CLLocation, address: MKAddress?)static initPlacemark(placemark: MKPlacemark): MKMapItemSwift declarationinit(placemark: MKPlacemark)openInMapsLaunchOptions(launchOptions?: (Record<string, unknown>) | null): booleanSwift declarationfunc openInMaps(launchOptions: [String : Any]? = nil) -> BoolopenInMapsLaunchOptionsFromCompletionHandler(launchOptions?: (Record<string, unknown>) | null, scene?: (_UIKit_UIScene) | null, completion?: (((arg0: boolean) => void)) | null): voidSwift declarationfunc openInMaps(launchOptions: [String : Any]? = nil, from scene: UIScene?) async -> Boolget address(): (MKAddress) | nullSwift declarationvar address: MKAddress? { get }get addressRepresentations(): (MKAddressRepresentations) | nullSwift declarationvar addressRepresentations: MKAddressRepresentations? { get }get alternateIdentifiers(): Array<MKMapItem_Identifier>Swift declarationvar alternateIdentifiers: Set<MKMapItem.Identifier> { get }get identifier(): (MKMapItem_Identifier) | nullSwift declarationvar identifier: MKMapItem.Identifier? { get }get isCurrentLocation(): booleanSwift declarationvar isCurrentLocation: Bool { get }get location(): __LocationEssentials_CLLocationSwift declarationvar location: CLLocation { get }get name(): (string) | nullSwift declarationvar name: String? { get set }set name(value: (string) | null)Swift declarationvar name: String? { get set }get phoneNumber(): (string) | nullSwift declarationvar phoneNumber: String? { get set }set phoneNumber(value: (string) | null)Swift declarationvar phoneNumber: String? { get set }get placemark(): MKPlacemarkSwift declarationvar placemark: MKPlacemark { get }get pointOfInterestCategory(): (MKPointOfInterestCategory) | nullSwift declarationvar pointOfInterestCategory: MKPointOfInterestCategory? { get set }set pointOfInterestCategory(value: (MKPointOfInterestCategory) | null)Swift declarationvar pointOfInterestCategory: MKPointOfInterestCategory? { get set }get timeZone(): (_Foundation_TimeZone) | nullSwift declarationvar timeZone: TimeZone? { get set }set timeZone(value: (_Foundation_TimeZone) | null)Swift declarationvar timeZone: TimeZone? { get set }get url(): (string) | nullSwift declarationvar url: URL? { get set }set url(value: (string) | null)Swift declarationvar url: URL? { get set }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MKMapItem.init()
inherited init: cannot prove legal (class declares 2 custom initializers)