com.ooyala.android.offline.TaskInfo Class Reference

Represents state of a task. More...

Classes

interface  State
 

Public Attributes

final String embedCode
 The unique asset id. More...
 
final int taskId
 The unique task id. More...
 
final.TaskState.State int state
 The state of the task. More...
 
final float downloadPercentage
 The estimated download percentage, or C#PERCENTAGE_UNSET if no estimate is available or if this is a removal task. More...
 
final long downloadedBytes
 The total number of downloaded bytes. More...
 
final boolean isRemoveAction
 Whether this is a remove action. More...
 

Static Public Attributes

static final int UNDEFINED_TASK_ID = -1
 
static final int STATE_QUEUED = 0
 The task is waiting to be started. More...
 
static final int STATE_STARTED = 1
 The task is currently started. More...
 
static final int STATE_COMPLETED = 2
 The task completed. More...
 
static final int STATE_CANCELED = 3
 The task was canceled. More...
 
static final int STATE_FAILED = 4
 The task failed. More...
 

Detailed Description

Represents state of a task.

Member Data Documentation

final long com.ooyala.android.offline.TaskInfo.downloadedBytes

The total number of downloaded bytes.

final float com.ooyala.android.offline.TaskInfo.downloadPercentage

The estimated download percentage, or C#PERCENTAGE_UNSET if no estimate is available or if this is a removal task.

final String com.ooyala.android.offline.TaskInfo.embedCode

The unique asset id.

final boolean com.ooyala.android.offline.TaskInfo.isRemoveAction

Whether this is a remove action.

If false, this is a download action.

final.TaskState.State int com.ooyala.android.offline.TaskInfo.state

The state of the task.

final int com.ooyala.android.offline.TaskInfo.STATE_CANCELED = 3
static

The task was canceled.

final int com.ooyala.android.offline.TaskInfo.STATE_COMPLETED = 2
static

The task completed.

final int com.ooyala.android.offline.TaskInfo.STATE_FAILED = 4
static

The task failed.

final int com.ooyala.android.offline.TaskInfo.STATE_QUEUED = 0
static

The task is waiting to be started.

final int com.ooyala.android.offline.TaskInfo.STATE_STARTED = 1
static

The task is currently started.

final int com.ooyala.android.offline.TaskInfo.taskId

The unique task id.

final int com.ooyala.android.offline.TaskInfo.UNDEFINED_TASK_ID = -1
static