Latest 1.0.2
Homepage https://github.com/weixhe/CVDevice
License MIT
Platforms ios 8.0, requires ARC
Dependencies KeychainAccess
Authors

支持

iOS系统:8.0以上,swift:4.2以上

使用 Pod

pod ‘CVDevice’, ‘~> 1.0.0’

用法

  1. 获取device属性
    let text = """
    设备型号:(CVDevice.getDeviceModel())
    设备名称:(CVDevice.getDeviceName())
    IP地址:(CVDevice.getIPAddresses())
    WIFI名:(CVDevice.getWifiName())
    MAC地址:(CVDevice.getWifiMacAddress())
    系统版本号:(CVDevice.sysVersion)
    系统名称:(CVDevice.sysName)
    唯一标识:(CVDevice.getUUID())
    """
  2. 获取电池相关内容
    这里必须开启监听。。。

Latest podspec

{
    "name": "CVDevice",
    "version": "1.0.2",
    "summary": "Device",
    "description": "Something for device, like: device name, IP Address, wifi name, battery monitor etc.",
    "homepage": "https://github.com/weixhe/CVDevice",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "weixhe": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/weixhe/CVDevice.git",
        "tag": "1.0.2"
    },
    "source_files": "CVDevice/CVDevice/**/*.{swift}",
    "requires_arc": true,
    "dependencies": {
        "KeychainAccess": []
    }
}

Pin It on Pinterest

Share This