Table of Contents

Interface ILayoutProvider

Namespace
Artemis.Core.Providers
Assembly
Artemis.Core.dll

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

device ArtemisDevice

The device to apply to.

layout ArtemisLayout

The layout to apply.

GetDeviceLayout(ArtemisDevice)

If available, loads an Artemis layout for the provided device.

ArtemisLayout? GetDeviceLayout(ArtemisDevice device)

Parameters

device ArtemisDevice

The 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

device ArtemisDevice

The device to check.

Returns

bool

A value indicating whether the provided device is configured to use this layout provider.