liaohuqiu / android-ClipboardManagerCompat

ClipboardManager to API level 1.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compatibility for ClipboardManager, from API level 1.

Related post: 再谈 Android API 兼容性处理

ABOUT ME / 关注我: Github | twitter | 微博

Interface

public interface ClipboardManagerCompat {

    void addPrimaryClipChangedListener(OnPrimaryClipChangedListener listener);

    void removePrimaryClipChangedListener(OnPrimaryClipChangedListener listener);

    CharSequence getText();

    void setText(CharSequence text);

    boolean hasText();
}
  • Screen snapshot

Import

Repositories:

allprojects {
    repositories {
        mavenCentral()
        maven {
            url "https://oss.sonatype.org/content/repositories/snapshots"
        }
        jcenter()
    }
}

Add to dependencies:

compile 'in.srain.cube:clipboard-manager-compat:1.0.3'

LICENSE

MIT

About

ClipboardManager to API level 1.

License:MIT License


Languages

Language:Java 92.1%Language:Python 7.4%Language:Shell 0.5%