Files
Rajarshee Chatterjee 74808f086e feat: Replace Legacy Media Controls with Nitro-Powered Playback (#1896)
* feat: Replace Legacy Media Controls with Nitro-Powered Playback

* feat: Add TTS Engine Selection

* chore: Remove User-Facing Error Reporting

* refactor: Combine `Tts` and `TtsSession` Imports from `nitro-tts` Module

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-07-24 23:42:17 +05:30

47 lines
1.4 KiB
Swift
Generated

///
/// Func_void_TtsProgress.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///
import NitroModules
/**
* Wraps a Swift `(_ progress: TtsProgress) -> Void` as a class.
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
*/
public final class Func_void_TtsProgress {
public typealias bridge = margelo.nitro.nitrotts.bridge.swift
private let closure: (_ progress: TtsProgress) -> Void
public init(_ closure: @escaping (_ progress: TtsProgress) -> Void) {
self.closure = closure
}
@inline(__always)
public func call(progress: TtsProgress) -> Void {
self.closure(progress)
}
/**
* Casts this instance to a retained unsafe raw pointer.
* This acquires one additional strong reference on the object!
*/
@inline(__always)
public func toUnsafe() -> UnsafeMutableRawPointer {
return Unmanaged.passRetained(self).toOpaque()
}
/**
* Casts an unsafe pointer to a `Func_void_TtsProgress`.
* The pointer has to be a retained opaque `Unmanaged<Func_void_TtsProgress>`.
* This removes one strong reference from the object!
*/
@inline(__always)
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_TtsProgress {
return Unmanaged<Func_void_TtsProgress>.fromOpaque(pointer).takeRetainedValue()
}
}