Skip to main content

Class App<D>

Provides a base implementation for the Meadow App. Use this class for Meadow applications to get strongly-typed access to the current device information.

Assembly: Meadow.dll
View Source
Declaration
public abstract class App<D> : AppBase, IApp where D : class, IMeadowDevice

Inheritance: System.Object -> Meadow.AppBase

Implements:
Meadow.IApp

Properties

Device

The root Device interface

View Source
Declaration
public static D Device { get; protected set; }

Methods

InvokeOnMainThread(Action<object?>, object?)

Invokes an action in the context of the applications main thread

View Source
Declaration
public override void InvokeOnMainThread(Action<object?> action, object? state = null)
Parameters
TypeNameDescription
System.Action<System.Object>actionThe action to call
System.ObjectstateAn optional state object to pass to the Action

Implements