Git Product home page Git Product logo

receivecontentsample's Introduction

ReceiveContentSample

sample for unified-content-api(Android 12 +)

日本語版README

about unified-content-api

With 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.
Since Android 12 added the OnReceiveContentListener interface,
This interface allows you to hook events with content inserted in various actions.
link1

use libraries

androidx.core:core-ktx:1.5.0-beta03
androidx.appcompat:appcompat:1.3.0-beta01

Currently, there are the following restrictions to use the backward compatible API of androidx.

  • Valid only for AppCompatEditText. We are considering enabling the content insertion function in other views in the future.
    ref

capture

The following external application was used to check the operation.

  • Google Chrome
  • File Exploler

Pixcel 4 OS 12 preview

Insert using Paste
from long-press menu
Insert using drag and drop (image) Insert using drag and drop (video) insert a keyboard image

receivecontentsample's People

Contributors

leoando avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.