VGSFileProvider

interface VGSFileProvider

VGSFileProvider is a part of VGSCollect SDK. The instance provides means for file management inside the SDK. It allows managing files inside SDK by attach/detach/get file general info methods.

Functions

Link copied to clipboard
abstract fun attachFile(fieldName: String)
abstract fun attachFile(activity: Activity, fieldName: String)

Mentioned below method allows to attach file to the temporary local file storage before its sending to the Server.

Link copied to clipboard
abstract fun detachAll()

The method is used for detaching all previously attached files.

Link copied to clipboard
abstract fun detachFile(file: FileState)

This method detaches only one separate file.

Link copied to clipboard

Method is used to get attached files for reviewing them before their further sending.

Link copied to clipboard
abstract fun resize(cacheSize: Int)

Specify the maximum size of the cache for file stored before submit to the Proxy Server.