MimeTypedResultEx

open class MimeTypedResultEx(mimeData: JsonElement, val id: String? = null, metadataModifiers: List<MetadataModifier> = emptyList()) : DisplayResult

Inheritors

Constructors

Link copied to clipboard
constructor(mimeData: JsonElement, isolatedHtml: Boolean = false, id: String? = null)
constructor(mimeData: JsonElement, id: String? = null, metadataModifiers: List<MetadataModifier> = emptyList())

Properties

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

Functions

Link copied to clipboard
fun addMetadataModifier(metadataModifier: MetadataModifier)
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
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
open override fun toString(): String
Link copied to clipboard