Package-level declarations

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun ArrayMap<String, RequestBody>.addImageBytesToRetrofit(byteList: ByteArray?, photoName: String)
fun ArrayMap<String, RequestBody>.addImageBytesToRetrofit(byteList: List<ByteArray>, photoName: (index: Int) -> String = { index -> "photo_$index"})
fun HashMap<String, RequestBody>.addImageBytesToRetrofit(byteList: List<ByteArray>, photoName: (index: Int) -> String = { index -> "photo_$index"})
Link copied to clipboard
fun ArrayMap<String, RequestBody>.addImageByteStringsToRetrofit(byteList: List<ByteString>, photoName: (index: Int) -> String = { index -> "photo_$index"})
fun HashMap<String, RequestBody>.addImageByteStringsToRetrofit(byteList: List<ByteString>, photoName: (index: Int) -> String = { index -> "photo_$index"})
Link copied to clipboard
fun ArrayMap<String, RequestBody>.addImagesToRetrofit(pathList: List<String>, photoName: (index: Int, string: String) -> String)
fun HashMap<String, RequestBody>.addImagesToRetrofit(pathList: List<String>, photoName: (index: Int, string: String) -> String)
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 ArrayMap<String, RequestBody>.addImageToRetrofit(image: ByteString?, photoName: String)
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
fun errorResponseCodeMessage(responseCode: Int): String
Link copied to clipboard
fun generateRetrofitImageKeyName(photoName: String = "photo_"): String
fun generateRetrofitImageKeyName(photoIndexNumber: Int = Random.nextInt(0, Int.MAX_VALUE), photoName: String = "photo_"): String
Link copied to clipboard
inline fun Interceptor.Chain.newRequest(item: (builder: Request.Builder) -> Unit = {})
Link copied to clipboard
fun Interceptor.Chain.proceedRequest(): Response
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
fun OkHttpClient.Builder.setUnSafeOkHttpClient()

Sets the retrofit to accept all untrusted/unsafe communications, USE WITH CAUTION!

Link copied to clipboard
fun Any?.toRequestBodyForm(): RequestBody
fun Double?.toRequestBodyForm(): RequestBody
fun Float?.toRequestBodyForm(): RequestBody
fun Int?.toRequestBodyForm(): RequestBody
fun String?.toRequestBodyForm(): RequestBody