Instance Method

addUserScript:

Adds a user script.

Declaration

- (void)addUserScript:(WKUserScript *)userScript;

Parameters

userScript

The user script to add.

See Also

Adding and Removing User Scripts

- removeAllUserScripts

Removes all associated user scripts.

- removeScriptMessageHandlerForName:

Removes a script message handler.

userScripts

The user scripts associated with the user content controller.