Core
public class Core
Access to the connection state and running plugins.
-
Initializes a new
Coreplugin.Normally never created manually, but used from the
Dronehelper class instead.Declaration
Swift
public convenience init(address: String = "localhost", port: Int32 = 50051, scheduler: SchedulerType = ConcurrentDispatchQueueScheduler(qos: .background))Parameters
addressThe address of the
MavsdkServerinstance to connect toportThe port of the
MavsdkServerinstance to connect toschedulerThe scheduler to be used by
Observables -
Undocumented
See moreDeclaration
Swift
public struct RuntimeCoreError : Error -
Connection state type.
See moreDeclaration
Swift
public struct ConnectionState : Equatable -
Plugin info type.
See moreDeclaration
Swift
public struct PluginInfo : Equatable -
Subscribe to ‘connection state’ updates.
Declaration
Swift
public lazy var connectionState: Observable<ConnectionState> { get set } -
Get a list of currently running plugins.
Declaration
Swift
public func listRunningPlugins() -> Single<[PluginInfo]>
View on GitHub
Install in Dash
Core Class Reference