Display
open class Display : Disposable, AutoCloseable, DisplayInterface
A typed view of an on-chain 0x2::display::Display<T> object.
Functions
| Name | Summary |
|---|---|
| close | @Synchronized open override fun close() |
| destroy | open override fun destroy() |
| fields | open override fun fields(): Map<String, String> The display template as key/value pairs (e.g. name, link, image_url, description). |
| id | open override fun id(): ObjectId The object's ID. |
| toString | open override fun toString(): String |
| version | open override fun version(): UShort Version, bumped manually by the publisher on each update. |
Companion object functions
| Name | Summary |
|---|---|
| tryFromBcs | fun tryFromBcs(bytes: ByteArray): Display Decode from BCS bytes, without validating the on-chain type tag. |
| tryFromObjectWithType | fun tryFromObjectWithType(object: Object, typeParam: TypeTag): Display Decode from an on-chain object, validating its Move type tag, including that its type parameter equals type_param. |