The current repo belongs to Closed status, and some functions are restricted. For details, please refer to the description of repo status
6 Star 0 Fork 2

OpenHarmony-SIG/fluttertpc_irondash
Closed

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

irondash_engine_context

Flutter plugin that provides access to Flutter engine components (like view or texture registrar) from native code.

Example

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.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony-sig/fluttertpc_irondash.git
git@gitee.com:openharmony-sig/fluttertpc_irondash.git
openharmony-sig
fluttertpc_irondash
fluttertpc_irondash
dev

Search