HelperAndKeys
class HelperAndKeys
Undocumented
-
Undocumented
Declaration
Swift
static func setUserDefaultsValue(value: Any, forKey key: String)
-
Undocumented
Declaration
Swift
static func getUserDefaultsValue(forKey key: String, withExpectedType expectedType: String) -> Any?
-
Undocumented
Declaration
Swift
static func getPrefFiltreLocation() -> Bool
-
Undocumented
Declaration
Swift
static func setPrefFiltreLocation(filtreLocation: Bool)
-
Undocumented
Declaration
Swift
static func getLocationGranted() -> Bool
-
Undocumented
Declaration
Swift
static func setLocationGranted(locationGranted: Bool)
-
Undocumented
Declaration
Swift
static func showNotification(type: String, title: String, message: String, delay: TimeInterval)
-
Undocumented
Declaration
Swift
static func getImageForTypeCommerce(typeCommerce: String) -> UIImage
-
Undocumented
Declaration
Swift
static func callNumer(phone: String)
-
Undocumented
Declaration
Swift
static func openMapForPlace(placeName: String, latitude: CLLocationDegrees, longitude: CLLocationDegrees)
-
Undocumented
Declaration
Swift
static func setSharingTime(forCommerceId: String)
-
Undocumented
Declaration
Swift
static func getSharingTimer(forCommerceId: String) -> Date?
-
Undocumented
Declaration
Swift
static func getSharingStringDate(objectId: String) -> String
-
Undocumented
Declaration
Swift
static func canShareAgain(objectId: String) -> Bool
-
Undocumented
Declaration
Swift
static func removeCommerce(forCommerceId: String)
-
Undocumented
Declaration
Swift
static func getListOfCategories() -> [String]
-
Has safe area
with notch: 44.0 on iPhone X, XS, XS Max, XR.
without notch: 20.0 on iPhone 8 on iOS 12+.
Declaration
Swift
static var hasSafeArea: Bool { get }
-
Undocumented
Declaration
Swift
static var isPhoneX: Bool { get }
-
Undocumented
Declaration
Swift
static func getCurrentDate(date: Date?) -> String
-
Undocumented
Declaration
Swift
private static func getDateFormat() -> DateFormatter
-
Undocumented
Declaration
Swift
static func sendBugReport(message: String)
-
Undocumented
Declaration
Swift
static func saveStatsInDb(commerce: PFObject, user: PFUser? = nil)