DefaultAppStateMonitor
@objcMembers
public class DefaultAppStateMonitor : AppStateMonitor
-
Declaration
Swift
public weak var delegate: AppStateMonitorDelegate? -
Declaration
Swift
public private(set) var appState: AppState { get set } -
Declaration
Swift
public func start() -
Declaration
Swift
public func stop()
-
Retrieves the current battery level as a percentage (0.0 to 1.0) Returns nil if battery monitoring is not available or disabled
Declaration
Swift
public func getBatteryLevel() -> NSNumber? -
Retrieves the current battery state Returns the UIDevice.BatteryState indicating charging status
Declaration
Swift
public func getBatteryState() -> BatteryState -
Retrieves whether low power mode is currently enabled Returns true if low power mode is enabled, false otherwise
Declaration
Swift
public func isLowPowerModeEnabled() -> Bool
-
Retrieves the current network connection type Returns the NetworkConnectionType indicating the current network connection
Declaration
Swift
public func getNetworkConnectionType() -> NetworkConnectionType