public class ViewPagerItem
extends java.lang.Object
implements java.io.Serializable, android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<ViewPagerItem> |
CREATOR
A creator, which allows to create instances of the class
ViewPagerItem from parcels. |
| Constructor and Description |
|---|
ViewPagerItem(java.lang.CharSequence title,
java.lang.Class<? extends Fragment> fragmentClass,
android.os.Bundle arguments)
Creates a new representation of one item of a view pager.
|
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
android.os.Bundle |
getArguments()
Returns the optional arguments, which are passed to the item's fragment.
|
java.lang.Class<? extends Fragment> |
getFragmentClass()
Returns the class of the item's fragment.
|
java.lang.CharSequence |
getTitle()
Returns the item's title.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<ViewPagerItem> CREATOR
ViewPagerItem from parcels.public ViewPagerItem(java.lang.CharSequence title,
java.lang.Class<? extends Fragment> fragmentClass,
android.os.Bundle arguments)
title - The item's title as an instance of the type CharSequence or null, if no title
should be shownfragmentClass - The class of the item's fragment as an instance of the class Class. The class
may not be nullarguments - Optional arguments, which may be passed to the item's fragment, as an instance of the
class Bundle or null, if no arguments should be passed to the fragmentClasspublic final java.lang.CharSequence getTitle()
CharSequence or null, if no title
is shownpublic final java.lang.Class<? extends Fragment> getFragmentClass()
Class. The class
may not be nullpublic final android.os.Bundle getArguments()
Bundle or null, if no arguments are passed to the fragmentpublic final int describeContents()
describeContents in interface android.os.Parcelablepublic final void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable