Tune
public class Tune
Enable creating and sending a tune to be played on the system.
-
Initializes a new
Tuneplugin.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 RuntimeTuneError : Error -
Undocumented
See moreDeclaration
Swift
public struct TuneError : Error -
An element of the tune
See moreDeclaration
Swift
public enum SongElement : Equatable -
Tune description, containing song elements and tempo.
See moreDeclaration
Swift
public struct TuneDescription : Equatable -
Declaration
Swift
public struct TuneResult : Equatable -
Send a tune to be played by the system.
Declaration
Swift
public func playTune(tuneDescription: TuneDescription) -> CompletableParameters
tuneDescriptionThe tune to be played
View on GitHub
Install in Dash
Tune Class Reference