Fetch the repository succeeded.
Flutter plugin that provides access to Flutter engine components (like view or texture registrar) from native code.
Dart code:
import 'package:irondash_engine_context/irondash_engine_context.dart';
final handle = await EngineContext.instance.getEngineHandle();
// pass the handle native code (i.e. through FFI).
nativeMethod(handle);
Rust code:
use irondash_engine_context::EngineContext;
let context = EngineContext::get().unwrap();
let flutter_view = context.get_flutter_view(handle);
let texture_registry = context.get_texture_registry(handle);
On Android the dylib containing Rust code must be loaded through System.loadLibrary
before loading it from Dart code. System.loadLibrary
must be called on main thread.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。