struct ImportResourceCmdDeprecated
Defined at line 3200 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/wire_types.h
Import a resource that was exported via ExportResourceCmd(). `token` is
a handle to the eventpair peer that was used to export the resource, and
`spec` describes the type of the imported resource, and the commands which
can legally be applied to it. Afterward, `id` can be used to refer to the
resource in an Command, similarly (but not identically: see below) to a
resource that was created in the session. For example, you can add children
to an imported EntityNode via AddChildCmd.
However, note that the importer does not gain full access to the imported
resource, but rather to an attenuated subset of its capabilities. For
example, you cannot use a DetachCmd to detach an imported EntityNode from
its parent.
Unlike ExportResourceCmd, there is no configurable timeout. There is an
expectation that the exported resource will become available in a short
amount of time. TODO: this needs elaboration... e.g. we might notify via the
SessionListener when we know that the link will never be made (e.g. if the
peer of the import token is destroyed).
Public Members
uint32_t id
eventpair token
ImportSpec spec
Public Methods
void _CloseHandles ()