# MimeData QML Type

MimeData type provides interface to access and store data to the Clipboard. More...

Import Statement: | import Lomiri.Components 1.3

- List of all members, including inherited members

## Properties

- color : color
- data : var
- format : list<string>
- html : string
- text : string
- urls : list<url>

## Detailed Description

## Property Documentation

color : color

data : var

Reading the property returns a list of MIME type and data pairs representing the data stored in the object. Users can set custom MIME types which are not covered by the other properties.

When setting the property value can take one of the following types:

- - string - the data will be set as `text/plain` MIME type, or as `text/html` in case HTML tags are detected
- - color - the data will be set as `application/x-color` MIME type
- - list<url> - the data will be set as `text/uri-list`
- - list<string> - the data will be set as `text/uri-list` in case the first element of the list is a valid URL with scheme; otherwise if the list size is even, the list will be set as pairs of (MIME type,data)
- - list<var> - same as list<url> or list<string>

format : list<string>

Returns a list of formats supported by the object. This is a list of MIME types for which the object can return suitable data. The formats in the list are in a priority order.

See also data.

html : string

Contains a string if the data stored in the object is HTML (MIME type text/html); otherwise contains an empty string.

text : string

Contains a plain text (MIME type text/plain) representation of the data.

urls : list<url>

Contains a list of URLs contained within the MIME data object. URLs correspond to the MIME type text/uri-list.