-
Notifications
You must be signed in to change notification settings - Fork 0
Welcome Screen
The WelcomeScreen is quite a simple screen. The screen displays the name of the owner of the NFC card (as stored in the database) and has a 'Koop' and 'Stop' button. The 'Koop' button will lead the user to the ProductScreen and the 'Stop button' will lead the user back to the 'DefaultScreen'. The user can also view the current version of Stella Pay by pressing the button in the bottom right corner.
Very simple. The screenmanager opens this screen upon succesfully matching the NFC card to an owner and displays this owner name. The Screenmanager will forward the user to the ProductScreen when 'Koop' is pressed and will return the user to the DefaultScreen when 'Stop' is pressed.
def init(self, kwargs)
The constructor of the class sets the timeout time and create the button on the right bottom of the screen. This button will show information about Stella Pay, such as its current version.
def on_enter(self, args)
The override-method on_enter will start the time_out sequence once the screen has been entered
def on_timeout(self, dt)
The on_timeout function will force a call to 'cancel' when the timer went off
def on_touch_up(self, touch)
The on_touch_up function will reset the timer sequence when the screen has been touched by the user. The timeout time will be reset here.
def on_cancel(self)
The on_cancel function is triggered by pressing the 'Stop' button or when a timeout occurred. This will return the user to the DefaultScreen.
def on_buy(self)
The on_buy function is triggered by pressing the 'Koop' button and will forward the user to the ProductScreen page.
tap_target_start(self)
The information overlay is opened when this function is called; this will display the current version of Stella Pay and mroe.
None