docs
Loading...
Searching...
No Matches
AttachOptions

#include <Ultralight/dom/Triggers.h>

Overview

Options for Triggers::AttachTo().

if (!ui.AttachTo(view.get(), { .flags = dom::AllFrames,
.origin_rules = { "https://*.mygame.com" } }))
Log("the attach failed");

Public Attributes

AttachFlags flags = AttachFlags::None
 The attach flags (see AttachFlags).
OriginRules origin_rules = {}
 The origin rules for the pages that get the listeners.

Member Data Documentation

◆ flags

The attach flags (see AttachFlags).

◆ origin_rules

OriginRules origin_rules = {}

The origin rules for the pages that get the listeners.

Leave it empty for the default policy (your application's own content). See ultralight::OriginRules.


The documentation for this struct was generated from the following file: