Class DeviceAdaptionHint
Represents a hint that adapts layers to a certain type of devices
Implements
Namespace: Artemis.Core
Assembly: Artemis.Core.dll
Syntax
public class DeviceAdaptionHint : CorePropertyChanged, IAdaptionHint
Constructors
DeviceAdaptionHint()
Creates a new instance of the DeviceAdaptionHint class
Declaration
public DeviceAdaptionHint()
Properties
Amount
Gets or sets the amount of devices to limit to if LimitAmount is true
Declaration
public int Amount { get; set; }
Property Value
Type | Description |
---|---|
int |
DeviceType
Gets or sets the type of devices LEDs will be applied to
Declaration
public RGBDeviceType DeviceType { get; set; }
Property Value
Type | Description |
---|---|
RGBDeviceType |
LimitAmount
Gets or sets a boolean indicating whether a limited amount of devices should be used
Declaration
public bool LimitAmount { get; set; }
Property Value
Type | Description |
---|---|
bool |
Skip
Gets or sets the amount of devices to skip
Declaration
public int Skip { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
Apply(Layer, List<ArtemisDevice>)
Applies the adaptive action to the provided layer
Declaration
public void Apply(Layer layer, List<ArtemisDevice> devices)
Parameters
Type | Name | Description |
---|---|---|
Layer | layer | The layer to adapt |
List<ArtemisDevice> | devices | The devices to adapt the layer for |
GetEntry()
Returns an adaption hint entry for this adaption hint used for persistent storage
Declaration
public IAdaptionHintEntity GetEntry()
Returns
Type | Description |
---|---|
IAdaptionHintEntity |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |