Interface ThumbHashPlaceholder


public interface ThumbHashPlaceholder
Represents a "ThumbHash", a very compact representation of an image, stored inline with a media's data, enabling a smoother loading experience.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    The ThumbHash as a base64 string, as transmitted by Discord.
    byte[]
    The binary Thumbhash.
    int
    The version of the placeholder
  • Method Details

    • getVersion

      int getVersion()
      The version of the placeholder
      Returns:
      The placeholder version
    • asBase64

      @Nonnull String asBase64()
      The ThumbHash as a base64 string, as transmitted by Discord.
      Returns:
      Base64 of the ThumbHash
      See Also:
    • asBinary

      @Nonnull byte[] asBinary()
      The binary Thumbhash. This does not represent a valid image of any format, it must be converted, see ThumbHash implementations
      Returns:
      Base64 of the Thumbhash
      See Also: