Skip to content

How to use Shiny in an Avalonia iOS/Android project? #1581

Answered by aritchie
teklot asked this question in Q&A
Discussion options

You must be logged in to vote

UseShiny only covers the hooks within MAUI. HostBuilder does the equivalent of that stuff in the native module.

Once you have the host, you have access to the same basic service collection that MAUI uses, so:

var host = HostBuilder.Create();

host.Services.AddJob(...);
host.Build().Run();

return base.FinishedLaunching(application, launchOptions);

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@teklot
Comment options

@aritchie
Comment options

Answer selected by teklot
@teklot
Comment options

@HausBJB
Comment options

@aritchie
Comment options

@HausBJB
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants