<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword">inline </span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="on-state-or-substate.html">I</a><spanclass="token operator"> : </span><ahref="on-state-or-substate.html">O</a><spanclass="token punctuation">, </span><spanclass="token keyword"></span><ahref="on-state-or-substate.html">O</a><spanclass="token operator"> : </span><spandata-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span><spanclass="token operator">></span><ahref="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="on-state-or-substate.html">O</a><spanclass="token operator">></span><spanclass="token punctuation">.</span><ahref="on-state-or-substate.html"><spanclass="token function">onStateOrSubstate</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">handler<spanclass="token operator">: </span><ahref="-behaviour-with-f-s-m-state-handler/index.html">BehaviourWithFSMStateHandler</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="on-state-or-substate.html">I</a><spanclass="token punctuation">, </span><spanclass="token keyword"></span><ahref="on-state-or-substate.html">O</a><spanclass="token operator">></span></span></span><spanclass="token punctuation">)</span></div><pclass="paragraph">Add NON STRICT <ahref="on-state-or-substate.html">handler</a> to list of available in future <ahref="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a>. Non strict means that for input <spandata-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span> will be used <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/is-instance.html">KClass.isInstance</a> and any inheritor of kClass will pass this requirement</p><h4class="">See also</h4><divclass="table"><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="-behaviour-with-f-s-m-state-handler-holder/index.html"><span>Behaviour</span><wbr></wbr><span>With</span><wbr></wbr><span>FSMState</span><wbr></wbr><span>Handler</span><wbr></wbr><span><span>Holder</span></span></a></div></span></div><div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="-behaviour-context-with-f-s-m/add.html"><span>Behaviour</span><wbr></wbr><span>Context</span><wbr></wbr><span>With</span><wbr></wbr><span>FSM.</span><wbr></wbr><span>add</span></a></div></span></div><div></div></div></div></div></div></div>