setBitmap method
@brief Method is used to specify the decoded raster for the icon. @param bitmap Image provider: Android com.navigine.image.ImageProvider; iOS UIImage via binding; Flutter navigine_sdk ImageProvider. @return true if the operation is successful, false otherwise.
Dart code snippet: @snippet location_window_map_objects_example.dart dart_IconMapObject_setBitmap
Implementation
@override
bool setBitmap(ImageProvider bitmap) {
final _setBitmapFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer<Void>, Pointer<Void>),
int Function(Pointer<Void>, Pointer<Void>)
>('navigine_sdk_flutter_IconMapObject_setBitmap__Bitmap'));
final _bitmapHandle = navigine_sdk_flutter_ImageProvider_ToFfi(bitmap);
final _handle = this.handle;
final __resultHandle = _setBitmapFfi(_handle, _bitmapHandle);
navigine_sdk_flutter_ImageProvider_ReleaseFfiHandle(_bitmapHandle);
final _result = navigine_sdk_flutter_bool_FromFfi(__resultHandle);
navigine_sdk_flutter_bool_ReleaseFfiHandle(__resultHandle);
return _result;
}