2023-10-03 16:27:07 +00:00
|
|
|
import "pkg:/source/roku_modules/log/LogMixin.brs"
|
2023-05-03 21:21:04 +00:00
|
|
|
|
|
|
|
sub init()
|
|
|
|
' initialize the log manager. second param sets log output:
|
|
|
|
' 1 error, 2 warn, 3 info, 4 verbose, 5 debug
|
|
|
|
_rLog = log_initializeLogManager(["log_PrintTransport"], 5) 'bs:disable-line
|
|
|
|
end sub
|
2022-05-10 07:05:02 +00:00
|
|
|
' Function called when the screen is displayed by the screen manager
|
|
|
|
' It is expected that screens override this function to handle focus
|
|
|
|
' managmenet and any other actions required on screen shown
|
|
|
|
sub OnScreenShown()
|
|
|
|
if m.top.lastFocus <> invalid
|
|
|
|
m.top.lastFocus.setFocus(true)
|
|
|
|
else
|
|
|
|
m.top.setFocus(true)
|
|
|
|
end if
|
|
|
|
end sub
|
|
|
|
|
|
|
|
' Function called when the screen is hidden by the screen manager
|
2022-05-10 07:25:38 +00:00
|
|
|
' It is expected that screens override this function if required,
|
2022-05-10 07:05:02 +00:00
|
|
|
' to handle focus any actions required on the screen being hidden
|
|
|
|
sub OnScreenHidden()
|
2022-05-30 12:57:40 +00:00
|
|
|
end sub
|
2023-05-03 21:21:04 +00:00
|
|
|
|