Class UsbConfiguration
Definition
- Namespace:
- Tizen.System.Usb
- Assembly:
- Tizen.System.Usb.dll
- API Level:
- 4
A class to manage the USB configuration.
public class UsbConfiguration : IDisposable
- Inheritance
-
UsbConfiguration
- Implements
Properties
View SourceConfigurationString
The configuration string.
Declaration
public string ConfigurationString { get; }
Property Value
Type | Description |
---|---|
String |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
InvalidOperationException | Throws exception if device is disconnected or not opened for operation or busy as its interfaces are currently claimed. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
View SourceInterfaces
A dictionary for mapping the interface IDs to interface instances for a given configuration.
Declaration
public IReadOnlyDictionary<int, UsbInterface> Interfaces { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<Int32, UsbInterface> |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
View SourceIsSelfPowered
Checks if the device is self-powered in a given configuration.
Declaration
public bool IsSelfPowered { get; }
Property Value
Type | Description |
---|---|
Boolean |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
View SourceMaximumPowerRequired
Gets the maximum power required in a given configuration, in mA.
Declaration
public int MaximumPowerRequired { get; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
View SourceSupportRemoteWakeup
Checks if the device in a given configuration supports remote wakeup.
Declaration
public bool SupportRemoteWakeup { get; }
Property Value
Type | Description |
---|---|
Boolean |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Methods
View SourceDispose()
Releases all the resources used by the ConnectionProfile. It should be called after it has finished using the object.
Declaration
public void Dispose()
API Level: 4
View SourceFinalize()
Finalizes an instance of the UsbConfiguration class.
Declaration
protected void Finalize()
API Level: 4
View SourceSetAsActive()
Sets this configuration as an active configuration for the device.
Declaration
public void SetAsActive()
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
InvalidOperationException | Throws an exception if the device is disconnected, or not opened for an operation, or busy as its interfaces are currently claimed. |