Core
public class Core
Access to the connection state and running plugins.
-
Initializes a new
Core
plugin.Normally never created manually, but used from the
Drone
helper class instead.Declaration
Swift
public convenience init(address: String = "localhost", port: Int32 = 50051, scheduler: SchedulerType = ConcurrentDispatchQueueScheduler(qos: .background))
Parameters
address
The address of the
MavsdkServer
instance to connect toport
The port of the
MavsdkServer
instance to connect toscheduler
The scheduler to be used by
Observable
s -
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]>