postMessage to preview link item

Kandadai, Shravani 0 Reputation points

I'm using preview item endpoint to generate a temporary link to a drive item which I'm showing on my app in an iframe mounted to a dialog modal. Now, my requirement is to know user interactions on the iframe content (basically JS events link touchmove, scroll etc) So that if there are no such interactions over a period of time, I need to close the dialog modal automatically. May I know if there are any postMessages that I can send to the preview link to detect such interactions?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
2,103 questions
0 comments No comments
{count} votes