Add missing GetFileIcon method

This commit is contained in:
rafael-aero
2021-11-20 16:37:38 +01:00
parent 9aad72431c
commit ffedbcc5df

View File

@@ -1307,6 +1307,13 @@ namespace ElectronNET.API
BridgeConnector.Emit("appSetAboutPanelOptions", JObject.FromObject(options, _jsonSerializer));
}
/// <summary>
/// Fetches a path's associated icon.
/// </summary>
/// <param name="type"></param>
/// <returns></returns>
public Task<NativeImage> GetFileIcon(string path) => BridgeConnector.OnResult<NativeImage>("appGetFileIcon", "appGetFileIconCompleted", path);
/// <summary>
/// A <see cref="string"/> which is the user agent string Electron will use as a global fallback.
/// <para/>