IHYCrossPlatformHost
Overview
The IHYCrossPlatformHost is a base interface for a cross platform hosts.
Use Case
There is no need to use this interface on the Delphi side, since its already implemented by the module manager.
On the .NET side, you need to manully define your host object, for example following code identifies Form as a host object:
public partial class Main : Form, IHYCrossPlatformHost
{
public Main()
{
InitializeComponent();
}
}
And after this it can be assigned to a plugin:
moduleManager.Host = this; //every plugin created by a module manager will automatically get this host
//alternatively
var Instance = moduleManager.CreateInstance("MyPlugin");
Instance.Host = this; //assign host to an individual instance of a plugin
Location
- Reference: Hydra.fx
- Namespace: Hydra
- Platforms: Island
-
Ancestry:
- IDispatch | IHYCrossPlatformInterface | IHYCrossPlatformHost Island-Ubuntu
- __struct_IDispatch | IHYCrossPlatformInterface | IHYCrossPlatformHost Island-Windows
- IDispatch | IHYCrossPlatformInterface | IHYCrossPlatformHost Island-Ubuntu