Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  DoNotDisturbViewController+Cells.swift   Sprache: JAVA

 

extension DoNotDisturbViewController {
    
    final class ActiveDNDInfoCell: ThemedCodeTableViewCell, Reusable {
        override func configureCell() {
            super.configureCell()
            
            selectionStyle = .none
            separatorInset = .zero
        }
    }
    
    final class TurnOffDNDButtonCell: ThemedCodeTableViewCell, Reusable {
        override func configureCell() {
            super.configureCell()
            
            accessibilityTraits.insert(.button)
            textLabel?.textAlignment = .center
            textLabel?.textColor = .systemRed
        }
    }
    
    final class PeriodButtonCell: ThemedCodeTableViewCell, Reusable {
        override func configureCell() {
            super.configureCell()
            
            textLabel?.textColor = .label
            
            accessibilityTraits.insert(.button)
        }
    }
    
    final class NotifyWhenMentionedSettingCell: ThemedCodeTableViewCell, Reusable {
        /// Set initial state
        var isOn: Bool {
            set {
                switchControl.isOn = newValue
            }
            get {
                switchControl.isOn
            }
        }
        
        /// Called whenever the switch changes values
        var valueDidChange: ((Bool) -> Void)?
        
        private let switchControl = UISwitch()
        
        override func configureCell() {
            super.configureCell()
            
            selectionStyle = .none
            accessoryView = switchControl
            
            switchControl.addTarget(self, action: #selector(switchDidChange(sender:)), for: .touchUpInside)
        }
        
        override func prepareForReuse() {
            super.prepareForReuse()
            
            valueDidChange = nil
        }
        
        @objc private func switchDidChange(sender: UISwitch) {
            valueDidChange?(sender.isOn)
        }
    }
    
    final class NotificationPlaySoundSettingCell: ThemedCodeTableViewCell, Reusable {
        /// Set initial state
        var isOn: Bool {
            set {
                switchControl.isOn = newValue
            }
            get {
                switchControl.isOn
            }
        }
        
        /// Called whenever the switch changes values
        var valueDidChange: ((Bool) -> Void)?
        
        private let switchControl = UISwitch()
        
        override func configureCell() {
            super.configureCell()
            
            selectionStyle = .none
            accessoryView = switchControl
            
            switchControl.addTarget(self, action: #selector(switchDidChange(sender:)), for: .touchUpInside)
        }
        
        override func prepareForReuse() {
            super.prepareForReuse()
            
            valueDidChange = nil
        }
        
        @objc private func switchDidChange(sender: UISwitch) {
            valueDidChange?(sender.isOn)
        }
    }
}

Messung
CHZG
829610092

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-04) ¤

*© 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=1104845
#Domains=499263