//core/com.petersamokhin.vksdk.core.api/VkApiUploader
VkApiUploader¶
[common]\ class VkApiUploader(api: VkApi, json: Json)
Uploader for photos, etc
Constructors¶
VkApiUploader | [common] fun VkApiUploader(api: VkApi, json: Json) |
Functions¶
Name | Summary |
---|---|
uploadContent | [common] suspend fun uploadContent(methodGetUploadUrl: String, methodSave: String, params: Parameters, items: List<UploadableContent>): String Upload whatever you want wherever you can. |
uploadPhotoForMessage | [common] suspend fun uploadPhotoForMessage(peerId: Int, file: FileOnDisk): String? suspend fun uploadPhotoForMessage(peerId: Int, item: UploadableContent): String? suspend fun uploadPhotoForMessage(peerId: Int, bytes: ByteArray): String? suspend fun uploadPhotoForMessage(peerId: Int, url: String): String? Upload photo to messages and get the photo_id |