{"id":21493617,"url":"https://github.com/alienkevin/capture_screenshot","last_synced_at":"2025-03-17T11:41:57.092Z","repository":{"id":240142379,"uuid":"733668972","full_name":"AlienKevin/capture_screenshot","owner":"AlienKevin","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-19T22:10:43.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T21:25:10.610Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlienKevin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-19T21:18:40.000Z","updated_at":"2023-12-19T21:47:11.000Z","dependencies_parsed_at":"2024-05-17T00:31:27.362Z","dependency_job_id":"76fcb3d4-fd89-4deb-bbe5-c4378e51e9f5","html_url":"https://github.com/AlienKevin/capture_screenshot","commit_stats":null,"previous_names":["alienkevin/capture_screenshot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Fcapture_screenshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Fcapture_screenshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Fcapture_screenshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Fcapture_screenshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlienKevin","download_url":"https://codeload.github.com/AlienKevin/capture_screenshot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244029522,"owners_count":20386425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-23T15:43:41.890Z","updated_at":"2025-03-17T11:41:57.069Z","avatar_url":"https://github.com/AlienKevin.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# capture_screenshot\n\nA Flutter plugin for capturing full screenshots on Android.\n\niOS is not supported because it is not possible to capture full screenshots on iOS.\n\n# Usage\n\nSee the example app under `example/` for a complete demo.\n\n```dart\ntry {\n  // Adjust the delayInMilliseconds to suit your needs\n  final imageBytes = await _captureScreenshotPlugin.captureScreenshot(\n      delayInMilliseconds: 200);\n  // imageBytes will be null if fails to take a screenshot\n  // On success, imageBytes will contain the bytes of the screenshot image in PNG format\n  if (imageBytes != null) {\n    screenshot = Image.memory(imageBytes);\n    print(\"Successfully taken a screenshot!\");\n  } else {\n    print(\"Failed to take a screenshot!\");\n  }\n} on PlatformException catch (e) {\n  print(\"Failed to take a screenshot!\");\n  print(e);\n  screenshot = null;\n}\n```\n\n# Caveats\nOn Android 14 (API level 34), the user will be prompted to give consent before each taking screenshot.\n\nSee the following links for more information:\n* https://developer.android.com/about/versions/14/behavior-changes-14#media-projection-consent\n* https://stackoverflow.com/questions/76804553/reusing-media-projection-intent-on-android-14\n\n# Inspiration\n* media_projection_screenshot plugin by liasica: https://pub.dev/packages/media_projection_screenshot\n\n# License\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falienkevin%2Fcapture_screenshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falienkevin%2Fcapture_screenshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falienkevin%2Fcapture_screenshot/lists"}