LinkPreview.Builder

public static final class LinkPreview.Builder extends Object

Builder class for LinkPreview.

Public Constructor Summary

Public Method Summary

LinkPreview
LinkPreview.Builder
setHostname(String hostname)
Sets the text to indicate the link owner, eg “INSIDER”.
LinkPreview.Builder
setImage(Image image)
Sets the hero image for the content on the link.
LinkPreview.Builder
setTitle(String title)
Sets the text to indicate the title of the link.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public LinkPreview build ()

public LinkPreview.Builder setHostname (String hostname)

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

Required.

public LinkPreview.Builder setImage (Image image)

Sets the hero image for the content on the link.

Optional.

public LinkPreview.Builder setTitle (String title)

Sets the text to indicate the title of the link.

Required.