Quantcast
Channel: Commenti a: Xamarin Android and DataWedge scanning process
Viewing all articles
Browse latest Browse all 6

Di: acaliaro

$
0
0

In risposta a Mick.

You should use

https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/dependency-service/introduction

So, in the Appearing page event (or a “refresh button”, as you like) you should use an instruction like

DependencyService.Get().GetProfiles();

This “GetProfiles” method execute the intent in the Android project.

In the Android project you have a broadcast that receive the list of datawedge profiles. Received the list, you can send it to the XF page via MessagingCenter.

In this sample https://github.com/acaliaro/XamarinDemoNfc you can find a Dependency Service sample (for NCF, but you can convert it for your needs

"Mi piace"


Viewing all articles
Browse latest Browse all 6

Trending Articles