docs
Loading...
Searching...
No Matches
InjectionRequest

#include <Ultralight/js/API.h>

Overview

The details an API injection filter decides on (see SetInjectionFilter()).

New members may be added at the end in later versions, so read the members by name.

Public Attributes

View * view
 The View loading the page (the View you set the filter on).
ULJSAPI api
 The API being decided on.
const char * origin
 The page's security origin, serialized (eg, "https://example.com", or "null" for an opaque origin).
bool is_main_frame
 Whether or not the page is in the View's main frame.
bool rules_allow
 Whether or not the origin rules allow the page.

Member Data Documentation

◆ api

ULJSAPI api

The API being decided on.

It's the handle your API's raw() returns, so compare the two to tell your APIs apart. Wrap it with API::FromBorrowed() to use it as an API.

◆ is_main_frame

bool is_main_frame

Whether or not the page is in the View's main frame.

◆ origin

const char* origin

The page's security origin, serialized (eg, "https://example.com", or "null" for an opaque origin).

◆ rules_allow

bool rules_allow

Whether or not the origin rules allow the page.

◆ view

View* view

The View loading the page (the View you set the filter on).


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