Is it possible to capture paste event from ClipboardManager? I am able to get copied data using method onPrimaryClipChanged() of ClipboardManager.OnPrimaryClipChangedListener.
The question is in context to an app which uses Accessibility API.
Is it possible to capture paste event from ClipboardManager? I am able to get copied data using method onPrimaryClipChanged() of ClipboardManager.OnPrimaryClipChangedListener.
The question is in context to an app which uses Accessibility API.
Digging further, I found the Paste event is captured in AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED.
TYPE_VIEW_TEXT_CHANGED, is an event type which can be handled while extending AccessibilityService.
Posting answer, Just in case it help someone else, as i approximately Spent a day to achieve it.