UIDevice

extension UIDevice
  • Returns a Bool whether the device is plugged in. Returns false if not an iOS device.

    Declaration

    Swift

    public var isPluggedIn: Bool { get }