withCollections

inline fun <T> Wallet.withCollections(block: (CredentialCollections) -> T): T?

Extension function for type-safe access to the CredentialCollections capability.

Example:

wallet.withCollections { it.createCollection("My Collection") }