summaryrefslogtreecommitdiff
path: root/api/pl.treksoft.kvision.electron/-session/set-permission-request-handler.html
blob: a35fc3c641657062e57a571d22d0665827f51f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>Session.setPermissionRequestHandler - kvision</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.electron</a>&nbsp;/&nbsp;<a href="index.html">Session</a>&nbsp;/&nbsp;<a href="./set-permission-request-handler.html">setPermissionRequestHandler</a><br/>
<br/>
<h1>setPermissionRequestHandler</h1>
<a name="pl.treksoft.kvision.electron.Session$setPermissionRequestHandler(kotlin.Function4((pl.treksoft.kvision.electron.WebContents, kotlin.String, kotlin.Function1((kotlin.Boolean, kotlin.Unit)), pl.treksoft.kvision.electron.PermissionRequestHandlerDetails, kotlin.Unit)))"></a>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">setPermissionRequestHandler</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.electron.Session$setPermissionRequestHandler(kotlin.Function4((pl.treksoft.kvision.electron.WebContents, kotlin.String, kotlin.Function1((kotlin.Boolean, kotlin.Unit)), pl.treksoft.kvision.electron.PermissionRequestHandlerDetails, kotlin.Unit)))/handler">handler</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="identifier">webContents</span><span class="symbol">:</span>&nbsp;<a href="../-web-contents/index.html"><span class="identifier">WebContents</span></a><span class="symbol">,</span>&nbsp;<span class="identifier">permission</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">,</span>&nbsp;<span class="identifier">callback</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="identifier">permissionGranted</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">,</span>&nbsp;<span class="identifier">details</span><span class="symbol">:</span>&nbsp;<a href="../-permission-request-handler-details/index.html"><span class="identifier">PermissionRequestHandlerDetails</span></a><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
</BODY>
</HTML>