Class ColoreProvider
Provides helper methods to instantiate a new IChroma instance.
Namespace: Colore
Assembly: Colore.dll
Syntax
public static class ColoreProvider : Object
Methods
CreateAsync(AppInfo, IChromaApi)
Creates a new IChroma instance using the specified API instance.
Declaration
public static Task<IChroma> CreateAsync(AppInfo info, IChromaApi api)
Parameters
| Type | Name | Description |
|---|---|---|
| AppInfo | info | Information about the application. |
| IChromaApi | api | The API instance to use to route SDK calls. |
Returns
| Type | Description |
|---|---|
| Task<IChroma> | A new instance of IChroma. |
CreateNativeAsync()
Creates a new IChroma instance using the native Razer Chroma SDK.
Declaration
public static Task<IChroma> CreateNativeAsync()
Returns
| Type | Description |
|---|---|
| Task<IChroma> | A new instance of IChroma. |
CreateRestAsync(AppInfo, Boolean)
Creates a new IChroma instance using the Chroma REST API.
Declaration
public static Task<IChroma> CreateRestAsync(AppInfo info, bool ssl)
Parameters
| Type | Name | Description |
|---|---|---|
| AppInfo | info | Information about the application. |
| Boolean | ssl | Whether to use the HTTPS endpoint for SDK communication. |
Returns
| Type | Description |
|---|---|
| Task<IChroma> | A new instance of IChroma. |
CreateRestAsync(AppInfo, String)
Creates a new IChroma instance using the Chroma REST API.
Declaration
public static Task<IChroma> CreateRestAsync(AppInfo info, string endpoint = "http://localhost:54235")
Parameters
| Type | Name | Description |
|---|---|---|
| AppInfo | info | Information about the application. |
| String | endpoint | The endpoint to use for initializing the Chroma SDK. |
Returns
| Type | Description |
|---|---|
| Task<IChroma> | A new instance of IChroma. |
CreateRestAsync(AppInfo, Uri)
Creates a new IChroma instance using the Chroma REST API.
Declaration
public static Task<IChroma> CreateRestAsync(AppInfo info, Uri endpoint)
Parameters
| Type | Name | Description |
|---|---|---|
| AppInfo | info | Information about the application. |
| Uri | endpoint | The endpoint to use for initializing the Chroma SDK. |
Returns
| Type | Description |
|---|---|
| Task<IChroma> | A new instance of IChroma. |