MimeTypedResult

class MimeTypedResult(mimeData: Map<String, String>, isolatedHtml: Boolean = false, val id: String? = null) : MimeTypedResultEx, Map<String, String>

Convenient implementation of DisplayResult, supposed to be used almost always.

Constructors

Link copied to clipboard
constructor(mimeData: Map<String, String>, isolatedHtml: Boolean = false, id: String? = null)

Properties

Link copied to clipboard
open override val entries: Set<Map.Entry<String, String>>
Link copied to clipboard
open override val id: String? = null

Unique id that may be used for updating display data

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val keys: Set<String>
Link copied to clipboard
open override val size: Int
Link copied to clipboard
open override val values: Collection<String>

Functions

Link copied to clipboard
fun addMetadataModifier(metadataModifier: MetadataModifier)
Link copied to clipboard
open override fun containsKey(key: String): Boolean
Link copied to clipboard
open override fun containsValue(value: String): Boolean
Link copied to clipboard
open fun forEach(p0: BiConsumer<in String, in String>)
Link copied to clipboard
open operator override fun get(key: String): String?
Link copied to clipboard
open fun getOrDefault(key: String, defaultValue: String): String
Link copied to clipboard
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun render(notebook: Notebook): DisplayResult

Renders display result, generally should return this

Link copied to clipboard
open fun toJson(additionalMetadata: JsonObject = Json.EMPTY): JsonObject

open override fun toJson(additionalMetadata: JsonObject, overrideId: String?): JsonObject

Converts display data to JSON object for display_data response

Link copied to clipboard
fun DisplayResult?.toJson(): JsonObject

Convenience method for converting nullable DisplayResult to JSON

Link copied to clipboard