LinkPreview.Builder


class LinkPreview.Builder


Builder class for LinkPreview.

Summary

Public constructors

Public functions

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

Builder()

Public functions

build

fun build(): LinkPreview!

setHostname

@CanIgnoreReturnValue
fun setHostname(hostname: String!): LinkPreview.Builder!

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

Required.

setImage

@CanIgnoreReturnValue
fun setImage(image: Image!): LinkPreview.Builder!

Sets the hero image for the content on the link.

Optional.

setTitle

@CanIgnoreReturnValue
fun setTitle(title: String!): LinkPreview.Builder!

Sets the text to indicate the title of the link.

Required.