calculateRange
abstract fun calculateRange(rangeCalculationOptions: RangeCalculationOptions): Result<RangeCalculationResult, RangeCalculationFailure>
Synchronously calculates a range using the provided RangeCalculationOptions object. If the call succeeds, returns a RangeCalculationResult. If it fails, returns a RangeCalculationFailure.
Return
If the call succeeds, returns a RangeCalculationResult. If it fails, returns a RangeCalculationFailure.
Parameters
rangeCalculationOptions
The object containing the range options needed to calculate a range.
abstract fun calculateRange(rangeCalculationOptions: RangeCalculationOptions, callback: Callback<RangeCalculationResult, RangeCalculationFailure>): Cancellable
Asynchronously calculates a range using the provided RangeCalculationOptions object and returns the calculated range in the RangeCalculationCallback.
Return
cancellable operation.
Parameters
rangeCalculationOptions
The object containing the range options needed to calculate a range.
callback
The Callback invoked when the operation has finished, either successfully or with an error. The callback will be executed in the main thread.