Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  SafeRestorePresenting.swift   Sprache: JAVA

 

import Foundation
import MBProgressHUD
import UIKit

// MARK: - SafeRestorePresenting

/// The outcome of a Safe restore, as far as the screen that started it is concerned.
///
/// `OnboardingCoordinator` drives the restore and reports back through this, so it does not have to reach
/// into `RestoreSafeViewController`'s view for the progress indicator. That also keeps the restore
/// orchestration testable: `RestoreSafeViewController` comes from the `CreateID` storyboard.
@MainActor
protocol SafeRestorePresenting: AnyObject {

    /// Hides the progress indicator and re-enables interaction.
    func safeRestoreDidFinish()

    /// Reports the failure to the user. Also hides the progress indicator.
    func safeRestoreDidFail(with error: Error)
}

// MARK: - RestoreSafeViewController + SafeRestorePresenting

extension RestoreSafeViewController: SafeRestorePresenting {

    func safeRestoreDidFinish() {
        MBProgressHUD.hide(for: view, animated: true)
        view.isUserInteractionEnabled = true
    }

    func safeRestoreDidFail(with error: Error) {
        // `showAlert(for:)` already hides the progress indicator and re-enables interaction.
        showAlert(for: error)
    }
}

Messung
CHZG
99959997

¤ Dauer der Verarbeitung: 0.4 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=1104842
#Domains=499168