Class ImagePreview
java.lang.Object
com.pranavpandey.android.dynamic.support.preview.Preview<String,Uri>
com.pranavpandey.android.dynamic.support.preview.factory.ImagePreview
- All Implemented Interfaces:
Parcelable
A
Preview
to provide the image preview functionality.-
Nested Class Summary
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Parcelable.Creator<ImagePreview>
Parcelable creator to create from parcel.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
ConstructorDescriptionConstructor to initialize an object of this class.ImagePreview
(Parcel in) Read an object of this class from the parcel.ImagePreview
(String info, Uri data) Constructor to initialize an object of this class.Constructor to initialize an object of this class.ImagePreview
(String info, Uri data, String title, String subtitle) Constructor to initialize an object of this class. -
Method Summary
Methods inherited from class com.pranavpandey.android.dynamic.support.preview.Preview
getData, getData, getDataCustom, getInfo, getSubtitle, getTitle, setData, setDataCustom, setInfo, setSubtitle, setTitle
-
Field Details
-
CREATOR
Parcelable creator to create from parcel.
-
-
Constructor Details
-
ImagePreview
public ImagePreview()Constructor to initialize an object of this class. -
ImagePreview
Constructor to initialize an object of this class.- Parameters:
info
- The info for this preview.data
- The data for this preview.
-
ImagePreview
public ImagePreview(@Nullable String info, @Nullable Uri data, @Nullable String title, @Nullable String subtitle) Constructor to initialize an object of this class.- Parameters:
info
- The info for this preview.data
- The data for this preview.title
- The title for this preview.subtitle
- The subtitle for this preview.
-
ImagePreview
public ImagePreview(@Nullable String info, @Nullable Uri data, @Nullable Uri dataCustom, @Nullable String title, @Nullable String subtitle) Constructor to initialize an object of this class.- Parameters:
info
- The info for this preview.data
- The data for this preview.dataCustom
- The customized data for this preview.title
- The title for this preview.subtitle
- The subtitle for this preview.
-
ImagePreview
Read an object of this class from the parcel.- Parameters:
in
- The parcel to read the values.
-
-
Method Details
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceParcelable
-
writeToParcel
- Specified by:
writeToParcel
in interfaceParcelable
-