CefDragData

abstract class CefDragData : CefNativeAdapter

Class used to represent drag data. The methods of this class may be called on any thread.

Types

Link copied to clipboard
Supported drag operation bit flags.

Functions

Link copied to clipboard
abstract fun addFile(path: String, displayName: String)
Add a file that is being dragged into the webview.
Link copied to clipboard
abstract fun clone(): CefDragData
Returns a copy of the current object
Link copied to clipboard
Create a new CefDragData object.
Link copied to clipboard
abstract fun dispose()
Removes the native reference from an unused object.
Link copied to clipboard
abstract fun getFileContents(writer: OutputStream): Int
Write the contents of the file being dragged out of the web view into |writer|.
Link copied to clipboard
abstract fun getFileName(): String
Return the name of the file being dragged out of the browser window.
Link copied to clipboard
abstract fun getFileNames(names: Vector<String>): Boolean
Retrieve the list of file names that are being dragged into the browser window.
Link copied to clipboard
abstract fun getFragmentBaseURL(): String
Return the base URL that the fragment came from.
Link copied to clipboard
abstract fun getFragmentHtml(): String
Return the text/html fragment that is being dragged.
Link copied to clipboard
abstract fun getFragmentText(): String
Return the plain text fragment that is being dragged.
Link copied to clipboard
abstract fun getLinkMetadata(): String
Return the metadata, if any, associated with the link being dragged.
Link copied to clipboard
abstract fun getLinkTitle(): String
Return the title associated with the link being dragged.
Link copied to clipboard
abstract fun getLinkURL(): String
Return the link URL that is being dragged.
Link copied to clipboard
open fun getNativeRef(): Long

open fun getNativeRef(identifer: String): Long
Method is called by the native code to get the reference to an previous stored identifier.
Link copied to clipboard
abstract fun isFile(): Boolean
Returns true if the drag data is a file.
Link copied to clipboard
abstract fun isFragment(): Boolean
Returns true if the drag data is a text or html fragment.
Link copied to clipboard
abstract fun isLink(): Boolean
Returns true if the drag data is a link.
Link copied to clipboard
abstract fun isReadOnly(): Boolean
Test if the object is set to read-only.
Link copied to clipboard
abstract fun resetFileContents()
Reset the file contents.
Link copied to clipboard
abstract fun setFragmentBaseURL(baseUrl: String)
Set the base URL that the fragment came from.
Link copied to clipboard
abstract fun setFragmentHtml(html: String)
Set the text/html fragment that is being dragged.
Link copied to clipboard
abstract fun setFragmentText(text: String)
Set the plain text fragment that is being dragged.
Link copied to clipboard
abstract fun setLinkMetadata(data: String)
Set the metadata associated with the link being dragged.
Link copied to clipboard
abstract fun setLinkTitle(title: String)
Set the title associated with the link being dragged.
Link copied to clipboard
abstract fun setLinkURL(url: String)
Set the link URL that is being dragged.
Link copied to clipboard
open fun setNativeRef(identifer: String, nativeRef: Long)
Method is called by the native code to store a reference to an implemented native JNI counterpart.
Link copied to clipboard
open fun toString(): String