Ejemplo n.º 1
0
    private async Task GetLocation()
    {
        Interop ??= new JSInterop <Geolocations>(JSRuntime);
        var ret = await Geolocation.GetLocaltion(Interop, this, nameof(GetLocationCallback));

        Trace.Log(ret ? Localizer["GetLocationResultSuccess"] : Localizer["GetLocationResultFailed"]);
    }
Ejemplo n.º 2
0
 public ValueTask <bool> GetLocaltion() => Geolocation.GetLocaltion(Interop, this, "Test");