MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Samples / NewComponent

Method NewComponent

SampleApps/WebView2APISample/AppWindow.h:334–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332
333// Creates and registers a component on this `AppWindow`.
334template <class ComponentType, class... Args> void AppWindow::NewComponent(Args&&... args)
335{
336 m_components.emplace_back(new ComponentType(std::forward<Args>(args)...));
337}
338
339template <class ComponentType> ComponentType* AppWindow::GetComponent()
340{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected