class ViewIdentityOnCreation
Defined at line 632 of file fidling/gen/sdk/fidl/fuchsia.ui.views/fuchsia.ui.views/cpp/fidl/fuchsia.ui.views/cpp/natural_types.h
Convenience data type to self-identify the view, during view creation.
A ViewRef is used to identify the view, and can be freely cloned and
distributed to other components.
A ViewRefControl is used to implement lifecycle notification, and must not
be cloned, and cannot be distributed to other components. Scenic binds the
ViewRefControl object to the view, so when the view is destroyed, the
destruction of the ViewRefControl triggers a `ZX_EVENTPAIR_PEER_CLOSED`
signal to all ViewRef holders, thus notifying view death.
Usage: When creating a view, place a ViewRef and ViewRefControl together in
this struct, so that they travel as a unit to the destination component.
This convenience struct allows a protocol author to describe this traveling
pair as one argument. It improves readability and reduces mishandling.
Public Methods
void ViewIdentityOnCreation (Storage_ storage)
void ViewIdentityOnCreation (::fuchsia_ui_views::ViewRef view_ref, ::fuchsia_ui_views::ViewRefControl view_ref_control)
void ViewIdentityOnCreation ()
Default constructs a |ViewIdentityOnCreation| only if all of its members are default constructible.
Defined at line 643 of file fidling/gen/sdk/fidl/fuchsia.ui.views/fuchsia.ui.views/cpp/fidl/fuchsia.ui.views/cpp/natural_types.h
void ViewIdentityOnCreation (ViewIdentityOnCreation && )
Defined at line 646 of file fidling/gen/sdk/fidl/fuchsia.ui.views/fuchsia.ui.views/cpp/fidl/fuchsia.ui.views/cpp/natural_types.h
ViewIdentityOnCreation & operator= (ViewIdentityOnCreation && )
Defined at line 647 of file fidling/gen/sdk/fidl/fuchsia.ui.views/fuchsia.ui.views/cpp/fidl/fuchsia.ui.views/cpp/natural_types.h
const ::fuchsia_ui_views::ViewRef & view_ref ()
Stable identifier for the view to be created.
::fuchsia_ui_views::ViewRef & view_ref ()
Stable identifier for the view to be created.
ViewIdentityOnCreation & view_ref (::fuchsia_ui_views::ViewRef value)
Stable identifier for the view to be created.
const ::fuchsia_ui_views::ViewRefControl & view_ref_control ()
A mechanism for lifecycle notification.
::fuchsia_ui_views::ViewRefControl & view_ref_control ()
A mechanism for lifecycle notification.
ViewIdentityOnCreation & view_ref_control (::fuchsia_ui_views::ViewRefControl value)
A mechanism for lifecycle notification.
void ViewIdentityOnCreation (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalStructCodingTraits