ExternalMapDataSourceServer
public class ExternalMapDataSourceServer
extension ExternalMapDataSourceServer: NativeBase
extension ExternalMapDataSourceServer: Hashable
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
Creates a new instance of this class.
Throws
InstantiationErrorIndicates what went wrong when the instantiation was attempted.Declaration
Swift
public init() throws -
Exposes map data source as GRPC service on given url for
SDKNativeEngine. The exposed service can be consumed with the help ofExternalMapDataSourceClient.configureRemoteConnectionAsync(...). It is a non-blocking function, and the result will be returned via a callback.ServerStartedHandle.Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
Declaration
Swift
public func start(url: String, engine: SDKNativeEngine, serviceCredential: SslServerCredentialsOptions?, callback: @escaping ServerStartedHandle)Parameters
urlURL in the ‘ip_address:port’ format. Address will be used to bind to the GRPC server.
engineInstance of an existing
SDKNativeEngine.serviceCredentialInstance of
SslServerCredentialsOptionscallbackProtocol to retrieve an operation status on the main thread.
-
Stops the exposed map data source GRPC service started using
ExternalMapDataSourceServer.start(...).Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
Throws
ExternalMapDataSourceExceptionErrorIndicates what went wrong when trying to stop exposed external map data source service.Declaration
Swift
public func stop() throws