KLCommonUtils
@objc
class KLCommonUtils : NSObject
Undocumented
-
Undocumented
Declaration
Swift
static var branchObject: BranchUniversalObject?
-
Undocumented
Declaration
Swift
static var linkProperties: BranchLinkProperties?
-
Undocumented
Declaration
Swift
let containerView: UIView
-
Undocumented
Declaration
Swift
static func secondsToDurationText(milliSeconds: Int) -> String
-
Undocumented
Declaration
Swift
static func secondsToTimestamp(milliSeconds: Int) -> String
-
Undocumented
Declaration
Swift
static func setSystemVolume(volume: Float)
-
Undocumented
Declaration
Swift
class func getSchemeFor(key: String) -> String
-
Undocumented
Declaration
Swift
class func getBranchUniversalObject() -> BranchUniversalObject
-
Undocumented
Declaration
Swift
class func getBranchLinkProperties() -> BranchLinkProperties
-
opens the app update page and user can update the app
Declaration
Swift
class func showAppUpdatePageOn(viewController: UIViewController)
Parameters
viewController
view controller on which it store will be displayed
-
detect the iphone based on the screen sizes
Declaration
Swift
class func iPhoneType() -> ScreenType
Return Value
enum with the iphone device type
-
Undocumented
Declaration
Swift
class func convertStringToEnglishNumber(numberStr: String) -> String
-
Undocumented
Declaration
Swift
class func getHashInDoubleFor(inputString: String) -> Int64
-
returns the user language selected for e.g En for english
Declaration
Swift
@objc class func getUserLocale() -> String
Return Value
-
gets the OS version from the system
Declaration
Swift
@objc class func getOSVersion() -> String
Return Value
OS version
-
Undocumented
Declaration
Swift
class func getAppVersion() -> String
-
Undocumented
Declaration
Swift
class func getBuildNumber() -> String
-
Undocumented
Declaration
Swift
class func closeLiveBroadcastFromRecorededBroadcast()
-
Undocumented
Declaration
Swift
class func isRecordedBroadcastAtTop() -> (Bool, SWRecordedBroadcastViewController?)
-
Undocumented
Declaration
Swift
class func checkIfrecordedControllerIsParentFor(viewController: UIViewController) -> (Bool, SWRecordedBroadcastViewController?)
-
checks if the liveroom is at the top also checks if the any viewcontroller is at top and is being presented over liveroom
Declaration
Swift
class func isLiveroomAtTop() -> (Bool, LiveRoomViewController?)
Return Value
-
Undocumented
Declaration
Swift
class func checkIfLiveControllerIsParentFor(viewController: UIViewController) -> (Bool, LiveRoomViewController?)
-
Warning: this function is created just to be used for objective c code for swift please use KLCommonUtils.isLiveroomAtTop()
Declaration
Swift
@objc class func returnLiveRoomControllerIfPresent() -> LiveRoomViewController?
Return Value
<#return value description#>
-
Undocumented
Declaration
Swift
class func hapticEffect()
-
Undocumented
Declaration
Swift
class func getDeviceModelString() -> String