calculateRange
abstract fun calculateRange(rangeCalculationOptions: RangeCalculationOptions): Result<RangeCalculationResult, RangeCalculationFailure>
Synchronously calculates a range using the provided RangeCalculationOptions.
Return
If the call succeeds, returns a RangeCalculationResult. If it fails, returns a RangeCalculationFailure.
Parameters
rangeCalculationOptions
Determines origin, budget, and other parameters.
abstract fun calculateRange(rangeCalculationOptions: RangeCalculationOptions, callback: Callback<RangeCalculationResult, RangeCalculationFailure>): Cancellable
Asynchronously calculates a range using the provided RangeCalculationOptions object. If the operation succeeds, Callback.onSuccess is called for the callback
with a RangeCalculationResult. Otherwise, Callback.onFailure is called with a RangeCalculationFailure.
Return
A cancellable operation.
Parameters
rangeCalculationOptions
Determines origin, budget, and other parameters.
callback
The Callback invoked when the operation has finished, either successfully or with an error. The callback will be executed in the main thread.