Lines Matching refs:clip
82 * Defines a listener callback that is invoked when the primary clip on the clipboard changes.
93 * clip changes.
115 * Sets the current primary clip on the clipboard. This is the clip that
118 * @param clip The clipped data item to set.
120 public void setPrimaryClip(ClipData clip) {
122 if (clip != null) {
123 clip.prepareToLeaveProcess();
125 getService().setPrimaryClip(clip, mContext.getBasePackageName());
131 * Returns the current primary clip on the clipboard.
142 * Returns a description of the current primary clip on the clipboard
154 * Returns true if there is currently a primary clip on the clipboard.
192 * the primary clip and tries to coerce it to a string.
195 ClipData clip = getPrimaryClip();
196 if (clip != null && clip.getItemCount() > 0) {
197 return clip.getItemAt(0).coerceToText(mContext);
205 * primary clip. It has no label or icon.