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.

209 lines
10 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>Interface IDisablablePlugin
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Interface IDisablablePlugin
  11. ">
  12. <meta name="generator" content="docfx 2.48.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.IDisablablePlugin">
  74. <h1 id="IPA_IDisablablePlugin" data-uid="IPA.IDisablablePlugin" class="text-break">Interface IDisablablePlugin
  75. </h1>
  76. <div class="markdown level0 summary"><p>Provides methods to allow runtime disabling of a plugin.</p>
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <div class="inheritedMembers">
  80. <h5>Inherited Members</h5>
  81. <div>
  82. <a class="xref" href="IPA.IPlugin.html#IPA_IPlugin_OnEnable">IPlugin.OnEnable()</a>
  83. </div>
  84. <div>
  85. <a class="xref" href="IPA.IPlugin.html#IPA_IPlugin_OnApplicationQuit">IPlugin.OnApplicationQuit()</a>
  86. </div>
  87. <div>
  88. <a class="xref" href="IPA.IPlugin.html#IPA_IPlugin_OnSceneLoaded_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_LoadSceneMode_">IPlugin.OnSceneLoaded(Scene, LoadSceneMode)</a>
  89. </div>
  90. <div>
  91. <a class="xref" href="IPA.IPlugin.html#IPA_IPlugin_OnSceneUnloaded_UnityEngine_SceneManagement_Scene_">IPlugin.OnSceneUnloaded(Scene)</a>
  92. </div>
  93. <div>
  94. <a class="xref" href="IPA.IPlugin.html#IPA_IPlugin_OnActiveSceneChanged_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene_">IPlugin.OnActiveSceneChanged(Scene, Scene)</a>
  95. </div>
  96. </div>
  97. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.html">IPA</a></h6>
  98. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  99. <h5 id="IPA_IDisablablePlugin_syntax">Syntax</h5>
  100. <div class="codewrapper">
  101. <pre><code class="lang-csharp hljs">[Obsolete(&quot;Use the attribute-based system instead.&quot;)]
  102. public interface IDisablablePlugin : IPlugin</code></pre>
  103. </div>
  104. <h3 id="methods">Methods
  105. </h3>
  106. <span class="small pull-right mobile-hide">
  107. <span class="divider">|</span>
  108. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_IDisablablePlugin_OnDisable.md&amp;value=---%0Auid%3A%20IPA.IDisablablePlugin.OnDisable%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">Improve this Doc</a>
  109. </span>
  110. <span class="small pull-right mobile-hide">
  111. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/674742a4156d8375ece0cb7bf8a48df6d5ebc7de/IPA.Loader/PluginInterfaces/BeatSaber/IDisablablePlugin.cs/#L20">View Source</a>
  112. </span>
  113. <a id="IPA_IDisablablePlugin_OnDisable_" data-uid="IPA.IDisablablePlugin.OnDisable*"></a>
  114. <h4 id="IPA_IDisablablePlugin_OnDisable" data-uid="IPA.IDisablablePlugin.OnDisable">OnDisable()</h4>
  115. <div class="markdown level1 summary"><p>Called when a plugin is disabled at runtime. This should disable things like Harmony patches and unsubscribe
  116. from events. After this is called there should be no lingering effects of the mod.</p>
  117. </div>
  118. <div class="markdown level1 conceptual"></div>
  119. <h5 class="decalaration">Declaration</h5>
  120. <div class="codewrapper">
  121. <pre><code class="lang-csharp hljs">void OnDisable()</code></pre>
  122. </div>
  123. <h5 id="IPA_IDisablablePlugin_OnDisable_remarks">Remarks</h5>
  124. <div class="markdown level1 remarks"><p>This will get called at shutdown, after <a class="xref" href="IPA.IPlugin.html#IPA_IPlugin_OnApplicationQuit">OnApplicationQuit()</a>, as well as when the
  125. plugin is disabled at runtime.</p>
  126. </div>
  127. <h3 id="extensionmethods">Extension Methods</h3>
  128. <div>
  129. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetField_System_Object_System_String_System_Object_">ReflectionUtil.SetField(Object, String, Object)</a>
  130. </div>
  131. <div>
  132. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetField__1___0_System_String_System_Object_">ReflectionUtil.SetField&lt;T&gt;(T, String, Object)</a>
  133. </div>
  134. <div>
  135. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetField__1_System_Object_System_String_">ReflectionUtil.GetField&lt;T&gt;(Object, String)</a>
  136. </div>
  137. <div>
  138. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetField__2___1_System_String_">ReflectionUtil.GetField&lt;T, U&gt;(U, String)</a>
  139. </div>
  140. <div>
  141. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetProperty_System_Object_System_String_System_Object_">ReflectionUtil.SetProperty(Object, String, Object)</a>
  142. </div>
  143. <div>
  144. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetProperty__1___0_System_String_System_Object_">ReflectionUtil.SetProperty&lt;T&gt;(T, String, Object)</a>
  145. </div>
  146. <div>
  147. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod_System_Object_System_String_System_Object___">ReflectionUtil.InvokeMethod(Object, String, Object[])</a>
  148. </div>
  149. <div>
  150. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod__1___0_System_String_System_Object___">ReflectionUtil.InvokeMethod&lt;T&gt;(T, String, Object[])</a>
  151. </div>
  152. <div>
  153. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod__1_System_Object_System_String_System_Object___">ReflectionUtil.InvokeMethod&lt;T&gt;(Object, String, Object[])</a>
  154. </div>
  155. <div>
  156. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod__2___1_System_String_System_Object___">ReflectionUtil.InvokeMethod&lt;T, U&gt;(U, String, Object[])</a>
  157. </div>
  158. </article>
  159. </div>
  160. <div class="hidden-sm col-md-2" role="complementary">
  161. <div class="sideaffix">
  162. <div class="contribution">
  163. <ul class="nav">
  164. <li>
  165. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_IDisablablePlugin.md&amp;value=---%0Auid%3A%20IPA.IDisablablePlugin%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>
  166. </li>
  167. <li>
  168. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/674742a4156d8375ece0cb7bf8a48df6d5ebc7de/IPA.Loader/PluginInterfaces/BeatSaber/IDisablablePlugin.cs/#L8" class="contribution-link">View Source</a>
  169. </li>
  170. </ul>
  171. </div>
  172. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  173. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  174. </nav>
  175. </div>
  176. </div>
  177. </div>
  178. </div>
  179. <footer>
  180. <div class="grad-bottom"></div>
  181. <div class="footer">
  182. <div class="container">
  183. <span class="pull-right">
  184. <a href="#top">Back to top</a>
  185. </span>
  186. <span>Generated by <strong>DocFX</strong></span>
  187. </div>
  188. </div>
  189. </footer>
  190. </div>
  191. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  192. <script type="text/javascript" src="../styles/docfx.js"></script>
  193. <script type="text/javascript" src="../styles/main.js"></script>
  194. </body>
  195. </html>