Skip to content

DevicePickerOptions

Record in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll

What the picker offers besides single devices (event rules: everything; a plain device list: nothing).

public sealed record DevicePickerOptions
bool AllowAll { get; init; }

Offer “All devices”.

bool AllowTags { get; init; }

Offer the tags of the devices (a tag means every device with it, also devices tagged later).

string? EventDeviceText { get; init; }

Offer the device of the event with this text (“The device of the event”, “The same device”); null = not offered.

bool SingleDevice { get; init; }

Exactly one device (“Use configuration from: Device”): checking a device unchecks the one before; Select all and Select none are not offered. Not combined with all devices, tags or the device of the event.

IReadOnlyList<string> TagNames { get; init; }

With DevicePickerOptions.AllowTags: tag names offered even when no device has them yet (e.g. the tag definitions of the server), for devices tagged later. The tags of the devices and of the initial choice are always offered.

static DevicePickerOptions Full(string? eventDeviceText = null, IEnumerable<string>? tagNames = null)

Every option: all devices, tags (plus tagNames) and, with eventDeviceText, the device of the event.