AppStateMonitor
@objc
public protocol AppStateMonitor
-
Declaration
Swift
var delegate: AppStateMonitorDelegate? { get set } -
Declaration
Swift
var appState: AppState { get } -
Declaration
Swift
func start() -
Declaration
Swift
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
func getBatteryLevel() -> NSNumber? -
Retrieves the current battery state Returns the UIDevice.BatteryState indicating charging status
Declaration
Swift
func getBatteryState() -> BatteryState -
Retrieves whether low power mode is currently enabled Returns true if low power mode is enabled, false otherwise
Declaration
Swift
func isLowPowerModeEnabled() -> Bool -
Retrieves the current network connection type Returns the NetworkConnectionType indicating the current network connection
Declaration
Swift
func getNetworkConnectionType() -> NetworkConnectionType