Skip to content

Method SupportsFeature ​

Namespace: Belay.Core
Assembly: Belay.Core.dll

SupportsFeature(SimpleDeviceFeatureSet) ​

Gets a value indicating whether the device supports a specific feature.

csharp
public bool SupportsFeature(SimpleDeviceFeatureSet feature)

Parameters ​

feature SimpleDeviceFeatureSet

The feature to check for support.

Returns ​

bool

True if the feature is supported; otherwise, false.

Examples ​

if (capabilities.SupportsFeature(SimpleDeviceFeatureSet.GPIO))
{
    // Use GPIO functionality
}

Released under the Apache License 2.0.