Class SteelSeriesDeviceProvider
Represents the abstract base implementation for a IRGBDeviceProvider.
Inherited Members
Namespace: RGB.NET.Devices.SteelSeries
Assembly: RGB.NET.Devices.SteelSeries.dll
Syntax
public sealed class SteelSeriesDeviceProvider : AbstractRGBDeviceProvider, IRGBDeviceProvider, IDisposable
Constructors
| Edit this page View SourceSteelSeriesDeviceProvider()
Initializes a new instance of the SteelSeriesDeviceProvider class.
Declaration
public SteelSeriesDeviceProvider()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if this constructor is called even if there is already an instance of this class. |
Properties
| Edit this page View SourceDeviceDefinitions
Gets the HID-definitions for SteelSeries-devices.
Declaration
public static HIDLoader<SteelSeriesLedId, SteelSeriesDeviceType> DeviceDefinitions { get; }
Property Value
Type | Description |
---|---|
HIDLoader<SteelSeriesLedId, SteelSeriesDeviceType> |
Instance
Gets the singleton SteelSeriesDeviceProvider instance.
Declaration
public static SteelSeriesDeviceProvider Instance { get; }
Property Value
Type | Description |
---|---|
SteelSeriesDeviceProvider |
Methods
| Edit this page View SourceCreateUpdateTrigger(int, double)
Creates a update trigger with the specified id and the specified update rate hard limit.
Declaration
protected override IDeviceUpdateTrigger CreateUpdateTrigger(int id, double updateRateHardLimit)
Parameters
Type | Name | Description |
---|---|---|
int | id | The id of the update trigger. |
double | updateRateHardLimit | The update rate hard limit tobe set in the update trigger. |
Returns
Type | Description |
---|---|
IDeviceUpdateTrigger | The newly created update trigger. |
Overrides
| Edit this page View SourceDispose(bool)
Disposes the object and frees all resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
|
Overrides
| Edit this page View SourceGetLoadedDevices(RGBDeviceType)
Loads devices and returns a filtered list of them.
Declaration
protected override IEnumerable<IRGBDevice> GetLoadedDevices(RGBDeviceType loadFilter)
Parameters
Type | Name | Description |
---|---|---|
RGBDeviceType | loadFilter | RGBDeviceType-flags to filter the device with. |
Returns
Type | Description |
---|---|
IEnumerable<IRGBDevice> | The filtered collection of loaded devices. |
Overrides
Remarks
The underlying loading of the devices happens in LoadDevices().
InitializeSDK()
Initializes the underlying SDK.
Declaration
protected override void InitializeSDK()
Overrides
| Edit this page View SourceLoadDevices()
Loads all devices this device provider is capable of loading.
Declaration
protected override IEnumerable<IRGBDevice> LoadDevices()
Returns
Type | Description |
---|---|
IEnumerable<IRGBDevice> | A collection of loaded devices. |
Overrides
Remarks
Filtering happens in GetLoadedDevices(RGBDeviceType).