VenueEngine
public class VenueEngine
extension VenueEngine: NativeBase
extension VenueEngine: Hashable
VenueEngine is an add-on to the base map functionality with its own content loading and cache. VenueEngine gives access to the venue functionality, which allows you to load and visualize venues on the map, search content inside venues etc.
-
Creates a new instance of this class.
Throws
InstantiationErrorIndicates what went wrong when the instantiation was attempted.Declaration
Swift
public init(callback: VenueEngineInitCompletionHandler?) throwsParameters
callbackThe optional callback that will be triggered when a venue engine initialization will be completed. After the initialization, the
VenueServiceshould be started using one of its methods or usingVenueEngine.start(String). -
Creates a new instance of this class.
Throws
InstantiationErrorIndicates what went wrong when the instantiation was attempted.Declaration
Swift
public init(_ sdkEngine: SDKNativeEngine, callback: VenueEngineInitCompletionHandler?) throwsParameters
sdkEngineInstance of existing SDKEngine.
callbackThe optional callback that will be triggered when a venue engine initialization will be completed. After the initialization, the
VenueServiceshould be started using one of its methods or usingVenueEngine.start(String). -
The venue service. Gets the
VenueService. This service can be used to load theVenueModelobjects.Declaration
Swift
public var venueService: VenueService { get } -
The venue map. Gets a venue map to visualize venues and control the state of the venues on the map. You need to start the
VenueServiceto be able to load venues.Declaration
Swift
public var venueMap: VenueMap { get } -
Authenticates asynchronously using HERE SDK credentials and uses a result token to start the
VenueService. An initialization status of the venue service is returned to objects registered asVenueServiceDelegate. If the authentication will fail, the venue service will not be started.Declaration
Swift
public func start(callback: AuthenticationCompletionHandler?)Parameters
callbackThe optional callback that will be triggered when the authentication will be completed. If the authentication fails, the venue service will not be started.
-
Authenticates asynchronously using HERE SDK credentials using a token to start the
VenueService. An initialization status of the venue service is returned to objects registered asVenueServiceDelegate. If the authentication will fail, the venue service will not be started.Declaration
Swift
public func start(token: String)Parameters
tokenSDK project scope token to be used for authentication
-
Releases all internally used resources. The instance can’t be used anymore after calling this method.
Declaration
Swift
public func destroy()