desiredAccuracyInMeters property
int?
get
desiredAccuracyInMeters
Implementation
int? get desiredAccuracyInMeters {
final retValuePtr = calloc<COMObject>();
final hr = ptr.ref.vtable
.elementAt(6)
.cast<
Pointer<
NativeFunction<
HRESULT Function(Pointer, Pointer<COMObject>)>>>()
.value
.asFunction<int Function(Pointer, Pointer<COMObject>)>()(
ptr.ref.lpVtbl, retValuePtr);
if (FAILED(hr)) {
free(retValuePtr);
throw WindowsException(hr);
}
if (retValuePtr.ref.lpVtbl == nullptr) {
free(retValuePtr);
return null;
}
final reference = IReference<int>.fromRawPointer(retValuePtr,
referenceIid: '{513ef3af-e784-5325-a91e-97c2b8111cf3}');
final value = reference.value;
reference.release();
return value;
}
set
desiredAccuracyInMeters
(int? value)
Implementation
set desiredAccuracyInMeters(int? value) {
final referencePtr = value == null
? calloc<COMObject>()
: boxValue(value, convertToIReference: true, nativeType: Uint32);
final hr = ptr.ref.vtable
.elementAt(7)
.cast<Pointer<NativeFunction<HRESULT Function(Pointer, COMObject)>>>()
.value
.asFunction<
int Function(
Pointer, COMObject)>()(ptr.ref.lpVtbl, referencePtr.ref);
if (FAILED(hr)) throw WindowsException(hr);
if (value == null) free(referencePtr);
}