Clipboard.getAvailableTypes

Returns an array of the data types currently available on the specified clipboard. Use with Transfer.isSupportedType.

<p>The clipboards value is either one of the clipboard constants defined in class <code>DND</code>, or must be built by <em>bitwise OR</em>'ing together (that is, using the <code>int</code> "|" operator) two or more of those <code>DND</code> clipboard constants.</p>

@param clipboards from which to get the data types @return array of data types currently available on the specified clipboard

@exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

@see Transfer#isSupportedType @see DND#CLIPBOARD @see DND#SELECTION_CLIPBOARD

@since 3.1

  1. TransferData[] getAvailableTypes()
  2. TransferData[] getAvailableTypes(int clipboards)
    class Clipboard
    getAvailableTypes

Meta