OnboardingPage

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 or .

public class OnboardingPage implements Parcelable

Constructors

OnboardingPage
Link copied to clipboard

Create a new onboarding page with the desired string resource and drawable resource.

Note: the string should be a short sentence.

void OnboardingPage(int textResId, int imageResId)
OnboardingPage
Link copied to clipboard

Internal use only.

void OnboardingPage(int textResId, int imageResId, boolean transparent)
OnboardingPage
Link copied to clipboard

Internal use only.

void OnboardingPage(int textResId, int imageResId, boolean transparent, boolean rotateImageForLandscape)

Functions

describeContents
Link copied to clipboard
abstract int describeContents()

Internal use only.

int describeContents()
getImageResId
Link copied to clipboard

the drawable resource id of the text shown on the onboarding page

int getImageResId()
getTextResId
Link copied to clipboard

the string resource id of the text shown on the onboarding page

int getTextResId()
isTransparent
Link copied to clipboard

Internal use only.

boolean isTransparent()
shouldRotateImageForLandscape
Link copied to clipboard

Internal use only.

boolean shouldRotateImageForLandscape()
writeToParcel
Link copied to clipboard
abstract void writeToParcel(Parcel p, int p1)

Internal use only.

void writeToParcel(Parcel dest, int flags)

Properties

CREATOR
Link copied to clipboard

Internal use only.

public final static Parcelable.Creator<OnboardingPageCREATOR