mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-16 13:45:07 +00:00
ElectronNET API: Add platform support attributes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using ElectronNET.API.Entities;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Runtime.Versioning;
|
||||
using System.Text.Json;
|
||||
using System.Threading.Tasks;
|
||||
using ElectronNET.API.Serialization;
|
||||
@@ -108,6 +109,7 @@ namespace ElectronNET.API
|
||||
/// macOS: The height of the menu bar in pixels.
|
||||
/// </summary>
|
||||
/// <returns>The height of the menu bar in pixels.</returns>
|
||||
[SupportedOSPlatform("macOS")]
|
||||
public Task<Rectangle> GetMenuBarWorkAreaAsync() => this.InvokeAsync<Rectangle>();
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user