Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

DataBinding and notifications

$
0
0

I'm using local notifications for both Android and iOS, i wanted to bind data that i get from bluetooth to notifications, couldn't find any informations about that online ...

I have my viewmodel in both my AppDelegate and MainActivity

In AppDelegate and MainActivity =>

public static AppDelegate Instance; 
public MainViewModel ViewModel { get; set; }
public static MainActivity Instance; 
public MainViewModel ViewModel { get; set; }

In my viewmodel =>

#if __ANDROID__
            MainActivity.Instance.ViewModel = this;
#endif

#if __IOS__
            AppDelegate.Instance.ViewModel = this;
#endif

Then i don't really know ... I usually just do the classic "{Binding xxx}" in XAML, no idea how to do that for the notifications.

Any tips ?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>