-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.accessibility.AccessibilityEventSource
public final class SlideToActView extends View
Class representing the custom view, SlideToActView.
SlideToActView is an elegant material designed slider, that enrich your app with a "Slide-to-unlock" like widget.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSlideToActView.Companionpublic interfaceSlideToActView.OnSlideToActAnimationEventListenerEvent handler for the SlideToActView animation events. This event handler can be used to react to animation events from the Slide, the event will be fired whenever an animation start/end.
public interfaceSlideToActView.OnSlideCompleteListenerEvent handler for the slide complete event. Use this handler to react to slide event
public interfaceSlideToActView.OnSlideResetListenerEvent handler for the slide react event. Use this handler to inform the user that he can slide again.
public interfaceSlideToActView.OnSlideUserFailedListenerEvent handler for the user failure with the Widget. You can subscribe to this event to get notified when the user is wrongly interacting with the widget to eventually educate it:
The user clicked outside of the cursor
The user slided but left when the cursor was back to zero
You can use this listener to show a Toast or other messages.
-
Field Summary
Fields Modifier and Type Field Description private CharSequencetextprivate IntegertypeFaceprivate IntegertextAppearanceprivate IntegerouterColorprivate IntegerinnerColorprivate LonganimDurationprivate LongbumpVibrationprivate IntegertextColorprivate IntegericonColorprivate IntegersliderIconprivate IntegercompleteIconprivate BooleanisLockedprivate BooleanisReversedprivate BooleanisRotateIconprivate BooleanisAnimateCompletionprivate SlideToActView.OnSlideToActAnimationEventListeneronSlideToActAnimationEventListenerprivate SlideToActView.OnSlideCompleteListeneronSlideCompleteListenerprivate SlideToActView.OnSlideResetListeneronSlideResetListenerprivate SlideToActView.OnSlideUserFailedListeneronSlideUserFailedListener
-
Constructor Summary
Constructors Constructor Description SlideToActView(Context context, AttributeSet xmlAttrs, Integer defStyleAttr)SlideToActView(Context context, AttributeSet xmlAttrs)SlideToActView(Context context)
-
Method Summary
Modifier and Type Method Description final CharSequencegetText()Text message final UnitsetText(CharSequence text)final IntegergetTypeFace()Typeface for the text field final UnitsetTypeFace(Integer typeFace)final IntegergetTextAppearance()Text Appearance used to fully customize the font final UnitsetTextAppearance(@StyleRes() Integer textAppearance)final IntegergetOuterColor()Outer color used by the slider (primary) final UnitsetOuterColor(@ColorInt() Integer outerColor)final IntegergetInnerColor()Inner color used by the slider (secondary, icon and border) final UnitsetInnerColor(@ColorInt() Integer innerColor)final LonggetAnimDuration()Duration of the complete and reset animation (in milliseconds). final UnitsetAnimDuration(Long animDuration)Duration of the complete and reset animation (in milliseconds). final LonggetBumpVibration()Duration of vibration after bumping to the end point final UnitsetBumpVibration(Long bumpVibration)Duration of vibration after bumping to the end point final IntegergetTextColor()final UnitsetTextColor(@ColorInt() Integer textColor)final IntegergetIconColor()Custom Icon color final UnitsetIconColor(@ColorInt() Integer iconColor)final IntegergetSliderIcon()Custom Slider Icon final UnitsetSliderIcon(@DrawableRes() Integer sliderIcon)final IntegergetCompleteIcon()final UnitsetCompleteIcon(@DrawableRes() Integer completeIcon)final BooleangetIsLocked()Public flag to lock the slider final UnitsetIsLocked(Boolean isLocked)Public flag to lock the slider final BooleangetIsReversed()Public flag to reverse the slider by 180 degree final UnitsetIsReversed(Boolean isReversed)final BooleangetIsRotateIcon()Public flag to lock the rotation icon final UnitsetIsRotateIcon(Boolean isRotateIcon)Public flag to lock the rotation icon final BooleangetIsAnimateCompletion()Public flag to enable complete animation final UnitsetIsAnimateCompletion(Boolean isAnimateCompletion)Public flag to enable complete animation final SlideToActView.OnSlideToActAnimationEventListenergetOnSlideToActAnimationEventListener()Public Slide event listeners final UnitsetOnSlideToActAnimationEventListener(SlideToActView.OnSlideToActAnimationEventListener onSlideToActAnimationEventListener)Public Slide event listeners final SlideToActView.OnSlideCompleteListenergetOnSlideCompleteListener()final UnitsetOnSlideCompleteListener(SlideToActView.OnSlideCompleteListener onSlideCompleteListener)final SlideToActView.OnSlideResetListenergetOnSlideResetListener()final UnitsetOnSlideResetListener(SlideToActView.OnSlideResetListener onSlideResetListener)final SlideToActView.OnSlideUserFailedListenergetOnSlideUserFailedListener()final UnitsetOnSlideUserFailedListener(SlideToActView.OnSlideUserFailedListener onSlideUserFailedListener)BooleanperformClick()BooleanonTouchEvent(MotionEvent event)final UnitsetCompleted(Boolean completed, Boolean withAnimation)Method to change slider state final UnitcompleteSlider()final UnitresetSlider()final BooleanisCompleted()Method that returns the 'mIsCompleted' flag -
Methods inherited from class com.ncorti.slidetoact.SlideToActView
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addFocusables, addKeyboardNavigationClusters, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, addTouchables, animate, announceForAccessibility, autofill, autofill, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, checkInputConnectionProxy, clearAnimation, clearFocus, clearViewTranslationCallback, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchCreateViewTranslationRequest, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchGenericFocusedEvent, dispatchGenericMotionEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPointerCaptureChanged, dispatchPopulateAccessibilityEvent, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchScrollCaptureSearch, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, draw, drawableHotspotChanged, drawableStateChanged, findFocus, findOnBackInvokedDispatcher, findViewById, findViewWithTag, findViewsWithText, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, gatherTransparentRegion, generateDisplayHash, getAccessibilityClassName, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getContextMenuInfo, getDefaultFocusHighlightEnabled, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getOverlay, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getPreferKeepClearRects, getReceiveContentMimeTypes, getResources, getRevealOnFocusHint, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootSurfaceControl, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollCaptureHint, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchDelegate, getTouchables, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTranslationResponse, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocus, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasTransientState, hasWindowFocus, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isAutoHandwritingEnabled, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPivotSet, isPreferKeepClear, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollContainer, isScrollbarFadingEnabled, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, jumpDrawablesToCurrentState, keyboardNavigationClusterSearch, layout, measure, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onAttachedToWindow, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateDrawableState, onCreateInputConnection, onCreateViewTranslationRequest, onCreateVirtualViewTranslationRequests, onDetachedFromWindow, onDisplayHint, onDragEvent, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onLayout, onOverScrolled, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideStructure, onProvideVirtualStructure, onReceiveContent, onResolvePointerIcon, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollCaptureSearch, onScrollChanged, onSetAlpha, onStartTemporaryDetach, onTrackballEvent, onViewTranslationResponse, onVirtualViewTranslationResponses, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, performReceiveContent, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requestUnbufferedDispatch, requireViewById, resetPivot, restoreDefaultFocus, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAllowClickWhenDisabled, setAlpha, setAnimation, setAnimationMatrix, setAutoHandwritingEnabled, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnReceiveContentListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPreferKeepClear, setPreferKeepClearRects, setPressed, setRenderEffect, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollBarSize, setScrollBarStyle, setScrollCaptureCallback, setScrollCaptureHint, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setScrollbarFadingEnabled, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setViewTranslationCallback, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setWindowInsetsAnimationCallback, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SlideToActView
SlideToActView(Context context, AttributeSet xmlAttrs, Integer defStyleAttr)
-
SlideToActView
SlideToActView(Context context, AttributeSet xmlAttrs)
-
SlideToActView
SlideToActView(Context context)
-
-
Method Detail
-
getText
final CharSequence getText()
Text message
-
setText
final Unit setText(CharSequence text)
-
getTypeFace
final Integer getTypeFace()
Typeface for the text field
-
setTypeFace
final Unit setTypeFace(Integer typeFace)
-
getTextAppearance
final Integer getTextAppearance()
Text Appearance used to fully customize the font
-
setTextAppearance
final Unit setTextAppearance(@StyleRes() Integer textAppearance)
-
getOuterColor
final Integer getOuterColor()
Outer color used by the slider (primary)
-
setOuterColor
final Unit setOuterColor(@ColorInt() Integer outerColor)
-
getInnerColor
final Integer getInnerColor()
Inner color used by the slider (secondary, icon and border)
-
setInnerColor
final Unit setInnerColor(@ColorInt() Integer innerColor)
-
getAnimDuration
final Long getAnimDuration()
Duration of the complete and reset animation (in milliseconds).
-
setAnimDuration
final Unit setAnimDuration(Long animDuration)
Duration of the complete and reset animation (in milliseconds).
-
getBumpVibration
final Long getBumpVibration()
Duration of vibration after bumping to the end point
-
setBumpVibration
final Unit setBumpVibration(Long bumpVibration)
Duration of vibration after bumping to the end point
-
getTextColor
final Integer getTextColor()
-
setTextColor
final Unit setTextColor(@ColorInt() Integer textColor)
-
getIconColor
final Integer getIconColor()
Custom Icon color
-
setIconColor
final Unit setIconColor(@ColorInt() Integer iconColor)
-
getSliderIcon
final Integer getSliderIcon()
Custom Slider Icon
-
setSliderIcon
final Unit setSliderIcon(@DrawableRes() Integer sliderIcon)
-
getCompleteIcon
final Integer getCompleteIcon()
-
setCompleteIcon
final Unit setCompleteIcon(@DrawableRes() Integer completeIcon)
-
getIsLocked
final Boolean getIsLocked()
Public flag to lock the slider
-
setIsLocked
final Unit setIsLocked(Boolean isLocked)
Public flag to lock the slider
-
getIsReversed
final Boolean getIsReversed()
Public flag to reverse the slider by 180 degree
-
setIsReversed
final Unit setIsReversed(Boolean isReversed)
-
getIsRotateIcon
final Boolean getIsRotateIcon()
Public flag to lock the rotation icon
-
setIsRotateIcon
final Unit setIsRotateIcon(Boolean isRotateIcon)
Public flag to lock the rotation icon
-
getIsAnimateCompletion
final Boolean getIsAnimateCompletion()
Public flag to enable complete animation
-
setIsAnimateCompletion
final Unit setIsAnimateCompletion(Boolean isAnimateCompletion)
Public flag to enable complete animation
-
getOnSlideToActAnimationEventListener
final SlideToActView.OnSlideToActAnimationEventListener getOnSlideToActAnimationEventListener()
Public Slide event listeners
-
setOnSlideToActAnimationEventListener
final Unit setOnSlideToActAnimationEventListener(SlideToActView.OnSlideToActAnimationEventListener onSlideToActAnimationEventListener)
Public Slide event listeners
-
getOnSlideCompleteListener
final SlideToActView.OnSlideCompleteListener getOnSlideCompleteListener()
-
setOnSlideCompleteListener
final Unit setOnSlideCompleteListener(SlideToActView.OnSlideCompleteListener onSlideCompleteListener)
-
getOnSlideResetListener
final SlideToActView.OnSlideResetListener getOnSlideResetListener()
-
setOnSlideResetListener
final Unit setOnSlideResetListener(SlideToActView.OnSlideResetListener onSlideResetListener)
-
getOnSlideUserFailedListener
final SlideToActView.OnSlideUserFailedListener getOnSlideUserFailedListener()
-
setOnSlideUserFailedListener
final Unit setOnSlideUserFailedListener(SlideToActView.OnSlideUserFailedListener onSlideUserFailedListener)
-
performClick
Boolean performClick()
-
onTouchEvent
Boolean onTouchEvent(MotionEvent event)
-
setCompleted
final Unit setCompleted(Boolean completed, Boolean withAnimation)
Method to change slider state
- Parameters:
completed-True for the completed state, False for the base state
withAnimation-True for full slide animation Note: If you provide an animated source file for 'completeIcon' this animation will be run.
-
completeSlider
@Deprecated(message = Use setCompleted(completed: true, withAnimation: true) instead., replaceWith = @ReplaceWith(imports = {}, expression = setCompleted(completed: true, withAnimation: true))) final Unit completeSlider()
-
resetSlider
@Deprecated(message = Use setCompleted(completed: false, withAnimation: true) instead., replaceWith = @ReplaceWith(imports = {}, expression = setCompleted(completed: false, withAnimation: true))) final Unit resetSlider()
-
isCompleted
final Boolean isCompleted()
Method that returns the 'mIsCompleted' flag
-
-
-
-