Class ExternalFileCreator

  • All Implemented Interfaces:
    DownloadFileCreator

    public class ExternalFileCreator
    extends java.lang.Object
    implements DownloadFileCreator
    Retrieves the external Environment.DIRECTORY_DOWNLOADS. Returns null in case there is no external directory available.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.File getDownloadsFolder​(android.content.Context context)
      Retrieves the downloads directory used to store videos for Offline-Playback.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExternalFileCreator

        public ExternalFileCreator()
    • Method Detail

      • getDownloadsFolder

        @Nullable
        public java.io.File getDownloadsFolder​(@NonNull
                                               android.content.Context context)
        Retrieves the downloads directory used to store videos for Offline-Playback. In case the File returned has null value, it won't be possible to store/download videos or offline information.
        Specified by:
        getDownloadsFolder in interface DownloadFileCreator
        Parameters:
        context - valid Context.
        Returns:
        File path with the directory to store offline videos.
        See Also:
        AbstractOfflineCatalog.downloadVideo(Video)