Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private locker As PinLockerLP
End Sub
Public Sub Initialize
' B4XPages.GetManager.LogEvents = True
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
locker.Initialize(Root)
locker.MAXPASSLENGHT = 4
Root.LoadLayout("MainPage")
End Sub
Private Sub Button1_Click
locker.createPin
End Sub
Private Sub Button2_Click
If locker.IsPinActive Then
locker.dlgAskPin
End If
End Sub