PartKt

public final class PartKt


Summary

Public methods

static final BlobPart

Returns the part as a BlobPart if it represents a blob, and null otherwise

static final Bitmap

Returns the part as a Bitmap if it represents an image, and null otherwise

static final String

Returns the part as a String if it represents text, and null otherwise

Public methods

PartKt.asBlobPartOrNull

public static final BlobPart PartKt.asBlobPartOrNull(@NonNull Part receiver)

Returns the part as a BlobPart if it represents a blob, and null otherwise

PartKt.asImageOrNull

public static final Bitmap PartKt.asImageOrNull(@NonNull Part receiver)

Returns the part as a Bitmap if it represents an image, and null otherwise

PartKt.asTextOrNull

public static final String PartKt.asTextOrNull(@NonNull Part receiver)

Returns the part as a String if it represents text, and null otherwise