Package-level declarations
Functions
Link copied to clipboard
Link copied to clipboard
fun ArrayMap<String, RequestBody>.addImageToRetrofit(image: ByteArray?, photoName: String = "photo_")
fun ArrayMap<String, RequestBody>.addImageToRetrofit(pathToFile: String?, photoName: String = "photo_")
fun HashMap<String, RequestBody>.addImageToRetrofit(image: ByteArray?, photoName: String = "photo_")
fun HashMap<String, RequestBody>.addImageToRetrofit(pathToFile: String?, photoName: String = "photo_")
fun HashMap<String, RequestBody>.addImageToRetrofit(image: ByteString?, photoName: String = "photo_")
Link copied to clipboard
Link copied to clipboard
fun generateRetrofitImageKeyName(photoIndexNumber: Int = Random.nextInt(0, Int.MAX_VALUE), photoName: String = "photo_"): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun progressDSL(crossinline onProgressStarted: () -> Unit = {}, crossinline onProgressFinished: () -> Unit = {}, crossinline onProgressChanged: (percent: Int) -> Unit = { _ -> }): OnAttachmentDownloadListener
Link copied to clipboard
fun Context.retrofitCache(cacheDirName: String = "http-cache", cacheSize: Int = 10 * 1024 * 1024): Cache
Use as OkHttpClient.Builder().cache(cache)
Link copied to clipboard
Sets the retrofit to accept all untrusted/unsafe communications, USE WITH CAUTION!
Link copied to clipboard