Package com.vdocipher.aegis.offline
        Class DownloadStatus
- 
                    
                    - All Implemented Interfaces:
 
 public final class DownloadStatusDownload status information corresponding to a media download. 
- 
                
                    
                    - 
                                
                            
                                Field SummaryFields Modifier and Type Field Description public final static intPERCENTAGE_UNSETpublic final MediaInfomediaInfopublic final StringlocalStorageFolderpublic final intstatuspublic final intreasonpublic final StringreasonDescriptionpublic final longtotalSizeBytespublic final longbytesDownloadedpublic final intdownloadPercentpublic final Stringposterpublic final longlastModifiedTimestamppublic booleanisSavedOfflinepublic DatelastPlayedAtpublic final StringdisplayTitlepublic final StringdisplayDescription
 - 
                                
                            
                                Constructor SummaryConstructors Constructor Description DownloadStatus(MediaInfo mediaInfo, String localStorageFolder, int status, int reason, String reasonDescription, long lastModifiedTime, long totalSizeBytes, long bytesDownloaded, int downloadPercent, String posterPath, boolean isSavedOffline, String displayTitle, String displayDescription)
 - 
                                
                            
                                Method SummaryModifier and Type Method Description static DownloadStatuscreateForNotFound(@NonNull() MediaInfo mediaInfo)static DownloadStatuscreateForPending(@NonNull() MediaInfo mediaInfo, String localStorageFolder, long lastModifiedTime, long totalSizeBytes, boolean isSavedOffline)static DownloadStatuscreateForRunning(@NonNull() MediaInfo mediaInfo, String localStorageFolder, long lastModifiedTime, long totalSizeBytes, long bytesDownloaded, int downloadPercent, String posterPath, boolean isSavedOffline)static DownloadStatuscreateForPaused(@NonNull() MediaInfo mediaInfo, String localStorageFolder, int reason, long lastModifiedTime, long totalSizeBytes, long bytesDownloaded, int downloadPercent, String posterPath, boolean isSavedOffline)static DownloadStatuscreateForFailed(@NonNull() MediaInfo mediaInfo, String localStorageFolder, int reason, String reasonDescription, long lastModifiedTime, long totalSizeBytes, long bytesDownloaded, int downloadPercent, String posterPath, boolean isSavedOffline)static DownloadStatuscreateForCompleted(@NonNull() MediaInfo mediaInfo, String localStorageFolder, long lastModifiedTime, long totalSizeBytes, long bytesDownloaded, int downloadPercent, String posterPath, boolean isSavedOffline)static intgetStatus(@Download.State() int state)static intgetState(int status)static DownloadStatusgetDownloadStatus(Download download)Converts Download to DownloadStatus static DownloadStatusgetDownloadStatus(Context context, Download download)static StringgetOfflineScrubbingPreviewUrl(Download download)synchronized booleanisExpired(Context context)static Utils.WidevineLevelgetSecurityLevel(DownloadRequest downloadRequest)- 
                    
                    
                    - 
                                
                            
                                Constructor Detail- 
                                        DownloadStatusDownloadStatus(MediaInfo mediaInfo, String localStorageFolder, int status, int reason, String reasonDescription, long lastModifiedTime, long totalSizeBytes, long bytesDownloaded, int downloadPercent, String posterPath, boolean isSavedOffline, String displayTitle, String displayDescription) 
 
- 
                                        
 - 
                                
                            
                                Method Detail- 
                                        createForNotFoundstatic DownloadStatus createForNotFound(@NonNull() MediaInfo mediaInfo) 
 - 
                                        createForPendingstatic DownloadStatus createForPending(@NonNull() MediaInfo mediaInfo, String localStorageFolder, long lastModifiedTime, long totalSizeBytes, boolean isSavedOffline) 
 - 
                                        createForRunningstatic DownloadStatus createForRunning(@NonNull() MediaInfo mediaInfo, String localStorageFolder, long lastModifiedTime, long totalSizeBytes, long bytesDownloaded, int downloadPercent, String posterPath, boolean isSavedOffline) 
 - 
                                        createForPausedstatic DownloadStatus createForPaused(@NonNull() MediaInfo mediaInfo, String localStorageFolder, int reason, long lastModifiedTime, long totalSizeBytes, long bytesDownloaded, int downloadPercent, String posterPath, boolean isSavedOffline) 
 - 
                                        createForFailedstatic DownloadStatus createForFailed(@NonNull() MediaInfo mediaInfo, String localStorageFolder, int reason, String reasonDescription, long lastModifiedTime, long totalSizeBytes, long bytesDownloaded, int downloadPercent, String posterPath, boolean isSavedOffline) 
 - 
                                        createForCompletedstatic DownloadStatus createForCompleted(@NonNull() MediaInfo mediaInfo, String localStorageFolder, long lastModifiedTime, long totalSizeBytes, long bytesDownloaded, int downloadPercent, String posterPath, boolean isSavedOffline) 
 - 
                                        getStatusstatic int getStatus(@Download.State() int state) 
 - 
                                        getStatestatic int getState(int status) 
 - 
                                        getDownloadStatusstatic DownloadStatus getDownloadStatus(Download download) Converts Download to DownloadStatus - Parameters:
- download- Download
- Returns:
 
 - 
                                        getDownloadStatusstatic DownloadStatus getDownloadStatus(Context context, Download download) 
 - 
                                        getOfflineScrubbingPreviewUrlstatic String getOfflineScrubbingPreviewUrl(Download download) 
 - 
                                        getSecurityLevelstatic Utils.WidevineLevel getSecurityLevel(DownloadRequest downloadRequest) 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-