Пример #1
0
 public async Task <int> WatchPosition(Action <Position> onSuccess,
                                       Action <PositionError> onError,
                                       PositionOptions options = null)
 {
     OnWatchPosition      = onSuccess;
     OnWatchPositionError = onError;
     return(await JSRuntime.Current.InvokeAsync <int>("ejcGeolocation.watchPosition", new DotNetObjectRef(this), options));
 }
Пример #2
0
 public async Task GetCurrentPosition(Action <Position> onSuccess,
                                      Action <PositionError> onError,
                                      PositionOptions options = null)
 {
     OnGetPosition      = onSuccess;
     OnGetPositionError = onError;
     await JSRuntime.Current.InvokeAsync <bool>("ejcGeolocation.getCurrentPosition", new DotNetObjectRef(this), options);
 }