MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / bind_resource

Method bind_resource

source/binding/NodeJS/src/apis/client.cpp:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void ClientImpl::bind_resource(maajs::NativeObject<ResourceImpl> resource)
36{
37 if (!MaaAgentClientBindResource(client, resource->resource)) {
38 throw maajs::MaaError { "Client bind_resource failed" };
39 }
40}
41
42void ClientImpl::register_resource_sink(maajs::NativeObject<ResourceImpl> resource)
43{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected