MediaData

@PublicPreviewAPI
public final class MediaData


Represents the media data to be sent to the server

Summary

Public fields

final @NonNull byte[]

Byte array representing the data to be sent.

final @NonNull String

an IANA standard MIME type.

Public constructors

MediaData(@NonNull byte[] data, @NonNull String mimeType)

Public fields

data

public final @NonNull byte[] data

Byte array representing the data to be sent.

mimeType

public final @NonNull String mimeType

an IANA standard MIME type. For supported MIME type values see the Firebase documentation.

Public constructors

MediaData

public MediaData(@NonNull byte[] data, @NonNull String mimeType)
Parameters
@NonNull byte[] data

Byte array representing the data to be sent.

@NonNull String mimeType

an IANA standard MIME type. For supported MIME type values see the Firebase documentation.