putEntryBoolean

@CanIgnoreReturnValue
open fun putEntryBoolean(@NonNull namespace: String, @NonNull name: String, @NonNull accessControlProfileIds: Collection<AccessControlProfileId>, value: Boolean): PersonalizationData.Builder

Adds a new entry to the builder.

This is a convenience method which encodes value as CBOR and adds the resulting bytes using putEntry. The resulting CBOR will be major type 7 (simple value) with additional information 20 (for the value false) or 21 (for the value true).

Return

The builder.

Parameters

namespace

The namespace to use, e.g. org.iso.18013-5.2019.

name

The name of the entry, e.g. height.

accessControlProfileIds

A set of access control profiles to use.

value

The value to add.