Interface ILayoutProvider
Represents a class that can provide Artemis layouts for devices.
public interface ILayoutProvider
Methods
ApplyLayout(ArtemisDevice, ArtemisLayout)
Applies the layout to the provided device.
void ApplyLayout(ArtemisDevice device, ArtemisLayout layout)
Parameters
deviceArtemisDeviceThe device to apply to.
layoutArtemisLayoutThe layout to apply.
GetDeviceLayout(ArtemisDevice)
If available, loads an Artemis layout for the provided device.
ArtemisLayout? GetDeviceLayout(ArtemisDevice device)
Parameters
deviceArtemisDeviceThe device to load the layout for.
Returns
- ArtemisLayout
The resulting layout if one was available; otherwise null.
IsMatch(ArtemisDevice)
Determines whether the provided device is configured to use this layout provider.
bool IsMatch(ArtemisDevice device)
Parameters
deviceArtemisDeviceThe device to check.
Returns
- bool
A value indicating whether the provided device is configured to use this layout provider.