This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
135 additions
and 23 deletions.
| @@ -0,0 +1,44 @@ | ||
| // | ||
| // ShowCliqzPageSetting.swift | ||
| // Client | ||
| // | ||
| // Created by Mahmoud Adam on 3/15/18. | ||
| // Copyright © 2018 Cliqz. All rights reserved. | ||
| // | ||
| import UIKit | ||
|
|
||
| class ShowCliqzPageSetting: Setting { | ||
|
|
||
| override var accessoryType: UITableViewCellAccessoryType { return .disclosureIndicator } | ||
|
|
||
| override var title: NSAttributedString? { | ||
| return NSAttributedString(string: getTitle(), attributes: [NSForegroundColorAttributeName: SettingsUX.TableViewRowTextColor]) | ||
| } | ||
|
|
||
| override func onClick(_ navigationController: UINavigationController?) { | ||
| setUpAndPushSettingsContentViewController(navigationController) | ||
|
|
||
| // TODO: Telemetry | ||
| /* | ||
| // Cliqz: log telemetry signal | ||
| let contactSignal = TelemetryLogEventType.Settings("main", "click", getViewName(), nil, nil) | ||
| TelemetryLogger.sharedInstance.logEvent(contactSignal) | ||
| */ | ||
| } | ||
|
|
||
| override var url: URL? { | ||
| if let languageCode = Locale.current.regionCode, languageCode == "de"{ | ||
| return URL(string: "https://cliqz.com/\(getPageName())") | ||
| } | ||
| return URL(string: "https://cliqz.com/en/\(getPageName())") | ||
| } | ||
|
|
||
| func getTitle() -> String { | ||
| return "" | ||
| } | ||
|
|
||
| func getPageName() -> String { | ||
| return "" | ||
| } | ||
| } |