Descriptor

abstract fun Descriptor(uuid: Uuid, permissions: List<Permission> = emptyList())

Declares a descriptor with the given UUID.

Sample code:

Descriptor(
uuid = <Some UUID>,
permissions = Permission.READ and Permission.WRITE,
)

Parameters

uuid

The UUID of the descriptor.

permissions

List of permissions of the descriptor.


open fun Descriptor(shortUuid: Int, permissions: List<Permission> = emptyList())
open fun Descriptor(shortUuid: Int, permission: Permission): <Error class: unknown class>

Declares a descriptor with the given 16 or 32 bit short UUID.

See also


open fun Descriptor(uuid: Uuid, permission: Permission): <Error class: unknown class>

Declares a descriptor with the given UUID.

Sample code:

Descriptor(
uuid = <Some UUID>,
permission = Permission.READ,
)

Parameters

uuid

The UUID of the descriptor.

permission

The permission of the descriptor.