Latest1.0.66
Homepagehttps://github.com/zhang382847657/arenaDeviceSDK
Platformsios 8.0
Authors

arenaDeviceSDK

iOS设备相关的SDK

  • 获取设备的UUID
  • 获取App当前版本号
  • 获取App名字
  • 扫描二维码/条形码

支持CocoaPods

pod 'ArenaDeviceSDK'

注意:

  1. 如果使用到了扫一扫功能,请在项目的Info.plist增加 Privacy - Camera Usage Description 访问您的相机
  2. 如果使用到了拍照功能,请在项目的Info.plist增加 Privacy - Photo Library Additions Usage Description 需要为您添加图片、Privacy - Photo Library Usage Description 想要访问您的相册、Privacy - Camera Usage Description 访问您的相机

获取UUID

let uuid:String? = Device.uuid()

App当前版本号

let appVersion:String? = Device.appVersion()

获取App名字

let appName:String? = Device.appName()

扫描二维码/条形码

以模态视图弹出,自带关闭按钮可关闭当前扫描页面

Device.scanQRCode()

拍照

弹出菜单框,可选择拍照或从相册中选取

该方法返回图片在本地磁盘中的路径filePath,base64根据参数设置情况选择性返回

//Parameter
// - returnOrigianl 是否返回原图
// - maxSize        返回图片的最大大小(单位kb)  默认500kb
// - returnType     返回数据类型  1:base64

Device.takePhoto(["returnOrigianl":false,
                    ["maxSize":500],
                    ["returnType":1]])

Latest podspec

{
    "name": "ArenaDeviceSDK",
    "version": "1.0.66",
    "summary": "Arenau8bbeu5907u76f8u5173u7684SDK",
    "description": "Arenau8bbeu5907u76f8u5173u7684SDKn-u83b7u53d6u8bbeu5907UUIDn-u83b7u53d6u7cfbu7edfu5f53u524du7248u672cn-u83b7u53d6APPu540du5b57n-u83b7u53d6APPu5f53u524du7248u672cn-u83b7u53d6APP Buildu7248u672cn-u626bu4e8cu7ef4u7801/u6761u5f62u7801n-u62cdu7167",
    "homepage": "https://github.com/zhang382847657/arenaDeviceSDK",
    "authors": {
        "u4e3au6bdbu54e9": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/zhang382847657/arenaDeviceSDK.git",
        "tag": "1.0.66"
    },
    "source_files": [
        "ArenaDeviceSDK",
        "ArenaDeviceSDK/**/*.{h,swift}"
    ],
    "public_header_files": "ArenaDeviceSDK/ArenaDeviceSDK.h",
    "resources": [
        "*.plist",
        "ArenaDeviceSDK/*.bundle"
    ]
}

Pin It on Pinterest

Share This