CefPostDataElement

Class used to represent a single element in the request post data. The methods of this class may be called on any thread.

Inheritors

Types

Link copied to clipboard
enum Type
Post data elements may represent either bytes or files.

Functions

Link copied to clipboard
Create a new CefPostDataElement object.
Link copied to clipboard
abstract fun dispose()
Removes the native reference from an unused object.
Link copied to clipboard
abstract fun getBytes(size: Int, bytes: Array<Byte>): Int
Read up to size bytes into bytes and return the number of bytes actually read.
Link copied to clipboard
abstract fun getBytesCount(): Int
Return the number of bytes.
Link copied to clipboard
abstract fun getFile(): String
Return the file name.
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
Return the type of this post data element.
Link copied to clipboard
abstract fun isReadOnly(): Boolean
Returns true if this object is read-only.
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
abstract fun setToBytes(size: Int, bytes: Array<Byte>)
The post data element will represent bytes.
Link copied to clipboard
abstract fun setToEmpty()
Remove all contents from the post data element.
Link copied to clipboard
abstract fun setToFile(fileName: String)
The post data element will represent a file.
Link copied to clipboard
open fun toString(): String
open fun toString(mimeType: String): String