Class PreviewTask
- java.lang.Object
-
- android.os.AsyncTask<java.lang.String,java.lang.Void,com.cheetahdigital.uikit.widget.LinkPreviewView.LinkPreview>
-
- com.cheetahdigital.newsfeed.ui.list.PreviewTask
-
public class PreviewTask extends android.os.AsyncTask<java.lang.String,java.lang.Void,com.cheetahdigital.uikit.widget.LinkPreviewView.LinkPreview>
Handles loading of Link Preview
-
-
Field Summary
Fields Modifier and Type Field Description protected PreviewListener
mListener
protected Post
mPost
-
Constructor Summary
Constructors Constructor Description PreviewTask(Post post, PreviewListener listener)
Constructor for this task
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.cheetahdigital.uikit.widget.LinkPreviewView.LinkPreview
doInBackground(java.lang.String... params)
protected void
onPostExecute(com.cheetahdigital.uikit.widget.LinkPreviewView.LinkPreview linkPreview)
-
-
-
Field Detail
-
mPost
protected Post mPost
-
mListener
protected PreviewListener mListener
-
-
Constructor Detail
-
PreviewTask
public PreviewTask(Post post, PreviewListener listener)
Constructor for this task- Parameters:
post
-Post
that contains link previewlistener
- thePreviewListener
for handling loaded link preview
-
-
Method Detail
-
doInBackground
protected com.cheetahdigital.uikit.widget.LinkPreviewView.LinkPreview doInBackground(java.lang.String... params)
- Specified by:
doInBackground
in classandroid.os.AsyncTask<java.lang.String,java.lang.Void,com.cheetahdigital.uikit.widget.LinkPreviewView.LinkPreview>
-
onPostExecute
protected void onPostExecute(com.cheetahdigital.uikit.widget.LinkPreviewView.LinkPreview linkPreview)
- Overrides:
onPostExecute
in classandroid.os.AsyncTask<java.lang.String,java.lang.Void,com.cheetahdigital.uikit.widget.LinkPreviewView.LinkPreview>
-
-