Approach towards calling a RF keyword when page is detected

Hi,

I am currently running android test automation with appium, Robotframework and Python.
Scenario: We have implemented new feature - App Pin. Which would show up after X seconds soon after the app opens. Now I need to adapt this new feature to all my existing test cases.

One way I can think is, Create a custom Robotframework keyword for app pin and use it where ever necessary. One thing I dont like about this approach is that I am hardcoding the keyword according to the timing the App pin page being showed up.

I was wondering if there is any other approach such that if appium itself detects that page, the keyword is called in?

Please let me know. Thank you!

I think you might be better served asking this question on the Robot Framework forum: