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

#include <Ultralight/js/API.h>

Overview

Options for API::AttachTo().

api.AttachTo(view.get(), { .flags = js::AllFrames,
.origin_rules = { "https://*.mygame.com" } });

Public Attributes

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

Member Data Documentation

◆ flags

The attach flags (see AttachFlags).

◆ origin_rules

OriginRules origin_rules = {}

The origin rules for the pages that get the bindings.

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: