-
public final class GGWaveCodec
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classGGWaveCodec.Builder
-
Method Summary
Modifier and Type Method Description final Unitencode(String message, SuspendFunction2<ByteArray, Long, Unit> result)final UnitencodeAndPlay(String message, Function0<Unit> playFinished, Function1<AudioTrack, Unit> periodicNotification)final Unitdecode(ByteArray waveform, Integer waveFormSize, SuspendFunction1<String, Unit> result)final UnitstopListeningFlow()final <ERROR CLASS>startListeningFlow()final StringlistenAndDecode(Long listeningTime)Listen a GGWave message for a given time and decode it in the end of the listening. -
-
Method Detail
-
encodeAndPlay
final Unit encodeAndPlay(String message, Function0<Unit> playFinished, Function1<AudioTrack, Unit> periodicNotification)
-
decode
final Unit decode(ByteArray waveform, Integer waveFormSize, SuspendFunction1<String, Unit> result)
-
stopListeningFlow
final Unit stopListeningFlow()
-
startListeningFlow
@RequiresPermission(value = android.permission.RECORD_AUDIO) final <ERROR CLASS> startListeningFlow()
-
listenAndDecode
@RequiresPermission(value = android.permission.RECORD_AUDIO) final String listenAndDecode(Long listeningTime)
Listen a GGWave message for a given time and decode it in the end of the listening.
-
-
-
-