Replies: 1 comment
-
Can you please check this code: https://github.com/zhangguanghuib/NewCommerceSDK/blob/main/POS_Samples/Solutions/SampleExtensions/Pos/Extend/ViewExtensions/Payment/PaymentViewCommandV2.ts ![]() Call this code will get the current view name: let viewName: string = Commerce.ViewModelAdapter.getCurrentViewName(); In case the current view name is not the PaymentView, customer can call HWS API to withdraw money from the cash change machine. Please let me know if you have any other question |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to detect screen transitions and trigger a function when the screen changes. I've already tried using the dispose method, but it takes too long to activate after the screen has transitioned. I would like to trigger the function at the moment of the screen transition or just before it. Does anyone know how to do this?
My specific scenario involves a screen that extends PaymentView.PaymentViewExtensionCommandBase, particularly when it returns to the HomeView. How can I handle this effectively?
Beta Was this translation helpful? Give feedback.
All reactions