Skip to content

Conversation

@li-manssing
Copy link

@li-manssing li-manssing commented Nov 25, 2025

Summary

Capture screenshot and collect data without starting the feedback flow UI

  • Added captureScreenshotAndCollectData(), a new public API method
    that captures a screenshot and collects data without starting the feedback flow UI.
  • This is for consumers to use their own custom UI with the captured
    data.
  • Added public interface DataCollectionCallback to be implemented by
    consumers to get the Result data.
  • Added new button in the demo application to test the newly added API.
  • Made other required changes accordingly.

Testing Done

Tested locally. Please refer the attached screen-recording and logs:

ShakyNewApiTestButton.webm

18:19:51.069  D  Screenshot URI: file:///data/user/0/com.linkedin.android.shaky.app/files/screenshots/bitmap_1764247790998.jpg
18:19:51.069  D  Collected data: Bundle[{com.linkedin.android.shaky.Result.screenshotUri=file:///data/user/0/com.linkedin.android.shaky.app/files/screenshots/bitmap_1764247790998.jpg, com.linkedin.android.shaky.Result.attachments=[file:///data/user/0/com.linkedin.android.shaky.app/files/screenshots/bitmap_1764247790998.jpg]}]

@li-manssing li-manssing marked this pull request as ready for review November 27, 2025 12:52
@li-manssing li-manssing changed the title Add support to share URI of captured screenshot Capture screenshot and collect data without starting the feedback flow UI Nov 27, 2025
@li-manssing
Copy link
Author

Work is paused on this task hence closing the PR for now. Will re-open the PR once we resume work on it.

@li-manssing li-manssing closed this Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant