OnboardingPage

public class OnboardingPage implements Parcelable

The {@code OnboardingPage} is 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 {@code OnboardingPage} objects as the EXTRA_IN_ONBOARDING_PAGES when starting the CameraActivity.

When using the Componenent API provide an java.util.ArrayList containing {@code OnboardingPage} objects as the argument for the Onboarding Fragment factory method createInstance.

Constructors

OnboardingPage
Link copied to clipboard
void OnboardingPage(@StringRes() int textResId, @DrawableRes() int imageResId)
Create a new onboarding page with the desired string resource and drawable resource.

Functions

describeContents
Link copied to clipboard
int describeContents()
Internal use only.
getImageResId
Link copied to clipboard
int getImageResId()
the drawable resource id of the text shown on the onboarding page
getTextResId
Link copied to clipboard
int getTextResId()
the string resource id of the text shown on the onboarding page
isTransparent
Link copied to clipboard
boolean isTransparent()
Internal use only.
shouldRotateImageForLandscape
Link copied to clipboard
boolean shouldRotateImageForLandscape()
Internal use only.
writeToParcel
Link copied to clipboard
void writeToParcel(Parcel dest, int flags)
Internal use only.

Properties

CREATOR
Link copied to clipboard
public final static Parcelable.Creator<OnboardingPageCREATOR
Internal use only.