Lines Matching refs:clip
80 * Defines a listener callback that is invoked when the primary clip on the clipboard changes.
91 * clip changes.
113 * Sets the current primary clip on the clipboard. This is the clip that
116 * @param clip The clipped data item to set.
118 public void setPrimaryClip(ClipData clip) {
120 if (clip != null) {
121 clip.prepareToLeaveProcess(true);
123 getService().setPrimaryClip(clip, mContext.getOpPackageName());
130 * Returns the current primary clip on the clipboard.
141 * Returns a description of the current primary clip on the clipboard
153 * Returns true if there is currently a primary clip on the clipboard.
193 * the primary clip and tries to coerce it to a string.
196 ClipData clip = getPrimaryClip();
197 if (clip != null && clip.getItemCount() > 0) {
198 return clip.getItemAt(0).coerceToText(mContext);
206 * primary clip. It has no label or icon.