Package com.cheetahdigital.uikit.widget
Class LinkPreviewView.LinkPreview
- java.lang.Object
 - 
- com.cheetahdigital.uikit.widget.LinkPreviewView.LinkPreview
 
 
- 
- Enclosing class:
 - LinkPreviewView
 
public static class LinkPreviewView.LinkPreview extends java.lang.ObjectLinkPreview class 
- 
- 
Constructor Summary
Constructors Constructor Description LinkPreview(java.lang.String url, java.lang.String type, java.lang.String title, java.lang.String description, int image, java.lang.String siteName)LinkPreview(java.lang.String url, java.lang.String type, java.lang.String title, java.lang.String description, java.lang.String image, java.lang.String siteName)Constructor forLinkPreviewView.LinkPreview 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()intgetFallbackImage()java.lang.StringgetImage()java.lang.StringgetSiteName()java.lang.StringgetTitle()java.lang.StringgetType()java.lang.StringgetUrl()voidsetDescription(java.lang.String description)Sets the description.voidsetImage(java.lang.String image)Sets the image.voidsetSiteName(java.lang.String siteName)Sets the site name.voidsetTitle(java.lang.String title)Sets the title.voidsetType(java.lang.String type)Sets the type.voidsetUrl(java.lang.String url)Sets the url string.booleanshouldUseFallbackImage()Determines whether to use the fallback image or not. 
 - 
 
- 
- 
Constructor Detail
- 
LinkPreview
public LinkPreview(java.lang.String url, java.lang.String type, java.lang.String title, java.lang.String description, java.lang.String image, java.lang.String siteName)Constructor forLinkPreviewView.LinkPreview- Parameters:
 url- html linktype- typetitle- title of the link previewdescription- description of the link previewimage- image urlsiteName- site name
 
- 
LinkPreview
public LinkPreview(java.lang.String url, java.lang.String type, java.lang.String title, java.lang.String description, int image, java.lang.String siteName) 
 - 
 
- 
Method Detail
- 
getUrl
public java.lang.String getUrl()
- Returns:
 - the url string.
 
 
- 
setUrl
public void setUrl(java.lang.String url)
Sets the url string.- Parameters:
 url- url used for preview
 
- 
getType
public java.lang.String getType()
- Returns:
 - the type.
 
 
- 
setType
public void setType(java.lang.String type)
Sets the type.- Parameters:
 type- current type of link preview
 
- 
getTitle
public java.lang.String getTitle()
- Returns:
 - the title.
 
 
- 
setTitle
public void setTitle(java.lang.String title)
Sets the title.- Parameters:
 title- title of link preview
 
- 
getDescription
public java.lang.String getDescription()
- Returns:
 - the description.
 
 
- 
setDescription
public void setDescription(java.lang.String description)
Sets the description.- Parameters:
 description- description of link preview
 
- 
getImage
public java.lang.String getImage()
- Returns:
 - url of the image.
 
 
- 
setImage
public void setImage(java.lang.String image)
Sets the image.- Parameters:
 image- image url to load
 
- 
getSiteName
public java.lang.String getSiteName()
- Returns:
 - the site name.
 
 
- 
setSiteName
public void setSiteName(java.lang.String siteName)
Sets the site name.- Parameters:
 siteName- name of the site
 
- 
getFallbackImage
public int getFallbackImage()
- Returns:
 - the fallback image.
 
 
- 
shouldUseFallbackImage
public boolean shouldUseFallbackImage()
Determines whether to use the fallback image or not.- Returns:
 - True if fallback image should be used, otherwise false.
 
 
 - 
 
 -