You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

198 lines
8.9 KiB

  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Delegate PluginInitInjector.InjectParameter
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Delegate PluginInitInjector.InjectParameter
  11. ">
  12. <meta name="generator" content="docfx 2.44.0.0">
  13. <link rel="shortcut icon" href="../favicon.ico">
  14. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../styles/docfx.css">
  16. <link rel="stylesheet" href="../styles/main.css">
  17. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  18. <meta property="docfx:navrel" content="../toc.html">
  19. <meta property="docfx:tocrel" content="toc.html">
  20. <meta property="docfx:rel" content="../">
  21. <meta property="docfx:newtab" content="true">
  22. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  23. <div id="wrapper">
  24. <header>
  25. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  29. <span class="sr-only">Toggle navigation</span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="../index.html">
  35. <img id="logo" class="svg" src="../logo.svg" alt="">
  36. </a>
  37. </div>
  38. <div class="collapse navbar-collapse" id="navbar">
  39. <form class="navbar-form navbar-right" role="search" id="search">
  40. <div class="form-group">
  41. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </nav>
  47. <div class="subnav navbar navbar-default">
  48. <div class="container hide-when-search" id="breadcrumb">
  49. <ul class="breadcrumb">
  50. <li></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </header>
  55. <div class="container body-content">
  56. <div id="search-results">
  57. <div class="search-list"></div>
  58. <div class="sr-items">
  59. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  60. </div>
  61. <ul id="pagination"></ul>
  62. </div>
  63. </div>
  64. <div role="main" class="container body-content hide-when-search">
  65. <div class="sidenav hide-when-search">
  66. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  67. <div class="sidetoggle collapse" id="sidetoggle">
  68. <div id="sidetoc"></div>
  69. </div>
  70. </div>
  71. <div class="article row grid-right">
  72. <div class="col-md-10">
  73. <article class="content wrap" id="_content" data-uid="IPA.Loader.PluginInitInjector.InjectParameter">
  74. <h1 id="IPA_Loader_PluginInitInjector_InjectParameter" data-uid="IPA.Loader.PluginInitInjector.InjectParameter" class="text-break">Delegate PluginInitInjector.InjectParameter
  75. </h1>
  76. <div class="markdown level0 summary"><p>A typed injector for a plugin&apos;s Init method. When registered, called for all associated types. If it returns null, the default for the type will be used.</p>
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Loader.html">IPA.Loader</a></h6>
  80. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  81. <h5 id="IPA_Loader_PluginInitInjector_InjectParameter_syntax">Syntax</h5>
  82. <div class="codewrapper">
  83. <pre><code class="lang-csharp hljs">public delegate object InjectParameter(object previous, ParameterInfo param, PluginLoader.PluginMetadata meta);</code></pre>
  84. </div>
  85. <h5 class="parameters">Parameters</h5>
  86. <table class="table table-bordered table-striped table-condensed">
  87. <thead>
  88. <tr>
  89. <th>Type</th>
  90. <th>Name</th>
  91. <th>Description</th>
  92. </tr>
  93. </thead>
  94. <tbody>
  95. <tr>
  96. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
  97. <td><span class="parametername">previous</span></td>
  98. <td><p>the previous return value of the function, or <span class="xref">null</span> if never called for plugin.</p>
  99. </td>
  100. </tr>
  101. <tr>
  102. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.reflection.parameterinfo">ParameterInfo</a></td>
  103. <td><span class="parametername">param</span></td>
  104. <td><p>the <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.reflection.parameterinfo">ParameterInfo</a> of the parameter being injected.</p>
  105. </td>
  106. </tr>
  107. <tr>
  108. <td><a class="xref" href="IPA.Loader.PluginLoader.PluginMetadata.html">PluginLoader.PluginMetadata</a></td>
  109. <td><span class="parametername">meta</span></td>
  110. <td><p>the <a class="xref" href="IPA.Loader.PluginLoader.PluginMetadata.html">PluginLoader.PluginMetadata</a> for the plugin being loaded.</p>
  111. </td>
  112. </tr>
  113. </tbody>
  114. </table>
  115. <h5 class="returns">Returns</h5>
  116. <table class="table table-bordered table-striped table-condensed">
  117. <thead>
  118. <tr>
  119. <th>Type</th>
  120. <th>Description</th>
  121. </tr>
  122. </thead>
  123. <tbody>
  124. <tr>
  125. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
  126. <td><p>the value to inject into that parameter.</p>
  127. </td>
  128. </tr>
  129. </tbody>
  130. </table>
  131. <h3 id="extensionmethods">Extension Methods</h3>
  132. <div>
  133. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetPrivateField_System_Object_System_String_System_Object_">ReflectionUtil.SetPrivateField(Object, String, Object)</a>
  134. </div>
  135. <div>
  136. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetPrivateField__1_System_Object_System_String_">ReflectionUtil.GetPrivateField&lt;T&gt;(Object, String)</a>
  137. </div>
  138. <div>
  139. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetPrivateProperty_System_Object_System_String_System_Object_">ReflectionUtil.SetPrivateProperty(Object, String, Object)</a>
  140. </div>
  141. <div>
  142. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokePrivateMethod_System_Object_System_String_System_Object___">ReflectionUtil.InvokePrivateMethod(Object, String, Object[])</a>
  143. </div>
  144. <div>
  145. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokePrivateMethod__1_System_Object_System_String_System_Object___">ReflectionUtil.InvokePrivateMethod&lt;T&gt;(Object, String, Object[])</a>
  146. </div>
  147. </article>
  148. </div>
  149. <div class="hidden-sm col-md-2" role="complementary">
  150. <div class="sideaffix">
  151. <div class="contribution">
  152. <ul class="nav">
  153. <li>
  154. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Loader_PluginInitInjector_InjectParameter.md&amp;value=---%0Auid%3A%20IPA.Loader.PluginInitInjector.InjectParameter%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  155. </li>
  156. <li>
  157. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/85057f5eab973d8e4f5e8f74be948f30eace9039/IPA.Loader/Loader/PluginInitInjector.cs/#L27" class="contribution-link">View Source</a>
  158. </li>
  159. </ul>
  160. </div>
  161. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  162. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  163. </nav>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. <footer>
  169. <div class="grad-bottom"></div>
  170. <div class="footer">
  171. <div class="container">
  172. <span class="pull-right">
  173. <a href="#top">Back to top</a>
  174. </span>
  175. <span>Generated by <strong>DocFX</strong></span>
  176. </div>
  177. </div>
  178. </footer>
  179. </div>
  180. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  181. <script type="text/javascript" src="../styles/docfx.js"></script>
  182. <script type="text/javascript" src="../styles/main.js"></script>
  183. </body>
  184. </html>