###### (This is the documentation for SDL3, which is the current stable version. [SDL2](https://wiki.libsdl.org/SDL2/) was the previous version!) # SDL_HasClipboardData Query whether there is data in the clipboard for the provided mime type. ## Header File Defined in [](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_clipboard.h) ## Syntax ```c bool SDL_HasClipboardData(const char *mime_type); ``` ## Function Parameters | | | | | ------------ | ------------- | ------------------------------------ | | const char * | **mime_type** | the mime type to check for data for. | ## Return Value (bool) Returns true if there exists data in clipboard for the provided mime type, false if it does not. ## Thread Safety This function should only be called on the main thread. ## Version This function is available since SDL 3.1.3. ## See Also - [SDL_SetClipboardData](SDL_SetClipboardData) - [SDL_GetClipboardData](SDL_GetClipboardData) ---- [CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryClipboard](CategoryClipboard)