ReVue KITSwift reference Guides

Instance Method

destroy(_:)

銷毀 SDK(離開房間 + 清除 delegates + 停止 core loop + 銷毀 C 實例), 再依 options 刪除 SDK 寫到硬碟的資料

@MainActor func destroy(_ options: DestroyOptions = .default) async

Discussion

刪除失敗只寫 log、不丟錯。預設 .default 什麼都不刪。

Frame crypto is removed automatically, so there is no need to call clearFrameCryptor() first. Install it again after the next initialize. Every FrameCryptor the SDK holds, including the ones replaced or removed earlier, is released once the media threads have stopped. A userData passed to setFrameCrypto(encrypt:decrypt:getMaxSize:userData:) is owned by the App: release it, and any replaced one, only after this method returns.