public class MKUserLocation extends NSObject implements MKAnnotation
Modifier and Type | Method and Description |
---|---|
CLLocationCoordinate2D |
coordinate()
Define the central point of the annotation.
|
boolean |
isUpdating()
Returns a Boolean that shows whether user's location is being updated.
|
CLLocation |
location()
Returns the current location of the device.
|
void |
setSubtitle(String subtitle)
Sets the subtitle of user's location annotation.
|
void |
setTitle(String title)
Sets the title of user's location annotation.
|
String |
subtitle()
Returns the subtitle of the annotation on the map view.
|
String |
title()
Returns the title of the annotation on the map view.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setCoordinate
public CLLocation location()
public boolean isUpdating()
public String subtitle()
MKAnnotation
subtitle
in interface MKAnnotation
public void setSubtitle(String subtitle)
subtitle
- The subtitle of user's location annotation.public String title()
MKAnnotation
title
in interface MKAnnotation
public void setTitle(String title)
title
- The title of user's location annotation.public CLLocationCoordinate2D coordinate()
MKAnnotation
coordinate
in interface MKAnnotation
Copyright © 2020. All rights reserved.