MCPcopy Create free account
hub / github.com/HumbleUI/JWM / registerFormat

Method registerFormat

shared/java/Clipboard.java:83–87  ·  view source on GitHub ↗

Register custom user-defined clipboard format. Registers global system-wide clipboard format, which can be used across different applications. If format with the same string formatId already registered, then returns existing clipboard format instance. If format with provided

(String formatId)

Source from the content-addressed store, hash-verified

81 * @return Clipboard format instance
82 */
83 @NotNull @SneakyThrows
84 public static ClipboardFormat registerFormat(String formatId) {
85 assert _onUIThread() : "Should be run on UI thread";
86 return _registerFormatInternal(formatId, true);
87 }
88
89 @ApiStatus.Internal @NotNull @SneakyThrows
90 public static ClipboardFormat _registerPredefinedFormat(String formatId) {

Callers

nothing calls this directly

Calls 2

_onUIThreadMethod · 0.95

Tested by

no test coverage detected