can I retrieve the location of the snap UI buttons?

Options

I've noticed that the Snap buttons move around depending on the screen form-factor.
I have been asked to display a 'tappy hand' animation pointing at the 'switch camera' button for one of our lenses.
In the past I've put these up in the top right corner but that often isn't a very accurate pointer for a specific control.

Is there a way to obtain the screen location of these buttons via an API call?
If there isn't, can you please add one?

Answers

  • rosefromtitani
    Options

    It's not uncommon for buttons to shift around depending on the screen size and form-factor. As for your question, it's definitely possible to obtain the screen location of buttons via an API call. However, whether or not such an API call exists for your specific app will depend on the platform and programming language you're using.
    If there isn't an existing API call, it may be possible to add one, but that would likely require some coding on your part. I'd recommend doing some research on the platform and programming language you're using to see if there are any built-in functions or third-party libraries that can help with this. That's I can say as a newbie.