ImagePart.Companion

public static class ImagePart.Companion


Summary

Public methods

static final @NonNull ImagePart
@PublicPreviewAPI
createWithThinking(
    @NonNull Bitmap image,
    String displayName,
    boolean isThought,
    String thoughtSignature
)

Creates an ImagePart with advanced thinking metadata.

Public methods

createWithThinking

@PublicPreviewAPI
public static final @NonNull ImagePart createWithThinking(
    @NonNull Bitmap image,
    String displayName,
    boolean isThought,
    String thoughtSignature
)

Creates an ImagePart with advanced thinking metadata.

Parameters
@NonNull Bitmap image

Bitmap to convert into a Part.

String displayName

The name of the file, including the extension.

boolean isThought

Indicates whether the response is a thought.

String thoughtSignature

The signature associated with the thought, if any.