UserStyleSheet.for_world
Description:
[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.22" ) ]
public UserStyleSheet.for_world (string source, UserContentInjectedFrames injected_frames, UserStyleLevel level, string world_name, string[]? allow_list, string[]? block_list)
[ Version ( since = "2.22" ) ]
public UserStyleSheet.for_world (string source, UserContentInjectedFrames injected_frames, UserStyleLevel level, string world_name, string[]? allow_list, string[]? block_list)
Creates a new user style sheet for script world.
Creates a new user style sheet for script world with name world_name. See
UserStyleSheet for a full description.
Parameters:
| source |
Source code of the user style sheet. |
| injected_frames |
A UserContentInjectedFrames value |
| level | |
| world_name |
the name of a |
| allow_list |
An allow_list of URI patterns or null |
| block_list |
A block_list of URI patterns or null |
Returns:
|
A new UserStyleSheet |