[Paid] SlideUnlock - Customizable interface for users to unlock their app or access

🧩 SlideUnlock

An extension for MIT App Inventor 2.
This component allows users to implement a slide-to-unlock feature in their App Inventor projects. It provides a customizable interface for users to unlock their app or access a specific feature by sliding a button from one end to the other. The component includes various properties to personalize the appearance and behavior of the slide-to-unlock mechanism, such as background color, stroke color, slide background color, button color, and more. Additionally, it offers options to enable or disable features like vibration, sound, and button auto-rotation. This component is designed to enhance the user experience and provide an intuitive way to interact with the app.
Telegram | GitHub
BuyMeaCoffee | YouTube
Find More Extension
Terms & Conditions

:memo: Specifications


:package: Package: io.th.slideunlock
:floppy_disk: Size: 22.08 KB
:gear: Version: 1.0
:iphone: Minimum API Level: 21
:date: Updated On: 2025-06-04T18:30:00Z
:computer: Built & documented using: FAST v2.8.4
:books: Library UsedOn SlideUnlockView Thanks zjun615 for this awesome Library.
:arrow_down: Buy Aix Price: 2💲 here
:heavy_dollar_sign: UPI 170Rs.
:placard: Find More Extensions On:BuyMeaCoffeePages
:placard: Get Free Version here
:placard: Find more info On GitHub


Demo

blocks

0fe881cb-af4d-4280-a41a-b75d6b792ebf.gif

2f153c9a-7b1d-4d2e-a311-f71cd5a84ec9.gif

2661ecc6-c88f-4f4f-b1ea-0e8ec0a593e5.gif

0fe881cb-af4d-4280-a41a-b75d6b792ebf

Blocks

SlideEnd_Event
Unlocked_Event
SlideStart_Event
SlideProgress_Event


ClearSlideGradientBackground_Method
ClearGradientBackground_Method
SlideGradientBackground4_Method
SlideGradientBackground3_Method
SlideGradientBackground2_Method
ShowEmoji_Method
ShowDefaultButton_Method
ShowArrow_Method
HideArrow_Method
GradientBackground4_Method
GradientBackground3_Method
GradientBackground2_Method
Create_Method


SlideBackgroundColor_Set_Property
SlideBackgroundColor_Get_Property
HeightPercent_Set_Property
HeightPercent_Get_Property
FixedWidth_Set_Property
FixedWidth_Get_Property
FixedHeight_Set_Property
FixedHeight_Get_Property
EmojiTextSize_Set_Property
EmojiTextSize_Get_Property
EmojiText_Set_Property
EmojiText_Get_Property
EmojiHasBackground_Set_Property
EmojiHasBackground_Get_Property
EmojiBackgroundColor_Set_Property
EmojiBackgroundColor_Get_Property
ButtonSize_Set_Property
ButtonSize_Get_Property
ButtonShape_Set_Property
ButtonShape_Get_Property
ButtonColor_Set_Property
ButtonColor_Get_Property
ButtonAutoRotate_Set_Property
ButtonAutoRotate_Get_Property
BackgroundColor_Set_Property
BackgroundColor_Get_Property
BackAnimationEnabled_Set_Property
BackAnimationEnabled_Get_Property
BackAnimationDuration_Set_Property
BackAnimationDuration_Get_Property
ArrowVisible_Set_Property
ArrowVisible_Get_Property
ArrowSize_Set_Property
ArrowSize_Get_Property
WidthPercent_Set_Property
WidthPercent_Get_Property
VibrationEnabled_Set_Property
VibrationEnabled_Get_Property
TipsColor_Set_Property
TipsColor_Get_Property
Tips_Set_Property
Tips_Get_Property
StrokeColor_Set_Property
StrokeColor_Get_Property
SoundEnabled_Set_Property
SoundEnabled_Get_Property

Events:

SlideUnlock has total 4 events.

Unlocked

Event raised when the user successfully slides to unlock

SlideProgress

Event raised when the slide progress changes

Parameter Type
progress number

SlideStart

Event raised when the user starts sliding

SlideEnd

Event raised when the user ends sliding

Methods:

SlideUnlock has total 11 methods.

Create

Initialize the slide unlock view inside an arrangement

Parameter Type
arrangement component

GradientBackground2

Set gradient background with two colors

Parameter Type
color1 number
color2 number

GradientBackground3

Set gradient background with three colors

Parameter Type
color1 number
color2 number
color3 number

GradientBackground4

Set gradient background with four colors

