LinkPreview.Builder

public final class LinkPreview.Builder


Builder class for LinkPreview.

Summary

Public constructors

Public methods

LinkPreview
LinkPreview.Builder

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

LinkPreview.Builder

Sets the hero image for the content on the link.

LinkPreview.Builder

Sets the text to indicate the title of the link.

Public constructors

Builder

public Builder()

Public methods

build

public LinkPreview build()

setHostname

@CanIgnoreReturnValue
public LinkPreview.Builder setHostname(String hostname)

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

Required.

setImage

@CanIgnoreReturnValue
public LinkPreview.Builder setImage(Image image)

Sets the hero image for the content on the link.

Optional.

setTitle

@CanIgnoreReturnValue
public LinkPreview.Builder setTitle(String title)

Sets the text to indicate the title of the link.

Required.