This repository was archived by the owner on Oct 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 148
Native Camera and IO access #390
Copy link
Copy link
Open
Description
I love the idea of the Blazor Hybrid and am actively trying it out.
The current preview is in two separate projects. A .NET Standard Library project that does all of the display (Xamarin and Blazor) and a Xamarin Forms project that initiates the .NET Standard Library display project.
Currently the "native" piece is in the .NET Standard Library project and this is how the Counter is shared in this one project between both a Forms and a Blazor window.
I have two requirements that I would love to see. These both require native Android elements.
- The ability to take a picture. Of course I can do this in the Android Forms project, but I do not yet see how to trigger this from the .NET Standard Library Application. Then I want to open the resulting picture in the Blazor window.
- The ability to read from System.IO (e.g. barcode scanner). Again this can be done in the Forms project, but how do I get this information from one project to the other? I need to trigger the read and return the result back to the Razor component.
Am I missing a communication piece between the two projects? I do not see a linkage that we can event on or call. e.g. BlazorHybridAndroid.Init(); returns a void.
Thanks for any help.
Metadata
Metadata
Assignees
Labels
No labels