Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Filters the flavors aTransferable can import (see
nsITransferable::flavorsTransferableCanImport
) and gets the data for the
first flavor. That data is set for aTransferable.
MozPromise The returned promise will resolve when the data is ready or reject if any error occurs.
The transferable
Specifies the clipboard to which this operation applies.
Check if there is data on the clipboard matching each of the flavors in the given list.
MozPromise The returned promise will resolve with the list of matched flavors when the check is completed or reject if any error occurs.
An array of ASCII strings.
Specifies the clipboard to which this operation applies.
This empties the clipboard and notifies the clipboard owner. This empties the "logical" clipboard. It does not clear the native clipboard.
NS_OK if successful.
Specifies the clipboard to which this operation applies.
Filters the flavors aTransferable can import (see
nsITransferable::flavorsTransferableCanImport
) and gets the data for the
first flavor. That data is set for aTransferable.
NS_OK if no errors
The transferable
Specifies the clipboard to which this operation applies.
This provides a way to give correct UI feedback about, for instance, a paste should be allowed. It does NOT actually retreive the data and should be a very inexpensive call. All it does is check if there is data on the clipboard matching any of the flavors in the given list.
NS_OK if successful.
An array of ASCII strings.
Specifies the clipboard to which this operation applies.
Allows clients to determine if the implementation supports the concept of a separate clipboard.
true if the implementaion supports specific clipboard type.
NS_OK if successful.
Specifies the clipboard to which this operation applies.
Given a transferable, set the data on the native clipboard
NS_Ok if no errors
The transferable
The owner of the transferable
Specifies the clipboard to which this operation applies.
Generated using TypeDoc
Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.
Returns
The resulting reference count.