Skip to documentation
LITHIUM
Guide 01Deprecated

Build against the legacy addon runtime.

Set up an addon against the archived pre-1.0 Lithium runtime.

Archived documentation

This page documents the pre-1.0 addon surface. It remains available for projects that have not migrated yet, but new integrations should use v1.

Create an addon

Derive a public sealed class from Addon and decorate it with the package id and display name used by the runtime.

WeatherAddon.cs
using Lithium.Addons;

namespace YourStudio.Weather;

[Addon("yourstudio.weather", "Weather")]
public sealed class WeatherAddon : Addon
{
    protected override void OnAddonLoaded()
    {
        Log.Info("Weather addon loaded");
    }
}
Cette page vous a-t-elle aidé ?

N’indiquez aucune donnée personnelle dans votre commentaire.

0/1000