Package org.freedesktop.wayland.server
Interface WlDataSourceRequests
- All Known Subinterfaces:
WlDataSourceRequestsV2
,WlDataSourceRequestsV3
public interface WlDataSourceRequests
offer to transfer data
The wl_data_source object is the source side of a wl_data_offer. It is created by the source client in a data transfer and provides a way to describe the offered data and a way to respond to requests to transfer the data.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy
(WlDataSourceResource requester) destroy the data sourcevoid
offer
(WlDataSourceResource requester, String mimeType) add an offered mime type
-
Field Details
-
VERSION
static final int VERSION- See Also:
-
-
Method Details
-
offer
add an offered mime typeThis request adds a mime type to the set of mime types advertised to targets. Can be called several times to offer multiple types.
- Parameters:
requester
- The protocol object that made the request.mimeType
- mime type offered by the data source
-
destroy
destroy the data sourceDestroy the data source.
- Parameters:
requester
- The protocol object that made the request.
-