Skip to main content

KioskExtension

open class KioskExtension : Disposable, AutoCloseable, KioskExtensionInterface

A typed view of a 0x2::kiosk_extension::Extension held in a dynamic field of a Kiosk object.

Functions

NameSummary
close@Synchronized
open override fun close()
destroyopen override fun destroy()
isEnabledopen override fun isEnabled(): Boolean
Whether the extension is currently allowed to call protected actions.
permissionsopen override fun permissions(): String
Bitmap of the permissions granted to the extension, as a decimal string: bit 0 is place, bit 1 is lock (which also grants place).
storageIdopen override fun storageId(): ObjectId
Object ID of the Bag holding the extension's own storage.
toStringopen override fun toString(): String

Companion object functions

NameSummary
tryFromBcsfun tryFromBcs(bytes: ByteArray): KioskExtension
Decode an Extension from raw BCS bytes.