DefaultAvatarOption

sealed class DefaultAvatarOption

The default avatar image to use when the user does not have a Gravatar image.

Inheritors

Types

Link copied to clipboard
data class CustomUrl(val defaultImageUrl: String) : DefaultAvatarOption

If you prefer to use your own default image (perhaps your logo, a funny face, whatever), then you can easily do so by using the CustomUrl option and supplying the URL to an image.

Link copied to clipboard

Identicon: a geometric pattern based on an email hash

Link copied to clipboard

Monster: a generated "monster" with different colors, faces, etc

Link copied to clipboard

Mystery Person: simple, cartoon-style silhouetted outline of a person (does not vary by email)

Link copied to clipboard

Retro: awesome generated, 8-bit arcade-style pixelated faces

Link copied to clipboard

Robohash: a generated robot with different colors, faces, etc

Link copied to clipboard

404: Fallback to a 404 error instead of returning a default image. This allows to detect if the user doesn't have a Gravatar image

Link copied to clipboard

Blank: a transparent PNG image

Link copied to clipboard

Wavatar: generated faces with differing features and backgrounds

Functions

Link copied to clipboard

Get the query parameter for the default avatar image depending on the type of default avatar image.