Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
feat: injectOrNull() readonly delegate [extensions-koin]
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed Jun 3, 2022
1 parent 451d746 commit b13da1a
Show file tree
Hide file tree
Showing 10 changed files with 125 additions and 19 deletions.
11 changes: 8 additions & 3 deletions docs/exposed/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,22 @@
<a href="../extensions-koin/dev.floofy.utils.koin/inject.html"><span><span>inject()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-1" pageid="extensions-koin::dev.floofy.utils.koin//retrieve/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-1" pageid="extensions-koin::dev.floofy.utils.koin//injectOrNull/#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/inject-or-null.html"><span>inject</span><wbr><span>Or</span><wbr><span><span>Null()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-2" pageid="extensions-koin::dev.floofy.utils.koin//retrieve/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/retrieve.html"><span><span>retrieve()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-2" pageid="extensions-koin::dev.floofy.utils.koin//retrieveAll/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-3" pageid="extensions-koin::dev.floofy.utils.koin//retrieveAll/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/retrieve-all.html"><span>retrieve</span><wbr><span><span>All()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-3" pageid="extensions-koin::dev.floofy.utils.koin//retrieveOrNull/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-4" pageid="extensions-koin::dev.floofy.utils.koin//retrieveOrNull/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/retrieve-or-null.html"><span>retrieve</span><wbr><span>Or</span><wbr><span><span>Null()</span></span></a>
</div>
Expand Down
15 changes: 15 additions & 0 deletions docs/extensions-koin/dev.floofy.utils.koin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,21 @@ <h2 class="">Functions</h2>
</div>
</div>
</div>
<a data-name="1613970784%2FFunctions%2F-179136968" anchor-label="injectOrNull" id="1613970784%2FFunctions%2F-179136968" data-filterable-set=":extensions-koin:dokkaHtmlPartial/main"></a>
<div class="table-row" data-filterable-current=":extensions-koin:dokkaHtmlPartial/main" data-filterable-set=":extensions-koin:dokkaHtmlPartial/main">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="inject-or-null.html"><span>inject</span><wbr><span>Or</span><wbr><span><span>Null</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1613970784%2FFunctions%2F-179136968"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":extensions-koin:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="inject-or-null.html">T</a><span class="token operator">&gt; </span><a href="inject-or-null.html"><span class="token function">injectOrNull</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.properties/-read-only-property/index.html">ReadOnlyProperty</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><span class="token operator">?</span><span class="token punctuation">, </span><span class="token keyword"></span><a href="inject-or-null.html">T</a><span class="token operator">?</span><span class="token operator">&gt;</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Readonly property to get a reference of <a href="inject-or-null.html">T</a> or null if it wasn't found in the Koin application.</p></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1349298154%2FFunctions%2F-179136968" anchor-label="retrieve" id="-1349298154%2FFunctions%2F-179136968" data-filterable-set=":extensions-koin:dokkaHtmlPartial/main"></a>
<div class="table-row" data-filterable-current=":extensions-koin:dokkaHtmlPartial/main" data-filterable-set=":extensions-koin:dokkaHtmlPartial/main">
<div class="main-subrow keyValue ">
Expand Down
54 changes: 54 additions & 0 deletions docs/extensions-koin/dev.floofy.utils.koin/inject-or-null.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<title>injectOrNull</title>
<link href="../../images/logo-icon.svg" rel="icon" type="image/svg">
<script>var pathToRoot = "../../";</script> <script>const storage = localStorage.getItem("dokka-dark-mode")
const savedDarkMode = storage ? JSON.parse(storage) : false
if(savedDarkMode === true){
document.getElementsByTagName("html")[0].classList.add("theme-dark")
}</script>
<script type="text/javascript" src="../../scripts/sourceset_dependencies.js" async></script>
<link href="../../styles/style.css" rel="Stylesheet">
<link href="../../styles/jetbrains-mono.css" rel="Stylesheet">
<link href="../../styles/main.css" rel="Stylesheet">
<link href="../../styles/prism.css" rel="Stylesheet">
<link href="../../styles/logo-styles.css" rel="Stylesheet">
<script type="text/javascript" src="../../scripts/clipboard.js" async></script>
<script type="text/javascript" src="../../scripts/navigation-loader.js" async></script>
<script type="text/javascript" src="../../scripts/platform-content-handler.js" async></script>
<script type="text/javascript" src="../../scripts/main.js" defer></script>
<script type="text/javascript" src="../../scripts/prism.js" async></script></head>
<body>
<div class="navigation-wrapper" id="navigation-wrapper">
<div id="leftToggler"><span class="icon-toggler"></span></div>
<div class="library-name">
<a href="../../index.html">
<span>commons</span> </a> </div>
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
<div id="searchBar"></div>
</div>
</div>
<div id="container">
<div id="leftColumn">
<div id="sideMenu"></div>
</div>
<div id="main">
<div class="main-content" id="content" pageids="extensions-koin::dev.floofy.utils.koin//injectOrNull/#/PointingToDeclaration//-179136968">
<div class="breadcrumbs"><a href="../index.html">extensions-koin</a><span class="delimiter">/</span><a href="index.html">dev.floofy.utils.koin</a><span class="delimiter">/</span><a href="inject-or-null.html">injectOrNull</a></div>
<div class="cover ">
<h1 class="cover"><span>inject</span><wbr><span>Or</span><wbr><span><span>Null</span></span></h1>
</div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":extensions-koin:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="inject-or-null.html">T</a><span class="token operator">&gt; </span><a href="inject-or-null.html"><span class="token function">injectOrNull</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.properties/-read-only-property/index.html">ReadOnlyProperty</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><span class="token operator">?</span><span class="token punctuation">, </span><span class="token keyword"></span><a href="inject-or-null.html">T</a><span class="token operator">?</span><span class="token operator">&gt;</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><p class="paragraph">Readonly property to get a reference of <a href="inject-or-null.html">T</a> or null if it wasn't found in the Koin application.</p></div></div>
</div>
<div class="footer"><span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2022 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span>
</div>
</div>
</div>

