FloatChatStore.swift 519 B

1234567891011121314151617181920212223
  1. //
  2. // FloatChatState.swift
  3. // TUIRoomKit
  4. //
  5. // Created by CY zhao on 2024/5/10.
  6. // Copyright © 2024 Tencent. All rights reserved.
  7. //
  8. import Foundation
  9. import RTCRoomEngine
  10. #if USE_OPENCOMBINE
  11. import OpenCombine
  12. #else
  13. import Combine
  14. #endif
  15. protocol FloatChatStoreProvider {
  16. func dispatch(action: Action)
  17. func select<Value: Equatable>(_ selector: Selector<FloatChatState, Value>) -> AnyPublisher<Value, Never>
  18. func selectCurrent<Value>(_ selector: Selector<FloatChatState, Value>) -> Value
  19. }