ServiceBattery
@available(swift 4.0)
@available(iOS 10.0, tvOS 10.0, watchOS 3.0, macOS 10.12, *)
open class ServiceBattery : Service
BLE Battery Service
The Battery Service exposes the state of a battery within a device.
-
Service Name
Declaration
Swift
public static var name: String { get }
-
Service UUID
Declaration
Swift
public static var uuidString: String { get }
-
Service Uniform Identifier
Declaration
Swift
public static var uniformIdentifier: String { get }
-
Creates Battery Service
Declaration
Swift
public init()