Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Native Camera and IO access #390

@genifycom

Description

@genifycom

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.

  1. 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.
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions