WebContext.connectInitializeNotificationPermissions

Connect to InitializeNotificationPermissions signal.

This signal is emitted when a #WebKitWebContext needs to set initial notification permissions for a web process. It is emitted when a new web process is about to be launched, and signals the most appropriate moment to use webkit.web_context.WebContext.initializeNotificationPermissions. If no notification permissions have changed since the last time this signal was emitted, then there is no need to call webkit.web_context.WebContext.initializeNotificationPermissions again.

class WebContext
ulong
connectInitializeNotificationPermissions
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == void)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
)
)
&&
Parameters!T.length < 2
)

Parameters

callback T

signal callback delegate or function to connect

void callback(webkit.web_context.WebContext webContext)

webContext the instance the signal is connected to (optional)

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID