unregister

abstract fun unregister(@NotNull name: @NotNull String): Boolean

Unregisters a codec by its name.

Return

true if the codec was successfully unregistered, false if the codec was not found.

Parameters

name

The name of the codec to unregister.


abstract fun unregister(@NotNull supplier: @NotNull CodecSupplier<out Any, out Any>): Boolean

Unregisters a codec supplier.

Return

true if the codec was successfully unregistered, false if the codec was not found.

Parameters

supplier

The codec supplier to unregister.