public class HKAnnotations
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.HashMap<java.lang.String,HKAnnotation> |
annotations
A map of annotation IDs to HKAnnotation objects in the current scene
|
Constructor and Description |
---|
HKAnnotations() |
Modifier and Type | Method and Description |
---|---|
void |
create(HKAnnotation annotation)
Create an annotation in the scene with an HKAnnotation object.
|
void |
destroy(java.lang.String annotationId)
Delete an annotation in the scene
|
void |
hide()
Hides the annotations in the scene
This allows apps to draw native annotations over the view
|
void |
show()
Shows the annotations in the current scene
|
void |
update(java.lang.String annotationId)
Update an annotation in the scene with an updated HKAnnotation object.
|
public java.util.HashMap<java.lang.String,HKAnnotation> annotations
public void show()
public void hide()
public void create(HKAnnotation annotation)
annotation:
- set up an HKAnnotation object and pass it to this function to add it to the scenepublic void update(java.lang.String annotationId)
annotationId:
- Id of the updated annotation to update in the scenepublic void destroy(java.lang.String annotationId)
annotationId:
- Id of the annotation to remove from the scene