Gravatar

object Gravatar

Entry point for initializing the Gravatar SDK.

Properties

Link copied to clipboard

The app name the SDK sends, in the X-Source header and at the head of userAgent, or null when there is none to send.

Link copied to clipboard

The User-Agent the SDK sends, e.g. wp-android/27.6 GravatarAndroid/2.5.0.

Functions

Link copied to clipboard
fun apiKey(apiKey: String): Gravatar

Initializes the Gravatar SDK with the given API key.

Link copied to clipboard
fun appIdentifier(name: String, version: String? = null): Gravatar

Identifies the app calling the SDK, for the X-Source header and the User-Agent.

Link copied to clipboard
fun context(context: Context): Gravatar

Initializes the Gravatar SDK with the given context. The context is used to get the application name and version, which identify the app in the X-Source header and the User-Agent of every request.