Method PostButtonConfig
PostButtonConfig(String, String)
Uploads a button config JSON to the device's themes directory. The device saves it as {resourcesPath}/themes/{fileName}.json and refreshes the available theme profiles list.
Declaration
public TryOptionAsync<HttpResponseMessage> PostButtonConfig(string fileName, string fileContentJson)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | fileName | Target filename (without extension). |
| System.String | fileContentJson | The button config JSON object as a string. |
Returns
| Type | Description |
|---|---|
| LanguageExt.TryOptionAsync<System.Net.Http.HttpResponseMessage> |