OfflineHorizonEngineFactory

public enum OfflineHorizonEngineFactory

Factory to create a default horizon engine with an offline map.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Creates a default horizon engine with the provided offline map.

    Throws

    An error if either NDSStore is invalid or an instance of HorizonEngine cannot be created.

    Declaration

    Swift

    public static func create(
        ndsStore: NDSStore,
        horizonDataAdapters: [HorizonDataAdapter] = []
    ) throws
        -> HorizonEngine

    Return Value

    Instance of HorizonEngine.