LinkPreview


public final class LinkPreview


An object representing a link preview content.

Summary

Nested types

public final class LinkPreview.Builder

Builder class for LinkPreview.

Public fields

final String
final String

Public methods

String

Sets the text to indicate the webpage owner, eg “INSIDER”.

Optional<Image>

Sets the hero image for the website.

String

Sets the text to indicate the title of the website.

Public fields

hostname

public final String hostname

title

public final String title

Public methods

getHostname

public String getHostname()

Sets the text to indicate the webpage owner, eg “INSIDER”.

getImage

public Optional<ImagegetImage()

Sets the hero image for the website.

getTitle

public String getTitle()

Sets the text to indicate the title of the website.