INNER CODE UNIT · Swift

stopRecordingAudio

cometchat/cometchat-uikit-flutter · packages/cometchat_uikit/ios/Classes/SwiftCometchatChatUikitPlugin.swift:422

    private func stopRecordingAudio(args: [String: Any], result: @escaping FlutterResult) {
        let path = audioRecorder?.stopRecording(success: true)
        audioRecorder = nil
        result(path)
    }

    // MARK: - Audio Playback
    private func playCustomSound(args: [String: Any], result: @escaping FlutterResult) {
        guard
        let assetPath = args["assetAudioPath"] as? String,
        let key = globalRegistrar?.lookupKey(forAsset: assetPath),
        let path = Bundle.main.path(forResource: key, ofType: nil)
        else {
            result(false)
            return
        }

        do {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…