II2cProvider II2cProvider II2cProvider II2cProvider Interface

Definition

Represents actions common to all I2 C providers.

public : interface II2cProviderpublic interface II2cProviderPublic Interface II2cProvider// You can use this interface in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows IoT Extension SDK (introduced v10.0.10586.0) Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced v2)

Methods

GetControllersAsync() GetControllersAsync() GetControllersAsync() GetControllersAsync()

Gets all the I2 C controllers that are on the system.

public : IAsyncOperation<IVectorView<II2cControllerProvider>> GetControllersAsync()public IAsyncOperation<IReadOnlyList<II2cControllerProvider>> GetControllersAsync()Public Function GetControllersAsync() As IAsyncOperation( Of IReadOnlyListII2cControllerProvider )// You can use this method in JavaScript.
Returns
IAsyncOperation<IVectorView<II2cControllerProvider>> IAsyncOperation<IReadOnlyList<II2cControllerProvider>> IAsyncOperation<IReadOnlyList<II2cControllerProvider>> IAsyncOperation<IReadOnlyList<II2cControllerProvider>>

When the method completes successfully, it returns a list of values that represent the available I2 C controllers on the system.