desiredAccuracy property
PositionAccuracy
get
desiredAccuracy
Implementation
PositionAccuracy get desiredAccuracy {
final retValuePtr = calloc<Int32>();
try {
final hr = ptr.ref.vtable
.elementAt(6)
.cast<
Pointer<
NativeFunction<HRESULT Function(Pointer, Pointer<Int32>)>>>()
.value
.asFunction<
int Function(
Pointer, Pointer<Int32>)>()(ptr.ref.lpVtbl, retValuePtr);
if (FAILED(hr)) throw WindowsException(hr);
return PositionAccuracy.from(retValuePtr.value);
} finally {
free(retValuePtr);
}
}
set
desiredAccuracy
(PositionAccuracy value)
Implementation
set desiredAccuracy(PositionAccuracy value) {
final hr = ptr.ref.vtable
.elementAt(7)
.cast<Pointer<NativeFunction<HRESULT Function(Pointer, Int32)>>>()
.value
.asFunction<int Function(Pointer, int)>()(ptr.ref.lpVtbl, value.value);
if (FAILED(hr)) throw WindowsException(hr);
}