IClipboardManager
IAppPolicy
1
/**
2
* Clipboard manager interface.
3
*/
4
public interface IClipboardManager {
5
6
/**
7
* Sets the current primary clip on the clipboard. This is the clip that
8
* is involved in normal cut and paste operations.
9
*
10
* @param clip The clipped data item to set.
11
*/
12
void setPrimaryClip(ClipData clip);
13
14
/**
15
* Returns the current primary clip on the clipboard.
16
*/
17
ClipData getPrimaryClip();
18
19
/**
20
* Returns a description of the current primary clip on the clipboard
21
* but not a copy of its data.
22
*/
23
ClipDescription getPrimaryClipDescription();
24
25
/**
26
* Returns true if there is currently a primary clip on the clipboard.
27
*/
28
boolean hasPrimaryClip();
29
}
Copied!
Copy link