Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access all Android SDK classes in Rust Library #10

Open
jitender-kumar-dev opened this issue Apr 20, 2023 · 0 comments
Open

Access all Android SDK classes in Rust Library #10

jitender-kumar-dev opened this issue Apr 20, 2023 · 0 comments

Comments

@jitender-kumar-dev
Copy link

I am working on an Android app (Flutter) in which all the UI is handled by Flutter, and all the backend/logical part needs to be handled by the Rust layer. I want to access all the Android SDK classes inside the Rust library e.g UsbManager, UsbDevice, BroadcastReceiver, Intent classes and other classes/services provided by the Android SDK.

Here is a use case -
In order to achieve the USB_DEVICE_ATTACHED event, we have to register it using the BroadcastReceiver, and once the event occurs, we can get the call in onReceive() of our class, which is a subclass of BroadcastReceiver. Since BroadcastReceiver is an Android Component, how can i have this receiver in Rust library?

Thanks in advance...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant