-
- All Implemented Interfaces:
public final class Balloon.BuilderBuilder class for creating Balloon.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Balloon.Builder(Context context)
-
Method Summary
Modifier and Type Method Description final IntegergetWidth()final IntegergetMinWidth()final IntegergetMaxWidth()final FloatgetWidthRatio()final FloatgetMinWidthRatio()final FloatgetMaxWidthRatio()final IntegergetHeight()final IntegergetPaddingLeft()final IntegergetPaddingTop()final IntegergetPaddingRight()final IntegergetPaddingBottom()final IntegergetMarginRight()final IntegergetMarginLeft()final IntegergetMarginTop()final IntegergetMarginBottom()final BooleanisVisibleArrow()final IntegergetArrowColor()final BooleangetArrowColorMatchBalloon()final IntegergetArrowSize()final FloatgetArrowPosition()final ArrowPositionRulesgetArrowPositionRules()final ArrowOrientationRulesgetArrowOrientationRules()final ArrowOrientationgetArrowOrientation()final DrawablegetArrowDrawable()final IntegergetArrowLeftPadding()final IntegergetArrowRightPadding()final IntegergetArrowTopPadding()final IntegergetArrowBottomPadding()final IntegergetArrowAlignAnchorPadding()final FloatgetArrowAlignAnchorPaddingRatio()final FloatgetArrowElevation()final IntegergetBackgroundColor()final DrawablegetBackgroundDrawable()final FloatgetCornerRadius()final CharSequencegetText()final IntegergetTextColor()final BooleangetTextIsHtml()final MovementMethodgetMovementMethod()final FloatgetTextSize()final IntegergetTextTypeface()final TypefacegetTextTypefaceObject()final FloatgetTextLineSpacing()final IntegergetTextGravity()final TextFormgetTextForm()final DrawablegetIconDrawable()final IconGravitygetIconGravity()final IntegergetIconWidth()final IntegergetIconHeight()final IntegergetIconSpace()final IntegergetIconColor()final IconFormgetIconForm()final CharSequencegetIconContentDescription()final FloatgetAlpha()final FloatgetElevation()final ViewgetLayout()final IntegergetLayoutRes()final BooleanisVisibleOverlay()final IntegergetOverlayColor()final FloatgetOverlayPadding()final IntegergetOverlayPaddingColor()final PointgetOverlayPosition()final BalloonOverlayShapegetOverlayShape()final IntegergetOverlayGravity()final OnBalloonClickListenergetOnBalloonClickListener()final OnBalloonDismissListenergetOnBalloonDismissListener()final OnBalloonInitializedListenergetOnBalloonInitializedListener()final OnBalloonOutsideTouchListenergetOnBalloonOutsideTouchListener()final View.OnTouchListenergetOnBalloonTouchListener()final View.OnTouchListenergetOnBalloonOverlayTouchListener()final OnBalloonOverlayClickListenergetOnBalloonOverlayClickListener()final BooleangetDismissWhenTouchOutside()final BooleangetDismissWhenShowAgain()final BooleangetDismissWhenClicked()final BooleangetDismissWhenOverlayClicked()final BooleangetDismissWhenLifecycleOnPause()final BooleangetPassTouchEventToAnchor()final LonggetAutoDismissDuration()final LifecycleOwnergetLifecycleOwner()final LifecycleObservergetLifecycleObserver()final IntegergetBalloonAnimationStyle()final IntegergetBalloonOverlayAnimationStyle()final BalloonAnimationgetBalloonAnimation()final BalloonOverlayAnimationgetBalloonOverlayAnimation()final LonggetCircularDuration()final BalloonHighlightAnimationgetBalloonHighlightAnimation()final IntegergetBalloonHighlightAnimationStyle()final LonggetBalloonHighlightAnimationStartDelay()final BalloonRotateAnimationgetBalloonRotateAnimation()final StringgetPreferenceName()final IntegergetShowTimes()final Function0<Unit>getRunIfReachedShowCounts()final BooleanisRtlLayout()final IntegergetSupportRtlLayoutFactor()final BooleanisFocusable()final BooleanisStatusBarVisible()final BooleanisAttachedInDecor()final BooleanisComposableContent()final Balloon.BuildersetWidth(@Dp() Integer value)sets the width size. final Balloon.BuildersetWidthResource(@DimenRes() Integer value)sets the width size using a dimension resource. final Balloon.BuildersetMinWidth(@Dp() Integer value)sets the minimum size of the width. final Balloon.BuildersetMinWidthResource(@DimenRes() Integer value)sets the minimum size of the width using a dimension resource. final Balloon.BuildersetMaxWidth(@Dp() Integer value)sets the maximum size of the width. final Balloon.BuildersetMaxWidthResource(@DimenRes() Integer value)sets the maximum size of the width using a dimension resource. final Balloon.BuildersetWidthRatio(@FloatRange(from = 0.0, to = 1.0) Float value)sets the width size by the display screen size ratio. final Balloon.BuildersetMinWidthRatio(@FloatRange(from = 0.0, to = 1.0) Float value)sets the minimum width size by the display screen size ratio. final Balloon.BuildersetMaxWidthRatio(@FloatRange(from = 0.0, to = 1.0) Float value)sets the maximum width size by the display screen size ratio. final Balloon.BuildersetHeight(@Dp() Integer value)sets the height size. final Balloon.BuildersetHeightResource(@DimenRes() Integer value)sets the height size using a dimension resource. final Balloon.BuildersetSize(@Dp() Integer width, @Dp() Integer height)sets the width and height sizes of the balloon. final Balloon.BuildersetSizeResource(@DimenRes() Integer width, @DimenRes() Integer height)sets the width and height sizes of the balloon using a dimension resource. final Balloon.BuildersetPadding(@Dp() Integer value)sets the padding on the balloon content all directions. final Balloon.BuildersetPaddingResource(@DimenRes() Integer value)sets the padding on the balloon content all directions using dimension resource. final Balloon.BuildersetPaddingHorizontal(@Dp() Integer value)sets the horizontal (right and left) padding on the balloon content. final Balloon.BuildersetPaddingHorizontalResource(@DimenRes() Integer value)sets the horizontal (right and left) padding on the balloon content using dimension resource. final Balloon.BuildersetPaddingVertical(@Dp() Integer value)sets the vertical (top and bottom) padding on the balloon content. final Balloon.BuildersetPaddingVerticalResource(@DimenRes() Integer value)sets the vertical (top and bottom) padding on the balloon content using dimension resource. final Balloon.BuildersetPaddingLeft(@Dp() Integer value)sets the left padding on the balloon content. final Balloon.BuildersetPaddingLeftResource(@DimenRes() Integer value)sets the left padding on the balloon content using dimension resource. final Balloon.BuildersetPaddingTop(@Dp() Integer value)sets the top padding on the balloon content. final Balloon.BuildersetPaddingTopResource(@DimenRes() Integer value)sets the top padding on the balloon content using dimension resource. final Balloon.BuildersetPaddingRight(@Dp() Integer value)sets the right padding on the balloon content. final Balloon.BuildersetPaddingRightResource(@DimenRes() Integer value)sets the right padding on the balloon content using dimension resource. final Balloon.BuildersetPaddingBottom(@Dp() Integer value)sets the bottom padding on the balloon content. final Balloon.BuildersetPaddingBottomResource(@DimenRes() Integer value)sets the bottom padding on the balloon content using dimension resource. final Balloon.BuildersetMargin(@Dp() Integer value)sets the margin on the balloon all directions. final Balloon.BuildersetMarginResource(@DimenRes() Integer value)sets the margin on the balloon all directions using a dimension resource. final Balloon.BuildersetMarginHorizontal(@Dp() Integer value)sets the horizontal (left and right) margins on the balloon. final Balloon.BuildersetMarginHorizontalResource(@DimenRes() Integer value)sets the horizontal (left and right) margins on the balloon using a dimension resource. final Balloon.BuildersetMarginVertical(@Dp() Integer value)sets the vertical (top and bottom) margins on the balloon. final Balloon.BuildersetMarginVerticalResource(@DimenRes() Integer value)sets the vertical (top and bottom) margins on the balloon using a dimension resource. final Balloon.BuildersetMarginLeft(@Dp() Integer value)sets the left margin on the balloon. final Balloon.BuildersetMarginLeftResource(@DimenRes() Integer value)sets the left margin on the balloon using dimension resource. final Balloon.BuildersetMarginTop(@Dp() Integer value)sets the top margin on the balloon. final Balloon.BuildersetMarginTopResource(@DimenRes() Integer value)sets the top margin on the balloon using dimension resource. final Balloon.BuildersetMarginRight(@Dp() Integer value)sets the right margin on the balloon. final Balloon.BuildersetMarginRightResource(@DimenRes() Integer value)sets the right margin on the balloon using dimension resource. final Balloon.BuildersetMarginBottom(@Dp() Integer value)sets the bottom margin on the balloon. final Balloon.BuildersetMarginBottomResource(@DimenRes() Integer value)sets the bottom margin on the balloon using dimension resource. final Balloon.BuildersetIsVisibleArrow(Boolean value)sets the visibility of the arrow. final Balloon.BuildersetArrowColor(@ColorInt() Integer value)sets a color of the arrow. final Balloon.BuildersetArrowColorMatchBalloon(Boolean value)sets if arrow color should match the color of the balloon card. final Balloon.BuildersetArrowColorResource(@ColorRes() Integer value)sets a color of the arrow using a resource. final Balloon.BuildersetArrowSize(@Dp() Integer value)sets the size of the arrow. final Balloon.BuildersetArrowSizeResource(@DimenRes() Integer value)sets the size of the arrow using dimension resource. final Balloon.BuildersetArrowPosition(@FloatRange(from = 0.0, to = 1.0) Float value)sets the arrow position by popup size ration. final Balloon.BuildersetArrowPositionRules(ArrowPositionRules value)ArrowPositionRules determines the position of the arrow depending on the aligning rules. final Balloon.BuildersetArrowOrientation(ArrowOrientation value)sets the arrow orientation using ArrowOrientation. final Balloon.BuildersetArrowOrientationRules(ArrowOrientationRules value)ArrowOrientationRules determines the orientation of the arrow depending on the aligning rules. final Balloon.BuildersetArrowDrawable(Drawable value)sets a custom drawable of the arrow. final Balloon.BuildersetArrowDrawableResource(@DrawableRes() Integer value)sets a custom drawable of the arrow using the resource. final Balloon.BuildersetArrowLeftPadding(@Dp() Integer value)sets the left padding of the arrow. final Balloon.BuildersetArrowLeftPaddingResource(@DimenRes() Integer value)sets the left padding of the arrow using the resource. final Balloon.BuildersetArrowRightPadding(@Dp() Integer value)sets the right padding of the arrow. final Balloon.BuildersetArrowRightPaddingResource(@DimenRes() Integer value)sets the right padding of the arrow using the resource. final Balloon.BuildersetArrowTopPadding(@Dp() Integer value)sets the top padding of the arrow. final Balloon.BuildersetArrowTopPaddingResource(@DimenRes() Integer value)sets the top padding of the arrow using the resource. final Balloon.BuildersetArrowBottomPadding(@Dp() Integer value)sets the bottom padding of the arrow. final Balloon.BuildersetArrowBottomPaddingResource(@DimenRes() Integer value)sets the bottom padding of the arrow using the resource. final Balloon.BuildersetArrowAlignAnchorPadding(@Dp() Integer value)sets the padding of the arrow when aligning anchor using with ArrowPositionRules.ALIGN_ANCHOR. final Balloon.BuildersetArrowAlignAnchorPaddingResource(@DimenRes() Integer value)sets the padding of the arrow the resource when aligning anchor using with ArrowPositionRules.ALIGN_ANCHOR. final Balloon.BuildersetArrowAlignAnchorPaddingRatio(Float value)sets the padding ratio of the arrow when aligning anchor using with ArrowPositionRules.ALIGN_ANCHOR. final Balloon.BuildersetArrowElevation(@Dp() Integer value)sets the elevation of the arrow. final Balloon.BuildersetArrowElevationResource(@DimenRes() Integer value)sets the elevation of the arrow using dimension resource. final Balloon.BuildersetBackgroundColor(@ColorInt() Integer value)sets the background color of the arrow and popup. final Balloon.BuildersetBackgroundColorResource(@ColorRes() Integer value)sets the background color of the arrow and popup using the resource color. final Balloon.BuildersetBackgroundDrawable(Drawable value)sets the background drawable of the popup. final Balloon.BuildersetBackgroundDrawableResource(@DrawableRes() Integer value)sets the background drawable of the popup by the resource. final Balloon.BuildersetCornerRadius(@Dp() Float value)sets the corner radius of the popup. final Balloon.BuildersetCornerRadiusResource(@DimenRes() Integer value)sets the corner radius of the popup using dimension resource. final Balloon.BuildersetText(CharSequence value)sets the main text content of the popup. final Balloon.BuildersetTextResource(@StringRes() Integer value)sets the main text content of the popup using resource. final Balloon.BuildersetTextColor(@ColorInt() Integer value)sets the color of the main text content. final Balloon.BuildersetTextColorResource(@ColorRes() Integer value)sets the color of the main text content using the resource color. final Balloon.BuildersetTextIsHtml(Boolean value)sets whether the text will be parsed as HTML (using Html.fromHtml(.. final Balloon.BuildersetMovementMethod(MovementMethod value)sets the movement method for TextView. final Balloon.BuildersetTextSize(@Sp() Float value)sets the size of the main text content. final Balloon.BuildersetTextSizeResource(@DimenRes() Integer value)sets the size of the main text content using dimension resource. final Balloon.BuildersetTextTypeface(Integer value)sets the typeface of the main text content. final Balloon.BuildersetTextTypeface(Typeface value)sets the typeface of the main text content. final Balloon.BuildersetTextLineSpacing(@Dp() Float value)sets the line spacing value of the text. final Balloon.BuildersetTextLineSpacingResource(@DimenRes() Integer value)sets the line spacing value resource of the text. final Balloon.BuildersetTextGravity(Integer value)sets gravity of the text. final Balloon.BuildersetTextForm(TextForm value)applies TextForm attributes to the main text content. final Balloon.BuildersetIconDrawable(Drawable value)sets the icon drawable of the popup. final Balloon.BuildersetIconDrawableResource(@DrawableRes() Integer value)sets the icon drawable of the popup using the resource. final Balloon.BuildersetIconGravity(IconGravity value)sets the icon gravity of the popup using the resource. final Balloon.BuildersetIconWidth(@Dp() Integer value)sets the width size of the icon drawable. final Balloon.BuildersetIconWidthResource(@DimenRes() Integer value)sets the width size of the icon drawable using the dimension resource. final Balloon.BuildersetIconHeight(@Dp() Integer value)sets the height size of the icon drawable. final Balloon.BuildersetIconHeightResource(@DimenRes() Integer value)sets the height size of the icon drawable using the dimension resource. final Balloon.BuildersetIconSize(@Dp() Integer value)sets the size of the icon drawable. final Balloon.BuildersetIconSizeResource(@DimenRes() Integer value)sets the size of the icon drawable using the dimension resource. final Balloon.BuildersetIconColor(@ColorInt() Integer value)sets the color of the icon drawable. final Balloon.BuildersetIconColorResource(@ColorRes() Integer value)sets the color of the icon drawable using the resource color. final Balloon.BuildersetIconSpace(@Dp() Integer value)sets the space between the icon and the main text content. final Balloon.BuildersetIconSpaceResource(@DimenRes() Integer value)sets the space between the icon and the main text content using dimension resource. final Balloon.BuildersetIconContentDescription(CharSequence value)sets the content description accessibility. final Balloon.BuildersetIconContentDescriptionResource(@StringRes() Integer value)sets the content description accessibility using resource. final Balloon.BuildersetIconForm(IconForm value)applies IconForm attributes to the icon. final Balloon.BuildersetAlpha(@FloatRange(from = 0.0, to = 1.0) Float value)sets the alpha value to the popup. final Balloon.BuildersetElevation(@Dp() Integer value)sets the elevation to the popup. final Balloon.BuildersetElevationResource(@DimenRes() Integer value)sets the elevation to the popup using dimension resource. final Balloon.BuildersetLayout(@LayoutRes() Integer layoutRes)sets a custom layout resource to the popup content. final Balloon.BuildersetLayout(View layout)sets a custom layout view to the popup content. final <T extends ViewBinding> Balloon.BuildersetLayout(T binding)sets a ViewBinding to the popup content. final Balloon.BuildersetIsVisibleOverlay(Boolean value)sets the visibility of the overlay for highlighting an anchor. final Balloon.BuildersetOverlayColor(@ColorInt() Integer value)background color of the overlay. final Balloon.BuildersetOverlayColorResource(@ColorRes() Integer value)background color of the overlay using a color resource. final Balloon.BuildersetOverlayPadding(@Dp() Float value)sets a padding value of the overlay shape internally. final Balloon.BuildersetOverlayPaddingResource(@DimenRes() Integer value)sets a padding value of the overlay shape internally using dimension resource.. final Balloon.BuildersetOverlayPaddingColor(@ColorInt() Integer value)sets color of the overlay padding. final Balloon.BuildersetOverlayPaddingColorResource(@ColorRes() Integer value)sets color of the overlay padding using a color resource. final Balloon.BuildersetOverlayPosition(Point value)sets a specific position of the overlay shape. final Balloon.BuildersetOverlayShape(BalloonOverlayShape value)sets a shape of the overlay over the anchor view. final Balloon.BuildersetOverlayGravity(Integer gravity)sets the balloon overlay gravity. final Balloon.BuildersetIsStatusBarVisible(Boolean value)sets is status bar is visible or not in your screen. final Balloon.BuildersetIsAttachedInDecor(Boolean value)sets whether the popup window will be attached in the decor frame of its parent window. final Balloon.BuildersetLifecycleOwner(LifecycleOwner value)sets the LifecycleOwner for dismissing automatically when the LifecycleOwner is destroyed. final Balloon.BuildersetLifecycleObserver(LifecycleObserver value)sets the LifecycleObserver for observing the the lifecycleOwner's lifecycle states. final Balloon.BuildersetBalloonAnimation(BalloonAnimation value)sets the balloon showing animation using BalloonAnimation. final Balloon.BuildersetBalloonAnimationStyle(@StyleRes() Integer value)sets the balloon showing animation using custom xml animation style. final Balloon.BuildersetBalloonOverlayAnimation(BalloonOverlayAnimation value)sets the balloon overlay showing animation using BalloonAnimation. final Balloon.BuildersetBalloonOverlayAnimationStyle(@StyleRes() Integer value)sets the balloon overlay showing animation using custom xml animation style. final Balloon.BuildersetCircularDuration(Long value)sets the duration of the circular animation. final Balloon.BuildersetBalloonHighlightAnimation(BalloonHighlightAnimation value, Long startDelay)sets the balloon highlight animation using BalloonHighlightAnimation. final Balloon.BuildersetBalloonHighlightAnimation(BalloonHighlightAnimation value)sets the balloon highlight animation using BalloonHighlightAnimation. final Balloon.BuildersetBalloonHighlightAnimationResource(@AnimRes() Integer value, Long startDelay)sets the balloon highlight animation using custom xml animation resource file. final Balloon.BuildersetBalloonHighlightAnimationResource(@AnimRes() Integer value)sets the balloon highlight animation using custom xml animation resource file. final Balloon.BuildersetBalloonRotationAnimation(BalloonRotateAnimation balloonRotateAnimation)sets a BalloonRotateAnimation to give highlight animation. final Balloon.BuildersetOnBalloonClickListener(OnBalloonClickListener value)sets a OnBalloonClickListener to the popup. final Balloon.BuildersetOnBalloonDismissListener(OnBalloonDismissListener value)sets a OnBalloonDismissListener to the popup. final Balloon.BuildersetOnBalloonInitializedListener(OnBalloonInitializedListener value)sets a OnBalloonInitializedListener to the popup. final Balloon.BuildersetOnBalloonOutsideTouchListener(OnBalloonOutsideTouchListener value)sets a OnBalloonOutsideTouchListener to the popup. final Balloon.BuildersetOnBalloonTouchListener(View.OnTouchListener value)sets a View.OnTouchListener to the popup. final Balloon.BuildersetOnBalloonOverlayClickListener(OnBalloonOverlayClickListener value)sets a OnBalloonOverlayClickListener to the overlay popup. final Balloon.BuildersetOnBalloonOverlayClickListener(Function0<Unit> block)sets a OnBalloonOverlayClickListener to the overlay popup using lambda. final Balloon.BuildersetDismissWhenTouchOutside(Boolean value)dismisses when touch outside. final Balloon.BuildersetOnBalloonOverlayTouchListener(View.OnTouchListener value)sets a View.OnTouchListener to the overlay popup. final Balloon.BuildersetDismissWhenShowAgain(Boolean value)dismisses when invoked show function again. final Balloon.BuildersetDismissWhenClicked(Boolean value)dismisses when the popup clicked. final Balloon.BuildersetDismissWhenLifecycleOnPause(Boolean value)dismisses when the LifecycleOwner be on paused. final Balloon.BuildersetDismissWhenOverlayClicked(Boolean value)dismisses when the overlay popup is clicked. final Balloon.BuildersetShouldPassTouchEventToAnchor(Boolean value)pass touch events through the overlay to the anchor. final Balloon.BuildersetAutoDismissDuration(Long value)dismisses automatically some milliseconds later when the popup is shown. final Balloon.BuildersetPreferenceName(String value)sets the preference name for persisting showing counts. final Balloon.BuildersetShowCounts(Integer value)sets showing counts which how many times the Balloon popup will be shown up. final Balloon.BuilderrunIfReachedShowCounts(Function0<Unit> block)sets a lambda for invoking after the preference showing counts is reached the goal. final Balloon.BuilderrunIfReachedShowCounts(Runnable runnable)sets a Runnable for invoking after the preference showing counts is reached the goal. final Balloon.BuildersetRtlSupports(Boolean isRtlSupport)sets the balloon should support the RTL layout. final Balloon.BuildersetFocusable(Boolean value)sets isFocusable option to the body window. final Balloon.BuildersetIsComposableContent(Boolean value)sets isComposableContent to the balloon content. final Balloonbuild()Create a new instance of the Balloon which includes customized attributes. -
-
Constructor Detail
-
Balloon.Builder
Balloon.Builder(Context context)
-
-
Method Detail
-
getMinWidth
final Integer getMinWidth()
-
getMaxWidth
final Integer getMaxWidth()
-
getWidthRatio
final Float getWidthRatio()
-
getMinWidthRatio
final Float getMinWidthRatio()
-
getMaxWidthRatio
final Float getMaxWidthRatio()
-
getPaddingLeft
final Integer getPaddingLeft()
-
getPaddingTop
final Integer getPaddingTop()
-
getPaddingRight
final Integer getPaddingRight()
-
getPaddingBottom
final Integer getPaddingBottom()
-
getMarginRight
final Integer getMarginRight()
-
getMarginLeft
final Integer getMarginLeft()
-
getMarginTop
final Integer getMarginTop()
-
getMarginBottom
final Integer getMarginBottom()
-
isVisibleArrow
final Boolean isVisibleArrow()
-
getArrowColor
final Integer getArrowColor()
-
getArrowColorMatchBalloon
final Boolean getArrowColorMatchBalloon()
-
getArrowSize
final Integer getArrowSize()
-
getArrowPosition
final Float getArrowPosition()
-
getArrowPositionRules
final ArrowPositionRules getArrowPositionRules()
-
getArrowOrientationRules
final ArrowOrientationRules getArrowOrientationRules()
-
getArrowOrientation
final ArrowOrientation getArrowOrientation()
-
getArrowDrawable
final Drawable getArrowDrawable()
-
getArrowLeftPadding
final Integer getArrowLeftPadding()
-
getArrowRightPadding
final Integer getArrowRightPadding()
-
getArrowTopPadding
final Integer getArrowTopPadding()
-
getArrowBottomPadding
final Integer getArrowBottomPadding()
-
getArrowAlignAnchorPadding
final Integer getArrowAlignAnchorPadding()
-
getArrowAlignAnchorPaddingRatio
final Float getArrowAlignAnchorPaddingRatio()
-
getArrowElevation
final Float getArrowElevation()
-
getBackgroundColor
final Integer getBackgroundColor()
-
getBackgroundDrawable
final Drawable getBackgroundDrawable()
-
getCornerRadius
final Float getCornerRadius()
-
getText
final CharSequence getText()
-
getTextColor
final Integer getTextColor()
-
getTextIsHtml
final Boolean getTextIsHtml()
-
getMovementMethod
final MovementMethod getMovementMethod()
-
getTextSize
final Float getTextSize()
-
getTextTypeface
final Integer getTextTypeface()
-
getTextTypefaceObject
final Typeface getTextTypefaceObject()
-
getTextLineSpacing
final Float getTextLineSpacing()
-
getTextGravity
final Integer getTextGravity()
-
getTextForm
final TextForm getTextForm()
-
getIconDrawable
final Drawable getIconDrawable()
-
getIconGravity
final IconGravity getIconGravity()
-
getIconWidth
final Integer getIconWidth()
-
getIconHeight
final Integer getIconHeight()
-
getIconSpace
final Integer getIconSpace()
-
getIconColor
final Integer getIconColor()
-
getIconForm
final IconForm getIconForm()
-
getIconContentDescription
final CharSequence getIconContentDescription()
-
getElevation
final Float getElevation()
-
getLayoutRes
final Integer getLayoutRes()
-
isVisibleOverlay
final Boolean isVisibleOverlay()
-
getOverlayColor
final Integer getOverlayColor()
-
getOverlayPadding
final Float getOverlayPadding()
-
getOverlayPaddingColor
final Integer getOverlayPaddingColor()
-
getOverlayPosition
final Point getOverlayPosition()
-
getOverlayShape
final BalloonOverlayShape getOverlayShape()
-
getOverlayGravity
final Integer getOverlayGravity()
-
getOnBalloonClickListener
final OnBalloonClickListener getOnBalloonClickListener()
-
getOnBalloonDismissListener
final OnBalloonDismissListener getOnBalloonDismissListener()
-
getOnBalloonInitializedListener
final OnBalloonInitializedListener getOnBalloonInitializedListener()
-
getOnBalloonOutsideTouchListener
final OnBalloonOutsideTouchListener getOnBalloonOutsideTouchListener()
-
getOnBalloonTouchListener
final View.OnTouchListener getOnBalloonTouchListener()
-
getOnBalloonOverlayTouchListener
final View.OnTouchListener getOnBalloonOverlayTouchListener()
-
getOnBalloonOverlayClickListener
final OnBalloonOverlayClickListener getOnBalloonOverlayClickListener()
-
getDismissWhenTouchOutside
final Boolean getDismissWhenTouchOutside()
-
getDismissWhenShowAgain
final Boolean getDismissWhenShowAgain()
-
getDismissWhenClicked
final Boolean getDismissWhenClicked()
-
getDismissWhenOverlayClicked
final Boolean getDismissWhenOverlayClicked()
-
getDismissWhenLifecycleOnPause
final Boolean getDismissWhenLifecycleOnPause()
-
getPassTouchEventToAnchor
final Boolean getPassTouchEventToAnchor()
-
getAutoDismissDuration
final Long getAutoDismissDuration()
-
getLifecycleOwner
final LifecycleOwner getLifecycleOwner()
-
getLifecycleObserver
final LifecycleObserver getLifecycleObserver()
-
getBalloonAnimationStyle
final Integer getBalloonAnimationStyle()
-
getBalloonOverlayAnimationStyle
final Integer getBalloonOverlayAnimationStyle()
-
getBalloonAnimation
final BalloonAnimation getBalloonAnimation()
-
getBalloonOverlayAnimation
final BalloonOverlayAnimation getBalloonOverlayAnimation()
-
getCircularDuration
final Long getCircularDuration()
-
getBalloonHighlightAnimation
final BalloonHighlightAnimation getBalloonHighlightAnimation()
-
getBalloonHighlightAnimationStyle
final Integer getBalloonHighlightAnimationStyle()
-
getBalloonHighlightAnimationStartDelay
final Long getBalloonHighlightAnimationStartDelay()
-
getBalloonRotateAnimation
final BalloonRotateAnimation getBalloonRotateAnimation()
-
getPreferenceName
final String getPreferenceName()
-
getShowTimes
final Integer getShowTimes()
-
getRunIfReachedShowCounts
final Function0<Unit> getRunIfReachedShowCounts()
-
isRtlLayout
final Boolean isRtlLayout()
-
getSupportRtlLayoutFactor
final Integer getSupportRtlLayoutFactor()
-
isFocusable
final Boolean isFocusable()
-
isStatusBarVisible
final Boolean isStatusBarVisible()
-
isAttachedInDecor
final Boolean isAttachedInDecor()
-
isComposableContent
final Boolean isComposableContent()
-
setWidth
final Balloon.Builder setWidth(@Dp() Integer value)
sets the width size.
-
setWidthResource
final Balloon.Builder setWidthResource(@DimenRes() Integer value)
sets the width size using a dimension resource.
-
setMinWidth
final Balloon.Builder setMinWidth(@Dp() Integer value)
sets the minimum size of the width. this functionality works only with the BalloonSizeSpec.WRAP.
-
setMinWidthResource
final Balloon.Builder setMinWidthResource(@DimenRes() Integer value)
sets the minimum size of the width using a dimension resource. this functionality works only with the BalloonSizeSpec.WRAP.
-
setMaxWidth
final Balloon.Builder setMaxWidth(@Dp() Integer value)
sets the maximum size of the width. this functionality works only with the BalloonSizeSpec.WRAP.
-
setMaxWidthResource
final Balloon.Builder setMaxWidthResource(@DimenRes() Integer value)
sets the maximum size of the width using a dimension resource. this functionality works only with the BalloonSizeSpec.WRAP.
-
setWidthRatio
final Balloon.Builder setWidthRatio(@FloatRange(from = 0.0, to = 1.0) Float value)
sets the width size by the display screen size ratio.
-
setMinWidthRatio
final Balloon.Builder setMinWidthRatio(@FloatRange(from = 0.0, to = 1.0) Float value)
sets the minimum width size by the display screen size ratio.
-
setMaxWidthRatio
final Balloon.Builder setMaxWidthRatio(@FloatRange(from = 0.0, to = 1.0) Float value)
sets the maximum width size by the display screen size ratio.
-
setHeight
final Balloon.Builder setHeight(@Dp() Integer value)
sets the height size.
-
setHeightResource
final Balloon.Builder setHeightResource(@DimenRes() Integer value)
sets the height size using a dimension resource.
-
setSize
final Balloon.Builder setSize(@Dp() Integer width, @Dp() Integer height)
sets the width and height sizes of the balloon.
-
setSizeResource
final Balloon.Builder setSizeResource(@DimenRes() Integer width, @DimenRes() Integer height)
sets the width and height sizes of the balloon using a dimension resource.
-
setPadding
final Balloon.Builder setPadding(@Dp() Integer value)
sets the padding on the balloon content all directions.
-
setPaddingResource
final Balloon.Builder setPaddingResource(@DimenRes() Integer value)
sets the padding on the balloon content all directions using dimension resource.
-
setPaddingHorizontal
final Balloon.Builder setPaddingHorizontal(@Dp() Integer value)
sets the horizontal (right and left) padding on the balloon content.
-
setPaddingHorizontalResource
final Balloon.Builder setPaddingHorizontalResource(@DimenRes() Integer value)
sets the horizontal (right and left) padding on the balloon content using dimension resource.
-
setPaddingVertical
final Balloon.Builder setPaddingVertical(@Dp() Integer value)
sets the vertical (top and bottom) padding on the balloon content.
-
setPaddingVerticalResource
final Balloon.Builder setPaddingVerticalResource(@DimenRes() Integer value)
sets the vertical (top and bottom) padding on the balloon content using dimension resource.
-
setPaddingLeft
final Balloon.Builder setPaddingLeft(@Dp() Integer value)
sets the left padding on the balloon content.
-
setPaddingLeftResource
final Balloon.Builder setPaddingLeftResource(@DimenRes() Integer value)
sets the left padding on the balloon content using dimension resource.
-
setPaddingTop
final Balloon.Builder setPaddingTop(@Dp() Integer value)
sets the top padding on the balloon content.
-
setPaddingTopResource
final Balloon.Builder setPaddingTopResource(@DimenRes() Integer value)
sets the top padding on the balloon content using dimension resource.
-
setPaddingRight
final Balloon.Builder setPaddingRight(@Dp() Integer value)
sets the right padding on the balloon content.
-
setPaddingRightResource
final Balloon.Builder setPaddingRightResource(@DimenRes() Integer value)
sets the right padding on the balloon content using dimension resource.
-
setPaddingBottom
final Balloon.Builder setPaddingBottom(@Dp() Integer value)
sets the bottom padding on the balloon content.
-
setPaddingBottomResource
final Balloon.Builder setPaddingBottomResource(@DimenRes() Integer value)
sets the bottom padding on the balloon content using dimension resource.
-
setMargin
final Balloon.Builder setMargin(@Dp() Integer value)
sets the margin on the balloon all directions.
-
setMarginResource
final Balloon.Builder setMarginResource(@DimenRes() Integer value)
sets the margin on the balloon all directions using a dimension resource.
-
setMarginHorizontal
final Balloon.Builder setMarginHorizontal(@Dp() Integer value)
sets the horizontal (left and right) margins on the balloon.
-
setMarginHorizontalResource
final Balloon.Builder setMarginHorizontalResource(@DimenRes() Integer value)
sets the horizontal (left and right) margins on the balloon using a dimension resource.
-
setMarginVertical
final Balloon.Builder setMarginVertical(@Dp() Integer value)
sets the vertical (top and bottom) margins on the balloon.
-
setMarginVerticalResource
final Balloon.Builder setMarginVerticalResource(@DimenRes() Integer value)
sets the vertical (top and bottom) margins on the balloon using a dimension resource.
-
setMarginLeft
final Balloon.Builder setMarginLeft(@Dp() Integer value)
sets the left margin on the balloon.
-
setMarginLeftResource
final Balloon.Builder setMarginLeftResource(@DimenRes() Integer value)
sets the left margin on the balloon using dimension resource.
-
setMarginTop
final Balloon.Builder setMarginTop(@Dp() Integer value)
sets the top margin on the balloon.
-
setMarginTopResource
final Balloon.Builder setMarginTopResource(@DimenRes() Integer value)
sets the top margin on the balloon using dimension resource.
-
setMarginRight
final Balloon.Builder setMarginRight(@Dp() Integer value)
sets the right margin on the balloon.
-
setMarginRightResource
final Balloon.Builder setMarginRightResource(@DimenRes() Integer value)
sets the right margin on the balloon using dimension resource.
-
setMarginBottom
final Balloon.Builder setMarginBottom(@Dp() Integer value)
sets the bottom margin on the balloon.
-
setMarginBottomResource
final Balloon.Builder setMarginBottomResource(@DimenRes() Integer value)
sets the bottom margin on the balloon using dimension resource.
-
setIsVisibleArrow
final Balloon.Builder setIsVisibleArrow(Boolean value)
sets the visibility of the arrow.
-
setArrowColor
final Balloon.Builder setArrowColor(@ColorInt() Integer value)
sets a color of the arrow.
-
setArrowColorMatchBalloon
final Balloon.Builder setArrowColorMatchBalloon(Boolean value)
sets if arrow color should match the color of the balloon card. Overrides arrowColor. Does not work with custom arrows.
-
setArrowColorResource
final Balloon.Builder setArrowColorResource(@ColorRes() Integer value)
sets a color of the arrow using a resource.
-
setArrowSize
final Balloon.Builder setArrowSize(@Dp() Integer value)
sets the size of the arrow.
-
setArrowSizeResource
final Balloon.Builder setArrowSizeResource(@DimenRes() Integer value)
sets the size of the arrow using dimension resource.
-
setArrowPosition
final Balloon.Builder setArrowPosition(@FloatRange(from = 0.0, to = 1.0) Float value)
sets the arrow position by popup size ration. The popup size depends on arrowOrientation.
-
setArrowPositionRules
final Balloon.Builder setArrowPositionRules(ArrowPositionRules value)
ArrowPositionRules determines the position of the arrow depending on the aligning rules.
ArrowPositionRules.ALIGN_BALLOON: Align the arrow position depending on the balloon popup body. ArrowPositionRules.ALIGN_ANCHOR: Align the arrow position depending on an anchor.
-
setArrowOrientation
final Balloon.Builder setArrowOrientation(ArrowOrientation value)
sets the arrow orientation using ArrowOrientation.
-
setArrowOrientationRules
final Balloon.Builder setArrowOrientationRules(ArrowOrientationRules value)
ArrowOrientationRules determines the orientation of the arrow depending on the aligning rules.
ArrowOrientationRules.ALIGN_ANCHOR: Align depending on the position of an anchor. ArrowOrientationRules.ALIGN_FIXED: Align to fixed ArrowOrientation.
-
setArrowDrawable
final Balloon.Builder setArrowDrawable(Drawable value)
sets a custom drawable of the arrow.
-
setArrowDrawableResource
final Balloon.Builder setArrowDrawableResource(@DrawableRes() Integer value)
sets a custom drawable of the arrow using the resource.
-
setArrowLeftPadding
final Balloon.Builder setArrowLeftPadding(@Dp() Integer value)
sets the left padding of the arrow.
-
setArrowLeftPaddingResource
final Balloon.Builder setArrowLeftPaddingResource(@DimenRes() Integer value)
sets the left padding of the arrow using the resource.
-
setArrowRightPadding
final Balloon.Builder setArrowRightPadding(@Dp() Integer value)
sets the right padding of the arrow.
-
setArrowRightPaddingResource
final Balloon.Builder setArrowRightPaddingResource(@DimenRes() Integer value)
sets the right padding of the arrow using the resource.
-
setArrowTopPadding
final Balloon.Builder setArrowTopPadding(@Dp() Integer value)
sets the top padding of the arrow.
-
setArrowTopPaddingResource
final Balloon.Builder setArrowTopPaddingResource(@DimenRes() Integer value)
sets the top padding of the arrow using the resource.
-
setArrowBottomPadding
final Balloon.Builder setArrowBottomPadding(@Dp() Integer value)
sets the bottom padding of the arrow.
-
setArrowBottomPaddingResource
final Balloon.Builder setArrowBottomPaddingResource(@DimenRes() Integer value)
sets the bottom padding of the arrow using the resource.
-
setArrowAlignAnchorPadding
final Balloon.Builder setArrowAlignAnchorPadding(@Dp() Integer value)
sets the padding of the arrow when aligning anchor using with ArrowPositionRules.ALIGN_ANCHOR.
-
setArrowAlignAnchorPaddingResource
final Balloon.Builder setArrowAlignAnchorPaddingResource(@DimenRes() Integer value)
sets the padding of the arrow the resource when aligning anchor using with ArrowPositionRules.ALIGN_ANCHOR.
-
setArrowAlignAnchorPaddingRatio
final Balloon.Builder setArrowAlignAnchorPaddingRatio(Float value)
sets the padding ratio of the arrow when aligning anchor using with ArrowPositionRules.ALIGN_ANCHOR.
-
setArrowElevation
final Balloon.Builder setArrowElevation(@Dp() Integer value)
sets the elevation of the arrow.
-
setArrowElevationResource
final Balloon.Builder setArrowElevationResource(@DimenRes() Integer value)
sets the elevation of the arrow using dimension resource.
-
setBackgroundColor
final Balloon.Builder setBackgroundColor(@ColorInt() Integer value)
sets the background color of the arrow and popup.
-
setBackgroundColorResource
final Balloon.Builder setBackgroundColorResource(@ColorRes() Integer value)
sets the background color of the arrow and popup using the resource color.
-
setBackgroundDrawable
final Balloon.Builder setBackgroundDrawable(Drawable value)
sets the background drawable of the popup.
-
setBackgroundDrawableResource
final Balloon.Builder setBackgroundDrawableResource(@DrawableRes() Integer value)
sets the background drawable of the popup by the resource.
-
setCornerRadius
final Balloon.Builder setCornerRadius(@Dp() Float value)
sets the corner radius of the popup.
-
setCornerRadiusResource
final Balloon.Builder setCornerRadiusResource(@DimenRes() Integer value)
sets the corner radius of the popup using dimension resource.
-
setText
final Balloon.Builder setText(CharSequence value)
sets the main text content of the popup.
-
setTextResource
final Balloon.Builder setTextResource(@StringRes() Integer value)
sets the main text content of the popup using resource.
-
setTextColor
final Balloon.Builder setTextColor(@ColorInt() Integer value)
sets the color of the main text content.
-
setTextColorResource
final Balloon.Builder setTextColorResource(@ColorRes() Integer value)
sets the color of the main text content using the resource color.
-
setTextIsHtml
final Balloon.Builder setTextIsHtml(Boolean value)
sets whether the text will be parsed as HTML (using Html.fromHtml(..))
-
setMovementMethod
final Balloon.Builder setMovementMethod(MovementMethod value)
sets the movement method for TextView.
-
setTextSize
final Balloon.Builder setTextSize(@Sp() Float value)
sets the size of the main text content.
-
setTextSizeResource
final Balloon.Builder setTextSizeResource(@DimenRes() Integer value)
sets the size of the main text content using dimension resource.
-
setTextTypeface
final Balloon.Builder setTextTypeface(Integer value)
sets the typeface of the main text content.
-
setTextTypeface
final Balloon.Builder setTextTypeface(Typeface value)
sets the typeface of the main text content.
-
setTextLineSpacing
final Balloon.Builder setTextLineSpacing(@Dp() Float value)
sets the line spacing value of the text.
-
setTextLineSpacingResource
final Balloon.Builder setTextLineSpacingResource(@DimenRes() Integer value)
sets the line spacing value resource of the text.
-
setTextGravity
final Balloon.Builder setTextGravity(Integer value)
sets gravity of the text. this only works when the width or setWidthRatio set explicitly.
-
setTextForm
final Balloon.Builder setTextForm(TextForm value)
applies TextForm attributes to the main text content.
-
setIconDrawable
final Balloon.Builder setIconDrawable(Drawable value)
sets the icon drawable of the popup.
-
setIconDrawableResource
final Balloon.Builder setIconDrawableResource(@DrawableRes() Integer value)
sets the icon drawable of the popup using the resource.
-
setIconGravity
final Balloon.Builder setIconGravity(IconGravity value)
sets the icon gravity of the popup using the resource.
-
setIconWidth
final Balloon.Builder setIconWidth(@Dp() Integer value)
sets the width size of the icon drawable.
-
setIconWidthResource
final Balloon.Builder setIconWidthResource(@DimenRes() Integer value)
sets the width size of the icon drawable using the dimension resource.
-
setIconHeight
final Balloon.Builder setIconHeight(@Dp() Integer value)
sets the height size of the icon drawable.
-
setIconHeightResource
final Balloon.Builder setIconHeightResource(@DimenRes() Integer value)
sets the height size of the icon drawable using the dimension resource.
-
setIconSize
final Balloon.Builder setIconSize(@Dp() Integer value)
sets the size of the icon drawable.
-
setIconSizeResource
final Balloon.Builder setIconSizeResource(@DimenRes() Integer value)
sets the size of the icon drawable using the dimension resource.
-
setIconColor
final Balloon.Builder setIconColor(@ColorInt() Integer value)
sets the color of the icon drawable.
-
setIconColorResource
final Balloon.Builder setIconColorResource(@ColorRes() Integer value)
sets the color of the icon drawable using the resource color.
-
setIconSpace
final Balloon.Builder setIconSpace(@Dp() Integer value)
sets the space between the icon and the main text content.
-
setIconSpaceResource
final Balloon.Builder setIconSpaceResource(@DimenRes() Integer value)
sets the space between the icon and the main text content using dimension resource.
-
setIconContentDescription
final Balloon.Builder setIconContentDescription(CharSequence value)
sets the content description accessibility.
-
setIconContentDescriptionResource
final Balloon.Builder setIconContentDescriptionResource(@StringRes() Integer value)
sets the content description accessibility using resource.
-
setIconForm
final Balloon.Builder setIconForm(IconForm value)
applies IconForm attributes to the icon.
-
setAlpha
final Balloon.Builder setAlpha(@FloatRange(from = 0.0, to = 1.0) Float value)
sets the alpha value to the popup.
-
setElevation
final Balloon.Builder setElevation(@Dp() Integer value)
sets the elevation to the popup.
-
setElevationResource
final Balloon.Builder setElevationResource(@DimenRes() Integer value)
sets the elevation to the popup using dimension resource.
-
setLayout
final Balloon.Builder setLayout(@LayoutRes() Integer layoutRes)
sets a custom layout resource to the popup content.
-
setLayout
final Balloon.Builder setLayout(View layout)
sets a custom layout view to the popup content.
-
setLayout
final <T extends ViewBinding> Balloon.Builder setLayout(T binding)
sets a ViewBinding to the popup content.
-
setIsVisibleOverlay
final Balloon.Builder setIsVisibleOverlay(Boolean value)
sets the visibility of the overlay for highlighting an anchor.
-
setOverlayColor
final Balloon.Builder setOverlayColor(@ColorInt() Integer value)
background color of the overlay.
-
setOverlayColorResource
final Balloon.Builder setOverlayColorResource(@ColorRes() Integer value)
background color of the overlay using a color resource.
-
setOverlayPadding
final Balloon.Builder setOverlayPadding(@Dp() Float value)
sets a padding value of the overlay shape internally.
-
setOverlayPaddingResource
final Balloon.Builder setOverlayPaddingResource(@DimenRes() Integer value)
sets a padding value of the overlay shape internally using dimension resource..
-
setOverlayPaddingColor
final Balloon.Builder setOverlayPaddingColor(@ColorInt() Integer value)
sets color of the overlay padding.
-
setOverlayPaddingColorResource
final Balloon.Builder setOverlayPaddingColorResource(@ColorRes() Integer value)
sets color of the overlay padding using a color resource.
-
setOverlayPosition
final Balloon.Builder setOverlayPosition(Point value)
sets a specific position of the overlay shape.
-
setOverlayShape
final Balloon.Builder setOverlayShape(BalloonOverlayShape value)
sets a shape of the overlay over the anchor view.
-
setOverlayGravity
final Balloon.Builder setOverlayGravity(Integer gravity)
sets the balloon overlay gravity.
-
setIsStatusBarVisible
final Balloon.Builder setIsStatusBarVisible(Boolean value)
sets is status bar is visible or not in your screen.
-
setIsAttachedInDecor
final Balloon.Builder setIsAttachedInDecor(Boolean value)
sets whether the popup window will be attached in the decor frame of its parent window. If you want to show up balloon on your DialogFragment, it's recommended to use with true. (#131)
-
setLifecycleOwner
final Balloon.Builder setLifecycleOwner(LifecycleOwner value)
sets the LifecycleOwner for dismissing automatically when the LifecycleOwner is destroyed. It will prevents memory leak : Avoid Memory Leak
-
setLifecycleObserver
final Balloon.Builder setLifecycleObserver(LifecycleObserver value)
sets the LifecycleObserver for observing the the lifecycleOwner's lifecycle states.
-
setBalloonAnimation
final Balloon.Builder setBalloonAnimation(BalloonAnimation value)
sets the balloon showing animation using BalloonAnimation.
-
setBalloonAnimationStyle
final Balloon.Builder setBalloonAnimationStyle(@StyleRes() Integer value)
sets the balloon showing animation using custom xml animation style.
-
setBalloonOverlayAnimation
final Balloon.Builder setBalloonOverlayAnimation(BalloonOverlayAnimation value)
sets the balloon overlay showing animation using BalloonAnimation.
-
setBalloonOverlayAnimationStyle
final Balloon.Builder setBalloonOverlayAnimationStyle(@StyleRes() Integer value)
sets the balloon overlay showing animation using custom xml animation style.
-
setCircularDuration
final Balloon.Builder setCircularDuration(Long value)
sets the duration of the circular animation. this option only works with BalloonAnimation.CIRCULAR value in setBalloonAnimation.
-
setBalloonHighlightAnimation
final Balloon.Builder setBalloonHighlightAnimation(BalloonHighlightAnimation value, Long startDelay)
sets the balloon highlight animation using BalloonHighlightAnimation.
-
setBalloonHighlightAnimation
final Balloon.Builder setBalloonHighlightAnimation(BalloonHighlightAnimation value)
sets the balloon highlight animation using BalloonHighlightAnimation.
-
setBalloonHighlightAnimationResource
final Balloon.Builder setBalloonHighlightAnimationResource(@AnimRes() Integer value, Long startDelay)
sets the balloon highlight animation using custom xml animation resource file.
-
setBalloonHighlightAnimationResource
final Balloon.Builder setBalloonHighlightAnimationResource(@AnimRes() Integer value)
sets the balloon highlight animation using custom xml animation resource file.
-
setBalloonRotationAnimation
final Balloon.Builder setBalloonRotationAnimation(BalloonRotateAnimation balloonRotateAnimation)
sets a BalloonRotateAnimation to give highlight animation.
-
setOnBalloonClickListener
final Balloon.Builder setOnBalloonClickListener(OnBalloonClickListener value)
sets a OnBalloonClickListener to the popup.
-
setOnBalloonDismissListener
final Balloon.Builder setOnBalloonDismissListener(OnBalloonDismissListener value)
sets a OnBalloonDismissListener to the popup.
-
setOnBalloonInitializedListener
final Balloon.Builder setOnBalloonInitializedListener(OnBalloonInitializedListener value)
sets a OnBalloonInitializedListener to the popup.
-
setOnBalloonOutsideTouchListener
final Balloon.Builder setOnBalloonOutsideTouchListener(OnBalloonOutsideTouchListener value)
sets a OnBalloonOutsideTouchListener to the popup.
-
setOnBalloonTouchListener
final Balloon.Builder setOnBalloonTouchListener(View.OnTouchListener value)
sets a View.OnTouchListener to the popup.
-
setOnBalloonOverlayClickListener
final Balloon.Builder setOnBalloonOverlayClickListener(OnBalloonOverlayClickListener value)
sets a OnBalloonOverlayClickListener to the overlay popup.
-
setOnBalloonOverlayClickListener
final Balloon.Builder setOnBalloonOverlayClickListener(Function0<Unit> block)
sets a OnBalloonOverlayClickListener to the overlay popup using lambda.
-
setDismissWhenTouchOutside
final Balloon.Builder setDismissWhenTouchOutside(Boolean value)
dismisses when touch outside.
-
setOnBalloonOverlayTouchListener
final Balloon.Builder setOnBalloonOverlayTouchListener(View.OnTouchListener value)
sets a View.OnTouchListener to the overlay popup.
-
setDismissWhenShowAgain
final Balloon.Builder setDismissWhenShowAgain(Boolean value)
dismisses when invoked show function again.
-
setDismissWhenClicked
final Balloon.Builder setDismissWhenClicked(Boolean value)
dismisses when the popup clicked.
-
setDismissWhenLifecycleOnPause
final Balloon.Builder setDismissWhenLifecycleOnPause(Boolean value)
dismisses when the LifecycleOwner be on paused.
-
setDismissWhenOverlayClicked
final Balloon.Builder setDismissWhenOverlayClicked(Boolean value)
dismisses when the overlay popup is clicked.
-
setShouldPassTouchEventToAnchor
final Balloon.Builder setShouldPassTouchEventToAnchor(Boolean value)
pass touch events through the overlay to the anchor.
-
setAutoDismissDuration
final Balloon.Builder setAutoDismissDuration(Long value)
dismisses automatically some milliseconds later when the popup is shown.
-
setPreferenceName
final Balloon.Builder setPreferenceName(String value)
sets the preference name for persisting showing counts. This method should be used with the setShowCounts.
-
setShowCounts
final Balloon.Builder setShowCounts(Integer value)
sets showing counts which how many times the Balloon popup will be shown up. This method should be used with the setPreferenceName.
-
runIfReachedShowCounts
final Balloon.Builder runIfReachedShowCounts(Function0<Unit> block)
sets a lambda for invoking after the preference showing counts is reached the goal. This method should be used ith the setPreferenceName and setShowCounts.
- Parameters:
block- A lambda for invoking after the preference showing counts is reached the goal.
-
runIfReachedShowCounts
final Balloon.Builder runIfReachedShowCounts(Runnable runnable)
sets a Runnable for invoking after the preference showing counts is reached the goal. This method should be used ith the setPreferenceName and setShowCounts.
- Parameters:
runnable- A Runnable for invoking after the preference showing counts is reached the goal.
-
setRtlSupports
final Balloon.Builder setRtlSupports(Boolean isRtlSupport)
sets the balloon should support the RTL layout. The RTL layout is enabled by default, but you can disable this by passing false to the isRtlSupport.
- Parameters:
isRtlSupport- Decides the balloon should support RTL layout.
-
setFocusable
final Balloon.Builder setFocusable(Boolean value)
sets isFocusable option to the body window. if true when the balloon is showing, can not touch other views and onBackPressed will be fired to the balloon.
-
setIsComposableContent
final Balloon.Builder setIsComposableContent(Boolean value)
sets isComposableContent to the balloon content. isComposableContent indicates if the custom layout content is composed of Jetpack Compose Composable function.
-
-
-
-