Write a short description
A pattern lock view to make pattern lock pass .
Add a picture of all the blocks
Instructions to use your extension
No instructions . just check the docs, demo blocks, demo aia and demo apk.
Docs
Docs for: PatternLock
Events
PatternDrawingStarted
Triggers when user starts drawing pattern.
PatternProgressed
Triggers when user has changed the pattern while drawing.
patternInString | text
PatternCompleted
Triggers when user completes the pattern. Use the patternInString to save this pattern and compare in future use.
patternInString | text
PatternCleared
Triggers when the pattern is cleared successfully.
Methods
SetupPatternLockView
Returns the sum of the given list of integers.
arrangement | component
Properties
PathEndAnimationDuration
Get the property set for path end animation duration.
Property Type : read-write
Accepts : number
TactileFeedbackEnabled
Get the property set for tactile feedback enabled.
Property Type : read-write
Accepts : boolean
DotAnimationDuration
Get the property set for dot animation duration.
Property Type : read-write
Accepts : number
DotSelectedSize
Get the property set for dot selected size.
Property Type : read-write
Accepts : number
WrongStateColor
Get the property set for wrong state color.
Property Type : read-write
Accepts : number
InputEnabled
Get the property set for input enabled.
Property Type : read-write
Accepts : boolean
PATTERN_VIEW_MODE_CORRECT
This state represents a correctly drawn pattern by the user. The color of the path and the dots both would be changed to this color.
Property Type : read-only
Accepts : number
PatternViewMode
Get the property set for pattern view mode.
Property Type : read-write
Accepts : number
StealthMode
Get the property set for stealth mode.
Property Type : read-write
Accepts : boolean
PATTERN_VIEW_MODE_WRONG
This state represents a wrongly drawn pattern by the user. The color of the path and the dots both would be changed to this color.
Property Type : read-only
Accepts : number
NormalStateColor
Get the property set for normal state color.
Property Type : read-write
Accepts : number
PathWidth
Get the property set for path width.
Property Type : read-write
Accepts : number
CorrectStateColor
Get the property set for correct state color.
Property Type : read-write
Accepts : number
DotCount
Get the property set for dot count.
Property Type : read-write
Accepts : number
PATTERN_VIEW_MODE_DEMO
Automatically draw the pattern for demo or tutorial purposes.
Property Type : read-only
Accepts : number
DotNormalSize
Get the property set for dot normal size.
Property Type : read-write
Accepts : number
Docs for: PatternLock
Events
PatternDrawingStarted
Triggers when user starts drawing pattern.
PatternProgressed
Triggers when user has changed the pattern while drawing.
patternInString | text
PatternCompleted
Triggers when user completes the pattern. Use the patternInString to save this pattern and compare in future use.
patternInString | text
PatternCleared
Triggers when the pattern is cleared successfully.
Methods
SetupPatternLockView
Returns the sum of the given list of integers.
arrangement | component
ClearPattern
Clears the current pattern that is set in patter lock view.
Properties
PathEndAnimationDuration
Change the duration of the path end animaiton
Property Type : read-write
Accepts : number
TactileFeedbackEnabled
Enables vibration feedback when the pattern is drawn.
Property Type : read-write
Accepts : boolean
DotAnimationDuration
Change the duration of the animating dots.
Property Type : read-write
Accepts : number
DotSelectedSize
Change the size of the dots in selected state.
Property Type : read-write
Accepts : number
WrongStateColor
Set the color of the pattern view in wrong state.
Property Type : read-write
Accepts : number
InputEnabled
Disables any input from the pattern lock view completely.
Property Type : read-write
Accepts : boolean
PATTERN_VIEW_MODE_CORRECT
This state represents a correctly drawn pattern by the user. The color of the path and the dots both would be changed to this color.
Property Type : read-only
Accepts : number
PatternViewMode
Set the current view mode.
Property Type : read-write
Accepts : number
StealthMode
Set the pattern in stealth mode (pattern drawing is hidden).
Property Type : read-write
Accepts : boolean
PATTERN_VIEW_MODE_WRONG
This state represents a wrongly drawn pattern by the user. The color of the path and the dots both would be changed to this color.
Property Type : read-only
Accepts : number
NormalStateColor
Set the color of the pattern view in normal state.
Property Type : read-write
Accepts : number
PathWidth
Change the width of the path.
Property Type : read-write
Accepts : number
CorrectStateColor
Set the color of the pattern view in correct state.
Property Type : read-write
Accepts : number
DotCount
Change the no.of dots in a row (or column).
Property Type : read-write
Accepts : number
PATTERN_VIEW_MODE_DEMO
Automatically draw the pattern for demo or tutorial purposes.
Property Type : read-only
Accepts : number
DotNormalSize
Get the property set for dot normal size.
Property Type : read-write
Accepts : number
Demo Blocks
Screen - Screen1 -
Screen - check -
Screen - save -
Aia - patternlock.aia (30.1 KB)
Apk - Download Apk
Demo Video
Download link
com.aktech.patternlock.aix (25.0 KB)
Credits
This extension is based on the pattern lock view library by Aritra Roy