<HTML> <HEAD> <meta charset="UTF-8"> <title>SystemPreferences.on - kvision</title> <link rel="stylesheet" href="../../../style.css"> </HEAD> <BODY> <a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.electron</a> / <a href="index.html">SystemPreferences</a> / <a href="./on.html">on</a><br/> <br/> <h1>on</h1> <a name="pl.treksoft.kvision.electron.SystemPreferences$on(kotlin.String, kotlin.Function2((pl.treksoft.kvision.electron.Event, kotlin.String, kotlin.Unit)))"></a> <code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">on</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.electron.SystemPreferences$on(kotlin.String, kotlin.Function2((pl.treksoft.kvision.electron.Event, kotlin.String, kotlin.Unit)))/event">event</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.electron.SystemPreferences$on(kotlin.String, kotlin.Function2((pl.treksoft.kvision.electron.Event, kotlin.String, kotlin.Unit)))/listener">listener</span><span class="symbol">:</span> <span class="symbol">(</span><span class="identifier">event</span><span class="symbol">:</span> <a href="../-event/index.html"><span class="identifier">Event</span></a><span class="symbol">,</span> <span class="identifier">newColor</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><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><span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">SystemPreferences</span></a></code><br/> <a name="pl.treksoft.kvision.electron.SystemPreferences$on(kotlin.String, kotlin.Function1((pl.treksoft.kvision.electron.Event, kotlin.Unit)))"></a> <code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">on</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.electron.SystemPreferences$on(kotlin.String, kotlin.Function1((pl.treksoft.kvision.electron.Event, kotlin.Unit)))/event">event</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.electron.SystemPreferences$on(kotlin.String, kotlin.Function1((pl.treksoft.kvision.electron.Event, kotlin.Unit)))/listener">listener</span><span class="symbol">:</span> <span class="symbol">(</span><span class="identifier">event</span><span class="symbol">:</span> <a href="../-event/index.html"><span class="identifier">Event</span></a><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><span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">SystemPreferences</span></a></code><br/> <a name="pl.treksoft.kvision.electron.SystemPreferences$on(kotlin.String, kotlin.Function2((pl.treksoft.kvision.electron.Event, kotlin.Boolean, kotlin.Unit)))"></a> <code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">on</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.electron.SystemPreferences$on(kotlin.String, kotlin.Function2((pl.treksoft.kvision.electron.Event, kotlin.Boolean, kotlin.Unit)))/event">event</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.electron.SystemPreferences$on(kotlin.String, kotlin.Function2((pl.treksoft.kvision.electron.Event, kotlin.Boolean, kotlin.Unit)))/listener">listener</span><span class="symbol">:</span> <span class="symbol">(</span><span class="identifier">event</span><span class="symbol">:</span> <a href="../-event/index.html"><span class="identifier">Event</span></a><span class="symbol">,</span> <span class="identifier">invertedColorScheme</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a><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><span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">SystemPreferences</span></a></code> </BODY> </HTML>