Setting
public struct Setting : Equatable
Type to represent a setting with a selected option.
-
Undocumented
Declaration
Swift
public let settingID: String -
Undocumented
Declaration
Swift
public let settingDescription: String -
Undocumented
Declaration
Swift
public let option: Option -
Undocumented
Declaration
Swift
public let isRange: Bool -
Initializes a new
Setting.Declaration
Swift
public init(settingID: String, settingDescription: String, option: Option, isRange: Bool)Parameters
settingIDName of a setting (machine readable)
settingDescriptionDescription of the setting (human readable). This field is meant to be read from the drone, ignore it when setting.
optionSelected option
isRangeIf option is given as a range. This field is meant to be read from the drone, ignore it when setting.
-
Declaration
Swift
public static func == (lhs: Setting, rhs: Setting) -> Bool
View on GitHub
Install in Dash
Setting Structure Reference