Table of Contents

Delegate Clipboard.DataGetter

Namespace
Sdl3Sharp.Video.Windowing
Assembly
Sdl3Sharp.dll

Represents a delegates that responds with clipboad data for a requested mime type

public delegate byte[]? Clipboard.DataGetter(string? mimeType)

Parameters

mimeType string

The requested mime type of the clipboard data to retrieve, or null when the clipboard is cleared

Returns

byte[]

A byte array containing the retrieved clipboard data for the requested mime type, or an empty array or null if 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.