@ThreadSafe public final class PluginInstanceData extends Object implements Parcelable
Plugin
, along with the Bundle and Blurb
actually representing the plug-in's saved data.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<PluginInstanceData> |
CREATOR
Implements the
Parcelable interface. |
static int |
MAXIMUM_BUNDLE_SIZE_BYTES
Maximum size of a serialized
Bundle , which is about 25 kilobytes
(base-10). |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
PluginInstanceData(PluginType type,
String registryName,
byte[] serializedBundle,
String blurb)
Constructs a new Plug-in instance.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
String |
getBlurb() |
String |
getRegistryName() |
byte[] |
getSerializedBundle() |
PluginType |
getType() |
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<PluginInstanceData> CREATOR
Parcelable
interface.public static final int MAXIMUM_BUNDLE_SIZE_BYTES
Bundle
, which is about 25 kilobytes
(base-10).public PluginInstanceData(PluginType type, String registryName, byte[] serializedBundle, String blurb)
type
- The type of the plug-in.registryName
- Registry name of the plug-in.serializedBundle
- Serialized representation of the plug-in's
Bundle. These bytes will be copied, in order to prevent
exposing the internal representation of this class to
mutation.blurb
- The plug-in's blurb.public PluginType getType()
public String getRegistryName()
Plugin.getRegistryName()
public byte[] getSerializedBundle()
public String getBlurb()
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable