StoreBytesData

  • StoreBytesData is a class used to pass data from apps to Block Store and implements the Parcelable interface.

  • It includes a nested class, StoreBytesData.Builder, for creating StoreBytesData objects.

  • The class provides methods to get the raw bytes, the associated key, and a flag indicating if the data should be backed up to the cloud.

public class StoreBytesData extends Object
implements Parcelable

Data passed by apps to Block Store.

Nested Class Summary

class StoreBytesData.Builder A builder for StoreBytesData objects. 

Inherited Constant Summary

Field Summary

public static final Creator<StoreBytesData> CREATOR

Public Method Summary

byte[]
getBytes()
Raw bytes passed from apps to Block Store.
String
getKey()
The key with which the bytes are associated.
boolean
shouldBackupToCloud()
Whether the bytes to be stored should be backed up to the cloud in the next sync.
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<StoreBytesData> CREATOR

Public Methods

public byte[] getBytes ()

Raw bytes passed from apps to Block Store.

public String getKey ()

The key with which the bytes are associated.

If the key was never explicitly set when building the StoreBytesData, then the default key BlockstoreClient.DEFAULT_BYTES_DATA_KEY is associated with the bytes and therefore will be returned.

public boolean shouldBackupToCloud ()

Whether the bytes to be stored should be backed up to the cloud in the next sync.

public void writeToParcel (Parcel dest, int flags)