</body></html>

11 changes: 8 additions & 3 deletions docs/extensions-koin/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,22 @@
<a href="../extensions-koin/dev.floofy.utils.koin/inject.html"><span><span>inject()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-1" pageid="extensions-koin::dev.floofy.utils.koin//retrieve/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-1" pageid="extensions-koin::dev.floofy.utils.koin//injectOrNull/#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/inject-or-null.html"><span>inject</span><wbr><span>Or</span><wbr><span><span>Null()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-2" pageid="extensions-koin::dev.floofy.utils.koin//retrieve/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/retrieve.html"><span><span>retrieve()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-2" pageid="extensions-koin::dev.floofy.utils.koin//retrieveAll/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-3" pageid="extensions-koin::dev.floofy.utils.koin//retrieveAll/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/retrieve-all.html"><span>retrieve</span><wbr><span><span>All()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-3" pageid="extensions-koin::dev.floofy.utils.koin//retrieveOrNull/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-4" pageid="extensions-koin::dev.floofy.utils.koin//retrieveOrNull/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/retrieve-or-null.html"><span>retrieve</span><wbr><span>Or</span><wbr><span><span>Null()</span></span></a>
</div>
Expand Down
11 changes: 8 additions & 3 deletions docs/extensions-kotlin/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,22 @@
<a href="../extensions-koin/dev.floofy.utils.koin/inject.html"><span><span>inject()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-1" pageid="extensions-koin::dev.floofy.utils.koin//retrieve/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-1" pageid="extensions-koin::dev.floofy.utils.koin//injectOrNull/#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/inject-or-null.html"><span>inject</span><wbr><span>Or</span><wbr><span><span>Null()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-2" pageid="extensions-koin::dev.floofy.utils.koin//retrieve/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/retrieve.html"><span><span>retrieve()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-2" pageid="extensions-koin::dev.floofy.utils.koin//retrieveAll/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-3" pageid="extensions-koin::dev.floofy.utils.koin//retrieveAll/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/retrieve-all.html"><span>retrieve</span><wbr><span><span>All()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-3" pageid="extensions-koin::dev.floofy.utils.koin//retrieveOrNull/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-4" pageid="extensions-koin::dev.floofy.utils.koin//retrieveOrNull/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/retrieve-or-null.html"><span>retrieve</span><wbr><span>Or</span><wbr><span><span>Null()</span></span></a>
</div>
Expand Down
11 changes: 8 additions & 3 deletions docs/gradle-utils/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,22 @@
<a href="../extensions-koin/dev.floofy.utils.koin/inject.html"><span><span>inject()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-1" pageid="extensions-koin::dev.floofy.utils.koin//retrieve/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-1" pageid="extensions-koin::dev.floofy.utils.koin//injectOrNull/#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/inject-or-null.html"><span>inject</span><wbr><span>Or</span><wbr><span><span>Null()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-2" pageid="extensions-koin::dev.floofy.utils.koin//retrieve/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/retrieve.html"><span><span>retrieve()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-2" pageid="extensions-koin::dev.floofy.utils.koin//retrieveAll/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-3" pageid="extensions-koin::dev.floofy.utils.koin//retrieveAll/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/retrieve-all.html"><span>retrieve</span><wbr><span><span>All()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-3" pageid="extensions-koin::dev.floofy.utils.koin//retrieveOrNull/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-4" pageid="extensions-koin::dev.floofy.utils.koin//retrieveOrNull/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="../extensions-koin/dev.floofy.utils.koin/retrieve-or-null.html"><span>retrieve</span><wbr><span>Or</span><wbr><span><span>Null()</span></span></a>
</div>
Expand Down
11 changes: 8 additions & 3 deletions docs/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,22 @@
<a href="extensions-koin/dev.floofy.utils.koin/inject.html"><span><span>inject()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-1" pageid="extensions-koin::dev.floofy.utils.koin//retrieve/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-1" pageid="extensions-koin::dev.floofy.utils.koin//injectOrNull/#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="extensions-koin/dev.floofy.utils.koin/inject-or-null.html"><span>inject</span><wbr><span>Or</span><wbr><span><span>Null()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-2" pageid="extensions-koin::dev.floofy.utils.koin//retrieve/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="extensions-koin/dev.floofy.utils.koin/retrieve.html"><span><span>retrieve()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-2" pageid="extensions-koin::dev.floofy.utils.koin//retrieveAll/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-3" pageid="extensions-koin::dev.floofy.utils.koin//retrieveAll/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="extensions-koin/dev.floofy.utils.koin/retrieve-all.html"><span>retrieve</span><wbr><span><span>All()</span></span></a>
</div>
</div>
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-3" pageid="extensions-koin::dev.floofy.utils.koin//retrieveOrNull/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="sideMenuPart" id="extensions-koin-nav-submenu-0-4" pageid="extensions-koin::dev.floofy.utils.koin//retrieveOrNull/org.koin.core.context.GlobalContext#/PointingToDeclaration//-179136968">
<div class="overview">
<a href="extensions-koin/dev.floofy.utils.koin/retrieve-or-null.html"><span>retrieve</span><wbr><span>Or</span><wbr><span><span>Null()</span></span></a>
</div>
Expand Down
Loading

0 comments on commit b13da1a

Please sign in to comment.