Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android Documentation
FileManager

Class FileManager

Hierarchy

java.lang.Object
     com.smartdevicelink.managers.BaseSubManager
         com.smartdevicelink.managers.file.BaseFileManager

Package
com.smartdevicelink.managers.file

Overview

FileManager
Note: This class must be accessed through the SdlManager. Do not instantiate it by itself.
The FileManager uploads files and keeps track of all the uploaded files names during a session.

Fields

Inherited Fields

From Class Fields
com.smartdevicelink.managers.BaseSubManager SETTING_UP, READY, LIMITED, SHUTDOWN, ERROR, internalInterface

Constructors

FileManager( ISdl internalInterface, Context context, FileManagerConfig fileManagerConfig )

Constructor for FileManager

public FileManager(ISdl internalInterface,Context context,FileManagerConfig fileManagerConfig)

Constructor Parameters

internalInterface
an instance of the ISdl interface that can be used for common SDL operations (sendRpc, addRpcListener, etc)
context
an instances of Context interface to global information for application
fileManagerConfig
an instance of the FileManagerConfig gives access to artworkRetryCount and fileRetryCount to let us if those file types can be re-upload if they fail

Methods

Inherited Methods

From Class Methods
com.smartdevicelink.managers.file.BaseFileManager start, dispose, getRemoteFileNames, getBytesAvailable, deleteRemoteFileWithName, deleteRemoteFilesWithNames, hasUploadedFile, fileNeedsUpload, uploadFiles, uploadFile, uploadArtwork, uploadArtworks, buildErrorString
com.smartdevicelink.managers.BaseSubManager start, dispose, transitionToState, getState, handleTransportUpdated, onTransportUpdate
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section