|
Ultralight C++ API 2.0.0
|
#include <Ultralight/js/API.h>
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. | |
| 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.
| bool is_main_frame |
Whether or not the page is in the View's main frame.
| const char* origin |
The page's security origin, serialized (eg, "https://example.com", or "null" for an opaque origin).
| bool rules_allow |
Whether or not the origin rules allow the page.