Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Threema/Threema/SharedUI/Navigation/   (Social Medium ©)  Datei vom 26.9.2026 mit Größe 1 kB image not shown  

Quelle  ShareActivityRouter.swift   Sprache: JAVA

 

import UIKit

protocol ShareActivityRouterProtocol: AnyObject {
    var rootViewController: UIViewController { get }
    
    func present(items: [Any], sourceView: UIView?)
}

extension ShareActivityRouterProtocol {
    /// Presents a share activity with the given items from the given source view
    /// - Parameters:
    ///   - items: Items to be forwarded to `UIActivityViewController`
    ///   - sourceView: `UIView` acting as popover source
    func present(items: [Any], sourceView: UIView?) {
        let activityViewController = UIActivityViewController(
            activityItems: items,
            applicationActivities: nil
        )
        activityViewController.popoverPresentationController?.sourceView = sourceView
        rootViewController.present(activityViewController, animated: true)
    }
}

final class ShareActivityRouter: ShareActivityRouterProtocol {
    let rootViewController: UIViewController
    
    init(rootViewController: UIViewController) {
        self.rootViewController = rootViewController
    }
}

Messung
CHZG
839610093

¤ 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.