ESTSettingPowerMotionOnlyBroadcastingDelay

@interface ESTSettingPowerMotionOnlyBroadcastingDelay
    : ESTSettingReadWrite <NSCopying>

ESTSettingPowerMotionOnlyBroadcastingDelay represents Power MotionOnlyBroadcastingDelay value.

  • Designated initializer. Validates provided value internally with +validationErrorForValue:.

    See

    +[ESTSettingPowerMotionOnlyBroadcastingDelay validationErrorForValue:]

    Declaration

    Objective-C

    - (nonnull instancetype)initWithValue:(unsigned int)motionOnlyBroadcastingDelay;

    Swift

    init(value motionOnlyBroadcastingDelay: UInt32)

    Parameters

    motionOnlyBroadcastingDelay

    Power MotionOnlyBroadcastingDelay value in milliseconds.

    Return Value

    Initialized object. Nil if validation fails.

  • Returns current value of Power MotionOnlyBroadcastingDelay setting in milliseconds.

    Declaration

    Objective-C

    - (unsigned int)getValue;

    Swift

    func getValue() -> UInt32

    Return Value

    Power MotionOnlyBroadcastingDelay value.

  • Method allows to read value of initialized Power MotionOnlyBroadcastingDelay setting object.

    Declaration

    Objective-C

    - (void)readValueWithCompletion:
        (nonnull ESTSettingPowerMotionOnlyBroadcastingDelayCompletionBlock)
            completion;

    Swift

    func readValue(completion: @escaping ESTSettingPowerMotionOnlyBroadcastingDelayCompletionBlock)

    Parameters

    completion

    Block to be invoked when operation is complete.

    Return Value

    Initialized operation object.

  • Method allows to create write operation from already initialized Power MotionOnlyBroadcastingDelay setting object. Value provided during initialization will be used as a desired value.

    Declaration

    Objective-C

    - (void)writeValue:(unsigned int)motionOnlyBroadcastingDelay
            completion:
                (nonnull ESTSettingPowerMotionOnlyBroadcastingDelayCompletionBlock)
                    completion;

    Swift

    func writeValue(_ motionOnlyBroadcastingDelay: UInt32, completion: @escaping ESTSettingPowerMotionOnlyBroadcastingDelayCompletionBlock)

    Parameters

    motionOnlyBroadcastingDelay

    MotionOnlyBroadcastingDelay value in milliseconds to be written to the device.

    completion

    Block to be invoked when operation is complete.

    Return Value

    Initialized operation object.

  • Method checks if provided value is allowed. Returns nil if validation passes.

    Declaration

    Objective-C

    + (NSError *_Nullable)validationErrorForValue:
        (unsigned int)motionOnlyBroadcastingDelay;

    Swift

    class func validationError(forValue motionOnlyBroadcastingDelay: UInt32) -> Error?

    Parameters

    motionOnlyBroadcastingDelay

    MotionOnlyBroadcastingDelay value.

    Return Value

    Error object describing why validation failed. Nil if validation passes.