Search Results for

    Show / Hide Table of Contents

    Interface IGenericDevice

    Interface for generic devices.

    Inherited Members
    IDevice.ClearAsync()
    IDevice.SetAllAsync(Color)
    IDevice.SetEffectAsync(Guid)
    IDevice.CurrentEffectId
    Namespace: Colore
    Assembly: Colore.dll
    Syntax
    public interface IGenericDevice : IDevice

    Properties

    DeviceId

    Gets the Guid of this device.

    Declaration
    Guid DeviceId { get; }
    Property Value
    Type Description
    Guid

    Methods

    SetEffectAsync(EffectType)

    Sets a parameter-less effect on this device.

    Declaration
    Task<Guid> SetEffectAsync(EffectType effectType)
    Parameters
    Type Name Description
    EffectType effectType

    Effect to set.

    Returns
    Type Description
    Task<Guid>

    A Guid for the effect that was set.

    SetEffectAsync<T>(EffectType, T)

    Sets an effect on this device, taking a parameter.

    Declaration
    Task<Guid> SetEffectAsync<T>(EffectType effectType, T data)
        where T : struct, ValueType
    Parameters
    Type Name Description
    EffectType effectType

    Effect to set.

    T data

    Effect-specific parameter to use.

    Returns
    Type Description
    Task<Guid>

    A Guid for the effect that was set.

    Type Parameters
    Name Description
    T

    The type of effect data to set.

    In This Article
    Back to top Copyright © 2015-2022 by Adam Hellberg and Brandon Scott
    Generated by DocFX