Function

clamp

Restricts the given value to the range defined by min and max.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

clamp

Android
public fun clamp(value: RemoteFloat, min: RemoteFloat, max: RemoteFloat): RemoteFloat

Restricts the given value to the range defined by min and max.

Parameters

min The lower bound of the range
max The upper bound of the range
value The RemoteFloat value to be clamped