# onStopBeforeDestroy Source: https://www.nianticspatial.com/docs/api/kotlin/com.nianticspatial.nsdk.SessionBase.onStopBeforeDestroy/ onStopBeforeDestroy --- ## Declaration protected open fun onStopBeforeDestroy() #### Summary Stops the native feature, for a session that can be started. Called before onDestroy: NSDK's core aborts the process when it destroys a feature that is still started, as when an app calls close() on a started session without stop(). Stopping a feature that is not started does nothing. ---