ImagePart
Represents image data sent to and received from requests. The image is converted client-side to JPEG encoding at 80% quality before being sent to the server.
On Android this is the SDK's part over an android.graphics.Bitmap. Its constructors, createWithThinking and image take the Android-only Bitmap, so they are not available in common code (see api/android-sdk/exclusions.txt): send images as InlineDataParts there, which is also what responses carry on the other platforms.
Functions
Link copied to clipboard
Returns the part as a FileDataPart if it represents a file, and null otherwise
Link copied to clipboard
Returns the part as a InlineDataPart if it represents inline data, and null otherwise
Link copied to clipboard
Returns the part as a String if it represents text, and null otherwise