//
//  YCKDeviceInfo.h
//  YCKSdwan
//
//  Created by 徐家骏 on 2019/8/10.
//  Copyright © 2019 徐家骏. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface YCKDeviceInfo : NSObject

/**
 获取硬件平台名称，叫 device model 或者 machine name
 @return 硬件平台名称，如 iPhone3,1、iPad7,4 等
 */
+ (NSString *)platform;

/**
 获取设备型号名称
 @return 设备型号名称，如 iPhone 7、iPhone X、iPad Pro 10.5-inch 等
 */
+ (NSString *)platformString;

/**
 获取设备型号名称
 @return 设备型号名称，与 platformString 一致，只查询一次然后缓存
 */
+ (NSString *)deviceName;



//这是如果传空为app的版本，如果传名字为framework的版本，如果framework不存在返回nil
+ (NSString*)bundleVersionForFramework:(NSString *)frameName;
+ (NSString*)bundleBuildVersion;

+ (int) cpu_core_number;

//获取运行时内存和cpu占用情况
+ (float) mem_usage;
+ (float) cpu_usage;
+ (float) getCPULoad;

///maybe changed when reinstall system.
+ (NSString *)deviceId;

+ (void)saveKeyChainObject:(id )value forKey:(NSString *)forKey;
+ (id)keyChainObjectForKey:(NSString *)service;

@end

NS_ASSUME_NONNULL_END
