FitnessMachineStatusTargetedDistance
@available(swift 3.1)
@available(iOS 10.0, tvOS 10.0, watchOS 3.0, macOS 10.12, *)
public struct FitnessMachineStatusTargetedDistance : FitnessMachineStatus
Status Value for Fitness Machine Targeted Distance Changed
-
Status Code
Declaration
Swift
private(set) public var statusCode: FitnessMachineStatusCode { get }
-
New Targeted Distance
Declaration
Swift
private(set) public var distance: FitnessMachineTargetDistance { get }
-
Create Fitness Machine Status for Targeted Distance Changed
Declaration
Swift
public init(distance: FitnessMachineTargetDistance)
Parameters
distance
FitnessMachineTargetDistance
-
Encodes Status into Data
Declaration
Swift
public func encode() -> Result<Data, BluetoothEncodeError>
Return Value
Encoded Data Result