Class MaterialTapTargetPrompt.Builder
- java.lang.Object
-
- uk.co.samuelwall.materialtaptargetprompt.extras.PromptOptions<MaterialTapTargetPrompt.Builder>
-
- uk.co.samuelwall.materialtaptargetprompt.MaterialTapTargetPrompt.Builder
-
- Enclosing class:
- MaterialTapTargetPrompt
public static class MaterialTapTargetPrompt.Builder extends PromptOptions<MaterialTapTargetPrompt.Builder>
A builder to create aMaterialTapTargetPrompt
instance.
-
-
Constructor Summary
Constructors Constructor Description Builder(android.app.Activity activity)
Creates a builder for a tap target prompt that uses the default tap target prompt theme.Builder(android.app.Activity activity, int themeResId)
Creates a builder for a material tap target prompt that uses an explicit theme resource.Builder(android.app.Dialog dialog)
Creates a builder for a tap target prompt that uses the default tap target prompt theme.Builder(android.app.Dialog dialog, int themeResId)
Creates a builder for a material tap target prompt that uses an explicit theme resource.Builder(androidx.fragment.app.DialogFragment dialogFragment)
Creates a builder for a tap target prompt that uses the default tap target prompt theme.Builder(androidx.fragment.app.DialogFragment dialogFragment, int themeResId)
Creates a builder for a material tap target prompt that uses an explicit theme resource.Builder(androidx.fragment.app.Fragment fragment)
Creates a builder for a tap target prompt that uses the default tap target prompt theme.Builder(androidx.fragment.app.Fragment fragment, int themeResId)
Creates a builder for a material tap target prompt that uses an explicit theme resource.Builder(ResourceFinder resourceFinder, int themeResId)
Creates a builder for a material tap target prompt that uses an explicit theme resource.
-
Method Summary
-
Methods inherited from class uk.co.samuelwall.materialtaptargetprompt.extras.PromptOptions
create, getAnimationInterpolator, getAutoDismiss, getAutoFinish, getBackButtonDismissEnabled, getBackgroundColour, getCaptureTouchEventOnFocal, getCaptureTouchEventOutsidePrompt, getClipToView, getContentDescription, getFocalColour, getFocalPadding, getFocalRadius, getIconDrawable, getIdleAnimationEnabled, getIgnoreStatusBar, getMaxTextWidth, getPrimaryText, getPrimaryTextColour, getPrimaryTextGravity, getPrimaryTextSize, getPrimaryTextTypeface, getPrimaryTextTypefaceStyle, getPromptBackground, getPromptFocal, getPromptText, getResourceFinder, getSecondaryText, getSecondaryTextColour, getSecondaryTextGravity, getSecondaryTextSize, getSecondaryTextTypeface, getSecondaryTextTypefaceStyle, getTargetPosition, getTargetRenderView, getTargetView, getTextPadding, getTextSeparation, isTargetSet, load, onExtraPromptStateChanged, onPromptStateChanged, setAnimationInterpolator, setAutoDismiss, setAutoFinish, setBackButtonDismissEnabled, setBackgroundColour, setCaptureTouchEventOnFocal, setCaptureTouchEventOutsidePrompt, setClipToView, setContentDescription, setContentDescription, setFocalColour, setFocalPadding, setFocalPadding, setFocalRadius, setFocalRadius, setIcon, setIconDrawable, setIconDrawableColourFilter, setIconDrawableTintList, setIconDrawableTintMode, setIdleAnimationEnabled, setIgnoreStatusBar, setMaxTextWidth, setMaxTextWidth, setPrimaryText, setPrimaryText, setPrimaryText, setPrimaryTextColour, setPrimaryTextGravity, setPrimaryTextSize, setPrimaryTextSize, setPrimaryTextTypeface, setPrimaryTextTypeface, setPromptBackground, setPromptFocal, setPromptStateChangeListener, setPromptText, setSecondaryText, setSecondaryText, setSecondaryText, setSecondaryTextColour, setSecondaryTextGravity, setSecondaryTextSize, setSecondaryTextSize, setSecondaryTextTypeface, setSecondaryTextTypeface, setSequenceListener, setTarget, setTarget, setTarget, setTargetRenderView, setTextGravity, setTextPadding, setTextPadding, setTextSeparation, setTextSeparation, show, showFor
-
-
-
-
Constructor Detail
-
Builder
public Builder(@NonNull androidx.fragment.app.Fragment fragment)
Creates a builder for a tap target prompt that uses the default tap target prompt theme.- Parameters:
fragment
- the fragment to show the prompt within.- See Also:
Builder(Fragment, int)
-
Builder
public Builder(@NonNull androidx.fragment.app.Fragment fragment, int themeResId)
Creates a builder for a material tap target prompt that uses an explicit theme resource.The
themeResId
may be specified as0
to use the parentcontext
's resolved value forR.attr.MaterialTapTargetPromptTheme
.- Parameters:
fragment
- the fragment to show the prompt within.themeResId
- the resource ID of the theme against which to inflate this dialog, or0
to use the parentcontext
's default material tap target prompt theme
-
Builder
public Builder(@NonNull androidx.fragment.app.DialogFragment dialogFragment)
Creates a builder for a tap target prompt that uses the default tap target prompt theme.- Parameters:
dialogFragment
- the dialog fragment to show the prompt within.- See Also:
Builder(DialogFragment, int)
-
Builder
public Builder(@NonNull androidx.fragment.app.DialogFragment dialogFragment, int themeResId)
Creates a builder for a material tap target prompt that uses an explicit theme resource.The
themeResId
may be specified as0
to use the parentcontext
's resolved value forR.attr.MaterialTapTargetPromptTheme
.- Parameters:
dialogFragment
- the dialog fragment to show the prompt within.themeResId
- the resource ID of the theme against which to inflate this dialog, or0
to use the parentcontext
's default material tap target prompt theme
-
Builder
public Builder(@NonNull android.app.Dialog dialog)
Creates a builder for a tap target prompt that uses the default tap target prompt theme.- Parameters:
dialog
- the dialog to show the prompt within.
-
Builder
public Builder(@NonNull android.app.Dialog dialog, int themeResId)
Creates a builder for a material tap target prompt that uses an explicit theme resource.The
themeResId
may be specified as0
to use the parentcontext
's resolved value forR.attr.MaterialTapTargetPromptTheme
.- Parameters:
dialog
- the dialog to show the prompt within.themeResId
- the resource ID of the theme against which to inflate this dialog, or0
to use the parentcontext
's default material tap target prompt theme
-
Builder
public Builder(@NonNull android.app.Activity activity)
Creates a builder for a tap target prompt that uses the default tap target prompt theme.- Parameters:
activity
- the activity to show the prompt within.
-
Builder
public Builder(@NonNull android.app.Activity activity, int themeResId)
Creates a builder for a material tap target prompt that uses an explicit theme resource.The
themeResId
may be specified as0
to use the parentcontext
's resolved value forR.attr.MaterialTapTargetPromptTheme
.- Parameters:
activity
- the activity to show the prompt within.themeResId
- the resource ID of the theme against which to inflate this dialog, or0
to use the parentcontext
's default material tap target prompt theme
-
Builder
public Builder(@NonNull ResourceFinder resourceFinder, int themeResId)
Creates a builder for a material tap target prompt that uses an explicit theme resource.The
themeResId
may be specified as0
to use the parentcontext
's resolved value forR.attr.MaterialTapTargetPromptTheme
.- Parameters:
resourceFinder
- TheResourceFinder
used to find views and resources.themeResId
- the resource ID of the theme against which to inflate this dialog, or0
to use the parentcontext
's default material tap target prompt theme
-
-