Class KiiRTransferManager

    • Constructor Detail

      • KiiRTransferManager

        public KiiRTransferManager()
    • Method Detail

      • getBucket

        @NonNull
        public abstract KiiBaseBucket getBucket()
        Get the bucket of this manager belongs.
        Returns:
        Bucket instance bound to this manager.
      • listUploadEntries

        @NonNull
        public abstract java.util.List<KiiUploader> listUploadEntries​(@NonNull
                                                                      android.content.Context context,
                                                                      @Nullable
                                                                      KiiUser user)
                                                               throws StateStoreAccessException
        Upload entries are stored with identifier of KiiUser who execute the upload. This API lists existing upload entries initiated by specified user. If specified user is null, it will list upload entries initiated by anonymous user.
        By default anonymous user can not upload object body unless configure object ACL explicitly. Refer to KiiACL about the details of ACL.
        Entry Life cycle: The entry will be created on calling KiiUploader.transfer(KiiRTransferProgressCallback) and deleted on completion/termination of upload. For details please refer to KiiUploader
        NOTE: This api access to internal file storage stores status of upload . Should not be executed in UI/Main thread.
        Parameters:
        context - application context.
        user - KiiUser.
        Returns:
        List of KiiUploader instance.
        Throws:
        StateStoreAccessException - Thrown when failed to access the persistent storage stores transfer status. (ex. Disk full, etc.)
        You can retry safely.
        java.lang.IllegalArgumentException - Thrown if context is null.
      • listDownloadEntries

        @NonNull
        public abstract java.util.List<KiiDownloader> listDownloadEntries​(@NonNull
                                                                          android.content.Context context,
                                                                          @Nullable
                                                                          KiiUser user)
                                                                   throws StateStoreAccessException
        Download entries are stored with identifier of KiiUser who execute the download. This API lists existing download entries initiated by specified user. If specified user is null, it will list download entries initiated by anonymous user.
        Entry Life cycle: The entry will be created on calling KiiDownloader.transfer(KiiRTransferProgressCallback) and deleted on completion/termination of download. For details please refer to KiiDownloader
        NOTE: This api access to internal file storage stores status of download. Should not be executed in UI/Main thread.
        Parameters:
        context - application context.
        user - KiiUser.
        Returns:
        List of KiiDownloader instance.
        Throws:
        StateStoreAccessException - Thrown when failed to access the persistent storage stores transfer status. (ex. Disk full, etc.)
        You can retry safely.
        java.lang.IllegalArgumentException - Thrown if context is null.