Parameter Type
color1 number
color2 number
color3 number
color4 number

SlideGradientBackground2

Set slide area gradient with two colors

Parameter Type
color1 number
color2 number

SlideGradientBackground3

Set slide area gradient with three colors

Parameter Type
color1 number
color2 number
color3 number

SlideGradientBackground4

Set slide area gradient with four colors

Parameter Type
color1 number
color2 number
color3 number
color4 number

ClearGradientBackground

Clear gradient background

ClearSlideGradientBackground

Clear slide area gradient background

ShowEmoji

Shows an emoji at the specified position

Parameter Type
emoji text
x number
y number

ShowDefaultButton

Shows the default button shape

Designer:

SlideUnlock has total 4 designer properties.

EmojiText

  • Input type: string
  • Default value: 😀

EmojiTextSize

  • Input type: float
  • Default value: 100.0

EmojiHasBackground

  • Input type: boolean
  • Default value: true

EmojiBackgroundColor

  • Input type: color
  • Default value: &HFFFFFFFF

Setters:

SlideUnlock has total 22 setter properties.

FixedWidth

Set the fixed width in pixels

  • Input type: number

FixedHeight

Set the fixed height in pixels

  • Input type: number

WidthPercent

Set the width as percentage of parent (0-100)

  • Input type: number

HeightPercent

Set the height as percentage of parent (0-100)

  • Input type: number

Tips

Set the text to display on the slide unlock view

  • Input type: text

BackgroundColor

Set the background color

  • Input type: number

StrokeColor

Set the stroke color

  • Input type: number

SlideBackgroundColor

Set the slide background color

  • Input type: number

ButtonColor

Set the button color

  • Input type: number

TipsColor

Set the tips text color

  • Input type: number

BackAnimationEnabled

Enable or disable the back animation

  • Input type: boolean

BackAnimationDuration

Set the back animation duration in milliseconds

  • Input type: number

ButtonAutoRotate

Enable or disable button auto-rotation on slide

  • Input type: boolean

ButtonSize

Set the button size multiplier (0.5 to 2.0)

  • Input type: number

ArrowSize

Set the arrow size multiplier (0.5 to 2.0)

  • Input type: number

ButtonShape

Set the button shape (0: Circle, 1: Square, 2: Rounded Square)

  • Input type: number

VibrationEnabled

Enable or disable vibration feedback

  • Input type: boolean

SoundEnabled

Enable or disable sound feedback

  • Input type: boolean

EmojiText

Sets the emoji character to display

  • Input type: text

EmojiTextSize

Sets the emoji text size

  • Input type: number

EmojiHasBackground

Sets whether the emoji has a background

  • Input type: boolean

EmojiBackgroundColor

Sets the emoji background color

  • Input type: number

Getters:

SlideUnlock has total 22 getter properties.

FixedWidth

Set the fixed width in pixels

  • Return type: number

FixedHeight

Set the fixed height in pixels

  • Return type: number

WidthPercent

Set the width as percentage of parent (0-100)

  • Return type: number

HeightPercent

Set the height as percentage of parent (0-100)

  • Return type: number

Tips

Set the text to display on the slide unlock view

  • Return type: text

BackgroundColor

Set the background color

  • Return type: number

StrokeColor

Set the stroke color

  • Return type: number

SlideBackgroundColor

Set the slide background color

  • Return type: number

ButtonColor

Set the button color

  • Return type: number

TipsColor

Set the tips text color

  • Return type: number

BackAnimationEnabled

Enable or disable the back animation

  • Return type: boolean

BackAnimationDuration

Set the back animation duration in milliseconds

  • Return type: number

ButtonAutoRotate

Enable or disable button auto-rotation on slide

  • Return type: boolean

ButtonSize

Set the button size multiplier (0.5 to 2.0)

  • Return type: number

ArrowSize

Set the arrow size multiplier (0.5 to 2.0)

  • Return type: number

ButtonShape

Set the button shape (0: Circle, 1: Square, 2: Rounded Square)

  • Return type: number

VibrationEnabled

Enable or disable vibration feedback

  • Return type: boolean

SoundEnabled

Enable or disable sound feedback

  • Return type: boolean

EmojiText

Sets the emoji character to display

  • Return type: text

EmojiTextSize

Sets the emoji text size

  • Return type: number

EmojiHasBackground

Sets whether the emoji has a background

  • Return type: boolean

EmojiBackgroundColor

Sets the emoji background color

  • Return type: number

Thank

@TechHamara

Feel free to contact us any quarry or suggestions.

1 Like