Beispiel #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"]);
    }
Beispiel #2
0
 public ValueTask <bool> GetLocaltion() => Geolocation.GetLocaltion(Interop, this, "Test");