{"id":19625929,"url":"https://github.com/leoando/receivecontentsample","last_synced_at":"2026-04-18T03:32:56.943Z","repository":{"id":102996721,"uuid":"368162097","full_name":"LeoAndo/ReceiveContentSample","owner":"LeoAndo","description":"sample for unified-content-api(Android 12 +)","archived":false,"fork":false,"pushed_at":"2021-08-05T07:27:29.000Z","size":150,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T07:03:29.924Z","etag":null,"topics":["android","android12","android12-support"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeoAndo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-05-17T11:33:09.000Z","updated_at":"2022-02-20T18:39:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb41f039-e7ed-4e6f-be34-94bab351a165","html_url":"https://github.com/LeoAndo/ReceiveContentSample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LeoAndo/ReceiveContentSample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoAndo%2FReceiveContentSample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoAndo%2FReceiveContentSample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoAndo%2FReceiveContentSample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoAndo%2FReceiveContentSample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeoAndo","download_url":"https://codeload.github.com/LeoAndo/ReceiveContentSample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoAndo%2FReceiveContentSample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31955737,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","android12","android12-support"],"created_at":"2024-11-11T11:44:07.166Z","updated_at":"2026-04-18T03:32:56.926Z","avatar_url":"https://github.com/LeoAndo.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReceiveContentSample\nsample for unified-content-api(Android 12 +)\n\n[日本語版README](https://github.com/LeoAndo/ReceiveContentSample/blob/main/readme/README_JP.md)\n\n# about unified-content-api\nWith the existing API, the API to call for each action such as \"clipboard, keyboard, drag and drop\" to insert content into the app was different.\u003cbr\u003e\nSince Android 12 added the [OnReceiveContentListener](https://developer.android.com/reference/android/view/OnReceiveContentListener) interface, \u003cbr\u003e\nThis interface allows you to hook events with content inserted in various actions.\u003cbr\u003e\n[link1](https://developer.android.com/about/versions/12/features/unified-content-api#overview)\n\n# use libraries\n[androidx.core:core-ktx:1.5.0-beta03](https://developer.android.com/jetpack/androidx/releases/core#1.5.0-beta03)\u003cbr\u003e\n[androidx.appcompat:appcompat:1.3.0-beta01](https://developer.android.com/jetpack/androidx/releases/appcompat#1.3.0-beta01)\u003cbr\u003e\n\nCurrently, there are the following restrictions to use the backward compatible API of androidx.\u003cbr\u003e\n- Valid only for `AppCompatEditText`. We are considering enabling the content insertion function in other views in the future. \u003cbr\u003e\n[ref](https://youtu.be/D2cU_itNDAI?t=1602)\n\n# capture\n\nThe following external application was used to check the operation.\n- Google Chrome\n- File Exploler\n\n## Pixcel 4 OS 12 preview\n\n| Insert using Paste\u003cbr\u003e from long-press menu | Insert using drag and drop (image) | Insert using drag and drop (video) | insert a keyboard image |\n----|---- |----|----\n| \u003cimg src=\"https://user-images.githubusercontent.com/16476224/118488454-b663db00-b756-11eb-8774-5b4383a3872e.gif\" width=320 /\u003e | \u003cimg src=\"https://user-images.githubusercontent.com/16476224/118488449-b532ae00-b756-11eb-863b-fec4e3956f4a.gif\" width=320 /\u003e | \u003cimg src=\"https://user-images.githubusercontent.com/16476224/118488425-aea43680-b756-11eb-84cf-73fed8f544a4.gif\" width=320 /\u003e  | \u003cimg src=\"https://user-images.githubusercontent.com/16476224/118485561-91219d80-b753-11eb-852e-9ede2e512827.gif\" width=320 /\u003e |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoando%2Freceivecontentsample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoando%2Freceivecontentsample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoando%2Freceivecontentsample/lists"}