docs
Loading...
Searching...
No Matches
ultralight::dom::data::BindableHolder

Whether or not Context::Bind() can bind an instance through H. More...

#include <Ultralight/dom/data/Holders.h>

Concept definition

template<typename H>
Whether or not the DOM API can hold an object through H (ignoring const and references),...
Definition Holders.h:41
Whether or not Context::Bind() can bind an instance through H.
Definition Holders.h:37
Whether or not T has a schema (ignoring const, volatile, and references), ie.
Definition TypeTraits.h:163

Detailed Description

Whether or not Context::Bind() can bind an instance through H.

H must be a LockableHolder whose object type is described (see TypeTraits), eg, std::shared_ptr<HUD>, RefPtr<HUD>, or std::weak_ptr<HUD>. Each Context::Sync() locks the holder while it reads the instance. Once the object is gone, the binding stops updating and the page keeps the values it last got.

Note
The smart-pointer receiver forms of Binding::OnChange() and Binding::OnAction() need only a LockableHolder.