Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  Details.swift   Sprache: JAVA

 

/// Delegate for details
public protocol DetailsDelegate: AnyObject {
    /// Called when the details view controller did disappear
    func detailsDidDisappear()
    
    /// Show a chat search in the delegate
    func showChatSearch(forStarred: Bool)
    
    /// Called before the detail view deletes messages
    /// - Parameter objectIDs: Object IDs of messages that will be deleted
    func willDeleteMessages(with objectIDs: [NSManagedObjectID])
    
    /// Called before the detail view will delete all messages in this conversation
    func willDeleteAllMessages()
}

public enum Details {
    
    public enum DisplayStyle {
        case `default`
        case preview
    }

    public struct Action: Hashable {
        public typealias Action = (UIView) -> Void

        public let title: String

        public let imageName: String?

        public let destructive: Bool

        public let disabled: Bool

        public let run: Action

        public init(
            title: String,
            imageName: String? = nil,
            destructive: Bool = false,
            disabled: Bool = false,
            action: @escaping Action
        ) {
            self.title = title
            self.imageName = imageName
            self.destructive = destructive
            self.disabled = disabled
            self.run = action
        }
        
        // Equatable
        public static func == (lhs: Details.Action, rhs: Details.Action) -> Bool {
            lhs.title == rhs.title
                && lhs.imageName == rhs.imageName
                && lhs.destructive == rhs.destructive
        }
        
        // Hashable
        public func hash(into hasher: inout Hasher) {
            hasher.combine(title)
            hasher.combine(imageName)
            hasher.combine(destructive)
        }
    }
    
    public struct BooleanAction: Hashable {
        public typealias BoolProvider = () -> Bool
        public typealias Action = (Bool) -> Void

        public let title: String
        public let currentBool: BoolProvider
        
        public let destructive: Bool
        public let disabled: Bool
        
        public let run: Action
        
        public init(
            title: String,
            destructive: Bool = false,
            disabled: Bool = false,
            boolProvider: @escaping BoolProvider,
            action: @escaping Action
        ) {
            self.title = title
            self.destructive = destructive
            self.disabled = disabled
            self.currentBool = boolProvider
            self.run = action
        }
        
        // Equatable
        public static func == (lhs: Details.BooleanAction, rhs: Details.BooleanAction) -> Bool {
            lhs.title == rhs.title
                && lhs.destructive == rhs.destructive
        }
        
        // Hashable
        public func hash(into hasher: inout Hasher) {
            hasher.combine(title)
            hasher.combine(destructive)
        }
    }
}

Messung
CHZG
839310092

¤ Dauer der Verarbeitung: 0.8 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1104852
#Domains=417173