Skip to content

Sampler

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

interface Sampler

Interface representing the sampling.

Inheritors

RateBasedSampler

Functions

getSampleRate

@FloatRange(from = 0.0, to = 100.0)

abstract fun getSampleRate(): Float?

Return

the sample rate if applicable, as a float between 0 and 100, or null if not applicable

sample

abstract fun sample(): Boolean

Sampling method.

Return

true if you want to keep the value, false otherwise.

Clone this wiki locally