Relating to topic https://www.b4x.com/android/forum/conversations/swiping-library.21173/
Here is my code so far
I cannot see that the events are triggered. Am I using "swipe" correctly in pg.Initialize?
Here is my code so far
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Main")
Dim pg As SwipeController
pg.Initialize("swipe", 30, True, True, "UNIMAG")
Label1.Text = "Initialized"
Label2.Text = ""
End Sub
Sub swipe_onDeviceConnected(Device As String)
Label1.Text = Device
Label2.Text = "OnDeviceConnected"
End Sub
Sub swipe_onSwipedCard(card As String, device As String)
Label1.Text = card
Label2.Text = "OnSwipedCard"
End Sub
I cannot see that the events are triggered. Am I using "swipe" correctly in pg.Initialize?
Last edited: