ReadViewSDK/Sources/RDEpubReaderView/EPUBUI/RDEPUBReaderToolViewProtocols.swift
2026-07-13 13:01:14 +09:00

76 lines
2.7 KiB
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import UIKit
/// 宿
/// `RDEPUBReaderTopToolView`
/// `RDEPUBReaderDependencies.makeTopToolView`
public protocol RDEPUBReaderTopToolViewProtocol: AnyObject {
/// /
var onBack: (() -> Void)? { get set }
///
var onSearch: (() -> Void)? { get set }
///
var onToggleBookmark: (() -> Void)? { get set }
///
func apply(theme: RDEPUBReaderTheme)
///
func setTitle(_ title: String?)
///
func setBookmarkEnabled(_ isEnabled: Bool)
///
func setBookmarkSelected(_ isSelected: Bool)
}
/// 宿 `RDEPUBReaderBottomToolView`
/// `RDEPUBReaderDependencies.makeBottomToolView`
public protocol RDEPUBReaderBottomToolViewProtocol: AnyObject {
///
var onShowTableOfContents: (() -> Void)? { get set }
///
var onShowBookmarks: (() -> Void)? { get set }
/// 线 /
var onShowHighlights: (() -> Void)? { get set }
/// /
///
///
@available(*, deprecated, message: "Use the text selection menu to create annotations.")
var onAddHighlight: (() -> Void)? { get set }
///
var onShowSettings: (() -> Void)? { get set }
///
func apply(theme: RDEPUBReaderTheme)
///
func updateVisibility(showsTableOfContents: Bool, allowsHighlights: Bool, showsSettingsPanel: Bool)
///
func setBookmarksEnabled(_ isEnabled: Bool)
///
///
///
@available(*, deprecated, message: "Use the text selection menu to create annotations.")
func setAddHighlightEnabled(_ isEnabled: Bool)
///
func setHighlightsEnabled(_ isEnabled: Bool)
}
/// UIView
public typealias RDEPUBReaderTopToolViewProviding = UIView & RDEPUBReaderTopToolViewProtocol
/// UIView
public typealias RDEPUBReaderBottomToolViewProviding = UIView & RDEPUBReaderBottomToolViewProtocol