postMessage to preview link item

Kandadai, Shravani 0 Reputation points
2023-09-15T09:53:43.1133333+00:00

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.
11,789 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.