Home | History | Annotate | Download | only in content

Lines Matching refs:clip

73      * Defines a listener callback that is invoked when the primary clip on the clipboard changes.
84 * clip changes.
97 * Sets the current primary clip on the clipboard. This is the clip that
100 * @param clip The clipped data item to set.
102 public void setPrimaryClip(ClipData clip) {
104 if (clip != null) {
105 clip.prepareToLeaveProcess(true);
107 mService.setPrimaryClip(clip, mContext.getOpPackageName());
114 * Returns the current primary clip on the clipboard.
125 * Returns a description of the current primary clip on the clipboard
137 * Returns true if there is currently a primary clip on the clipboard.
177 * the primary clip and tries to coerce it to a string.
181 ClipData clip = getPrimaryClip();
182 if (clip != null && clip.getItemCount() > 0) {
183 return clip.getItemAt(0).coerceToText(mContext);
191 * primary clip. It has no label or icon.