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

How can get xamarin.Android value in PCL

$
0
0

I Created a custom map in xamarin android and implement map move event

private async void NativeMap_CameraIdle(object sender, EventArgs e)
{
    var LatLng = NativeMap.CameraPosition.Target;
    var address = await Geocode.GetAddress(LatLng.Latitude.ToString(), LatLng.Longitude.ToString(), "en");
    string add = address.FormattedAddress;
    string con = address.Country;
}

this method every time when i move map and getting address

string add= address.FormattedAddress;
string con = address.Country;

i want to value add and con in label text and reflect label text every time when move map, how can fix this


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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