public final class

VDARContext.ContextObserverUpdateInfo

extends Object
java.lang.Object
   ↳ com.vidinoti.android.vdarsdk.VDARContext.ContextObserverUpdateInfo

Class Overview

Describe the status of a current file download action on a context

Summary

Constants
int COMPLETED Status code describing a completed action.
int IN_PROGRESS Status code describing an action in progress.
Public Constructors
ContextObserverUpdateInfo()
Public Methods
String getDownloadedFilePath()
Return the path to the file downloaded.
String getError()
Return the error if an error happened during the action.
float getProgress()
Return the current progress of the task (between 0 and 100%)
int getStatus()
boolean isCompleted()
Return true if the action is completed.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int COMPLETED

Status code describing a completed action.

Constant Value: 0 (0x00000000)

public static final int IN_PROGRESS

Status code describing an action in progress.

Constant Value: 1 (0x00000001)

Public Constructors

public ContextObserverUpdateInfo ()

Public Methods

public String getDownloadedFilePath ()

Return the path to the file downloaded. THe property is null if an error occurred.

public String getError ()

Return the error if an error happened during the action.

Returns
  • the error if an error happened during the action or null if it succeeded.

public float getProgress ()

Return the current progress of the task (between 0 and 100%)

Returns
  • the progress of the task

public int getStatus ()

Returns

public boolean isCompleted ()

Return true if the action is completed. You should also check the getError() method to see if an error happened during the action.

Returns
  • true if the action is completed, false otherwise.
See Also