class ImportResourceCmdDeprecated

Defined at line 2701 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/hlcpp/fuchsia/ui/gfx/cpp/fidl.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

::std::unique_ptr<ImportResourceCmdDeprecated> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, ImportResourceCmdDeprecated * value, size_t _offset)
zx_status_t Clone (ImportResourceCmdDeprecated * result)