attachFile

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.

Parameters

activity

current Activity.

fieldName

is a key under which the file for JSON will be saved before sending.


abstract fun attachFile(fieldName: String)

Deprecated

Deprecated, overloaded function should be used.

Replace with

attachFile(activity, fieldName)

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

Parameters

fieldName

is a key under which the file for JSON will be saved before sending.