-
- All Implemented Interfaces:
-
android.os.Parcelable
public class OnboardingPage implements Parcelable
The
OnboardingPageis used by the Onboarding Fragment to display an image and a short text.Use this class to show a different number of pages in the Onboarding Screen. Customizing the default onboarding pages can be done via overriding of app resources.
When using the Screen API set an java.util.ArrayList containing
OnboardingPageobjects as the EXTRA_IN_ONBOARDING_PAGES when starting the CameraActivity.When using the Componenent API provide an java.util.ArrayList containing
OnboardingPageobjects as the argument for the Onboarding Fragment factory method createInstance.
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<OnboardingPage>CREATOR
-
Constructor Summary
Constructors Constructor Description OnboardingPage(int textResId, int imageResId)Create a new onboarding page with the desired string resource and drawable resource.
-
Method Summary
Modifier and Type Method Description intgetTextResId()intgetImageResId()booleanisTransparent()Internal use only. booleanshouldRotateImageForLandscape()Internal use only. intdescribeContents()Internal use only. voidwriteToParcel(Parcel dest, int flags)Internal use only. -
-
Constructor Detail
-
OnboardingPage
OnboardingPage(int textResId, int imageResId)
Create a new onboarding page with the desired string resource and drawable resource.- Parameters:
textResId- a string resource id which will be shown in the onboarding pageimageResId- a drawable resource id which will be shown in the onboarding page
-
-
Method Detail
-
getTextResId
@StringRes() int getTextResId()
-
getImageResId
@DrawableRes() int getImageResId()
-
isTransparent
boolean isTransparent()
Internal use only.
-
shouldRotateImageForLandscape
boolean shouldRotateImageForLandscape()
Internal use only.
-
describeContents
int describeContents()
Internal use only.
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
Internal use only.
-
-
-
-