Class MacOSShellComponent
Inheritance
MacOSShellComponent
Assembly: OpenTK.Platform.dll
public class MacOSShellComponent : IShellComponent, IPalComponent
Properties
Declaration
public ILogger? Logger { get; set; }
Property Value
Declaration
public string Name { get; }
Property Value
Declaration
public PalComponents Provides { get; }
Property Value
Methods
Declaration
public void AllowScreenSaver(bool allow, string? disableReason)
Parameters
Type |
Name |
Description |
bool |
allow |
|
string |
disableReason |
|
Declaration
public BatteryStatus GetBatteryInfo(out BatteryInfo batteryInfo)
Parameters
Returns
Declaration
public ThemeInfo GetPreferredTheme()
Returns
Declaration
public SystemMemoryInfo GetSystemMemoryInformation()
Returns
Declaration
public void Initialize(ToolkitOptions options)
Parameters
Declaration
public bool IsScreenSaverAllowed()
Returns
Calls NSLog to log a message to the Apple System Log facility.
This can be useful when running your application as a bundle as stdout and stderr can't be used.
This function is static so that it can be used before Toolkit has been initialized.
Declaration
public static void NSLog(string message)
Parameters
Type |
Name |
Description |
string |
message |
The message to print to the system log.
|
Uninitialize the component. Frees any native resources used by the component.
Declaration
public void Uninitialize()
Implements