2025-11-22 02:16:10 +01:00
|
|
|
|
using System.Runtime.Versioning;
|
|
|
|
|
|
|
|
|
|
|
|
namespace ElectronNET.API.Entities
|
2020-05-31 03:09:54 +02:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Controls the behavior of <see cref="App.Focus(FocusOptions)"/>.
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// <remarks>Up-to-date with Electron API 39.2</remarks>
|
2020-05-31 03:09:54 +02:00
|
|
|
|
public class FocusOptions
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Make the receiver the active app even if another app is currently active.
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// You should seek to use the steal option as sparingly as possible.
|
2020-05-31 03:09:54 +02:00
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
[SupportedOSPlatform("macOS")]
|
2020-05-31 03:09:54 +02:00
|
|
|
|
public bool Steal { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|