Interface ClipboardShareDestination

All Known Implementing Classes:
BuiltInClipboardShareDestinations

public interface ClipboardShareDestination
  • Method Details

    • getName

      String getName()
      Gets the name of this share destination.
      Returns:
      The name
    • getAliases

      Set<String> getAliases()
      Get a set of aliases.
      Returns:
      a set of aliases
    • share

      Consumer<Actor> share(ClipboardShareMetadata metadata, ShareOutputProvider serializer) throws Exception
      Share a clipboard output stream and return a URL.

      The serialized schematic can be retrieved by providing an OutputStream to serializer.

      Parameters:
      metadata - The clipboard metadata
      serializer - A function taking the OutputStream
      Returns:
      A consumer to provide the actor with the share results
      Throws:
      Exception - if it failed to share
    • getDefaultFormat

      ClipboardFormat getDefaultFormat()
      Gets the default clipboard format for this share destination.
      Returns:
      The default format
    • supportsFormat

      boolean supportsFormat(ClipboardFormat format)
      Gets whether the share destination supports the given format.
      Parameters:
      format - The format
      Returns:
      If it's supported