HKAnnotations

public class HKAnnotations : NSObject

HKAnnotations manages object annotations in the scene

Since

SDK 2.0
  • A map of annotation IDs to HKAnnotation objects in the current scene

    Declaration

    Swift

    @objc
    public var annotations: [String : HKAnnotation]
  • Shows the annotations in the current scene

    Declaration

    Swift

    @objc
    public func show()
  • Hides the annotations in the scene This allows apps to draw native annotations over the view

    Declaration

    Swift

    @objc
    public func hide()
  • Create an annotation in the scene with an HKAnnotation object.

    Since

    SDK 2.0

    Declaration

    Swift

    @objc
    public func create(annotation: HKAnnotation)

    Parameters

    annotation

    set up an HKAnnotation object and pass it to this function to add it to the scene

  • Update an annotation in the scene with an updated HKAnnotation object.

    Since

    SDK 2.0

    Declaration

    Swift

    @objc
    public func update(annotationId: String)

    Parameters

    annotationId

    Id of the updated annotation to update in the scene

  • Delete an annotation in the scene

    Since

    SDK 2.0

    Declaration

    Swift

    @objc
    public func destroy(annotationId: String)

    Parameters

    annotationId

    Id of the annotation to remove from the scene