Delegate Clipboard.DataGetter
Represents a delegates that responds with clipboad data for a requested mime type
public delegate byte[]? Clipboard.DataGetter(string? mimeType)
Parameters
mimeTypestringThe requested mime type of the clipboard data to retrieve, or
nullwhen the clipboard is cleared
Returns
- byte[]
A byte array containing the retrieved clipboard data for the requested mime type, or an empty array or
nullif no data should be send to the "receiver"
Remarks
Returning an empty array or null will cause no data to be sent to the "receiver".
It is up to the receiver to handle this.
Essentially returning no data is more or less undefined behavior and may cause breakage in receiving applications.
This delegate is invoked with null for its mimeType when the clipboard is cleared or new data is set.
The clipboard is automatically cleared when SDL shuts down.