class ImportResourceCmdDeprecated

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

void ImportResourceCmdDeprecated (Storage_ storage)
void ImportResourceCmdDeprecated (uint32_t id, ::zx::eventpair token, ::fuchsia_ui_gfx::ImportSpec spec)
void ImportResourceCmdDeprecated ()

Default constructs a |ImportResourceCmdDeprecated| only if all of its members are default constructible.

Defined at line 5363 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h

void ImportResourceCmdDeprecated (ImportResourceCmdDeprecated && )

Defined at line 5366 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h

uint32_t id ()
uint32_t & id ()
ImportResourceCmdDeprecated & id (uint32_t value)

Setter for id.

ImportResourceCmdDeprecated & operator= (ImportResourceCmdDeprecated && )

Defined at line 5367 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h

const ::zx::eventpair & token ()
::zx::eventpair & token ()
ImportResourceCmdDeprecated & token (::zx::eventpair value)

Setter for token.

::fuchsia_ui_gfx::ImportSpec spec ()
::fuchsia_ui_gfx::ImportSpec & spec ()
ImportResourceCmdDeprecated & spec (::fuchsia_ui_gfx::ImportSpec value)

Setter for spec.

void ImportResourceCmdDeprecated (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalStructCodingTraits