Music_Player3/Pods/JXSegmentedView/Sources/Indicator/JXSegmentedIndicatorProtocol.swift
2024-05-14 15:04:59 +08:00

42 lines
2.0 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.

//
// JXSegmentedIndicatorProtocol.swift
// JXSegmentedView
//
// Created by jiaxin on 2018/12/26.
// Copyright © 2018 jiaxin. All rights reserved.
//
import Foundation
import UIKit
public protocol JXSegmentedIndicatorProtocol: UIView {
/// indicatorframecellJXSegmentedTitleDataSourcedisTitleMaskEnabled使
/// indicatorindicatorisIndicatorConvertToItemFrameEnabledtrue
/// indicatorisIndicatorConvertToItemFrameEnabledtrueisIndicatorConvertToItemFrameEnabledtrueindicator
var isIndicatorConvertToItemFrameEnabled: Bool { get }
/// index
/// param selectedIndex index
/// param selectedCellFrame cellFrame
/// param contentSize collectionViewcontentSize
/// - Parameter model: model description
func refreshIndicatorState(model: JXSegmentedIndicatorSelectedParams)
/// contentScrollViewUI
/// param selectedIndex index
/// param leftIndex cellcellindex
/// param leftCellFrame cellcellframe
/// param rightIndex cellcellindex
/// param rightCellFrame cellcellframe
/// param percent
/// - Parameter model: model description
func contentScrollViewDidScroll(model: JXSegmentedIndicatorTransitionParams)
/// item
/// param selectedIndex index
/// param selectedCellFrame cellFrame
/// param selectedType
/// - Parameter model: model description
func selectItem(model: JXSegmentedIndicatorSelectedParams)
}