diff options
| author | Jun Mukai <mukai@google.com> | 2015-10-30 15:54:33 -0700 |
|---|---|---|
| committer | Jun Mukai <mukai@google.com> | 2015-12-14 19:45:10 -0800 |
| commit | d4eaef7f4c5a5d281de4fff272cd33e892e26264 (patch) | |
| tree | 7141708f5759a078b74932d487dc8fe83c29887f /core/java/android/view/InputDevice.java | |
| parent | 40aa9f1b989a7896fb683a5a7dd664aa3174012d (diff) | |
Make public pointer icon API with custom icons.
BUG: 25778347, 23804184
Change-Id: If138b97c750c912e9848412c27b65004899961eb
Diffstat (limited to 'core/java/android/view/InputDevice.java')
| -rw-r--r-- | core/java/android/view/InputDevice.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/view/InputDevice.java b/core/java/android/view/InputDevice.java index 46b9a4694d9d..88cd7ca71a4e 100644 --- a/core/java/android/view/InputDevice.java +++ b/core/java/android/view/InputDevice.java @@ -784,6 +784,15 @@ public final class InputDevice implements Parcelable { } /** + * Specifies the current custom pointer. + * @param icon the icon data. + * @hide + */ + public void setCustomPointerIcon(PointerIcon icon) { + InputManager.getInstance().setCustomPointerIcon(icon); + } + + /** * Provides information about the range of values for a particular {@link MotionEvent} axis. * * @see InputDevice#getMotionRange(int) |
