Features

data class Features(activated: Map<Feature, FeatureSupport>, unknown: Set<UnknownFeature>)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

areSupported
Link copied to clipboard
common
fun areSupported(remoteFeatures: Features): Boolean

NB: this method is not reflexive, see [Features.areCompatible] if you want symmetric validation.

hasFeature
Link copied to clipboard
common
fun hasFeature(feature: Feature, support: FeatureSupport? = null): Boolean
initFeatures
Link copied to clipboard
common
fun initFeatures(): Features
invoiceFeatures
Link copied to clipboard
common
fun invoiceFeatures(): Features
nodeAnnouncementFeatures
Link copied to clipboard
common
fun nodeAnnouncementFeatures(): Features
toByteArray
Link copied to clipboard
common
fun toByteArray(): ByteArray

Properties

activated
Link copied to clipboard
common
val activated: Map<Feature, FeatureSupport>
unknown
Link copied to clipboard
common
val unknown: Set<UnknownFeature>