43 lines
1.0 KiB
Objective-C
43 lines
1.0 KiB
Objective-C
|
|
|
|
// Created by wuwei on 14/6/11.
|
|
// Copyright (c) 2014年 YY.inc. All rights reserved.
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface YYUtility : NSObject
|
|
|
|
@end
|
|
|
|
|
|
@interface YYUtility (App)
|
|
|
|
+ (NSString *)appVersion;
|
|
+ (NSString *)getLanguage;
|
|
+ (NSString *)appName;
|
|
+ (NSString *)getAppSource;
|
|
|
|
@end
|
|
|
|
|
|
@interface YYUtility (Carrier)
|
|
|
|
+ (NSString *)getMobileCountryCode DEPRECATED_MSG_ATTRIBUTE("CoreTelephony API deprecated, always returns empty string");
|
|
+ (NSInteger)carrierIdentifier DEPRECATED_MSG_ATTRIBUTE("CoreTelephony API deprecated, always returns CarrierIdentifier_Unknown");
|
|
|
|
@end
|
|
|
|
|
|
@interface YYUtility (Device)
|
|
|
|
+ (NSString *)deviceUniqueIdentification;
|
|
+ (NSString *)modelType;
|
|
+ (NSString *)systemVersion;
|
|
+ (NSString *)identifierForVendor NS_AVAILABLE_IOS(6_0);
|
|
+ (NSInteger)networkStatus;
|
|
+ (void)checkCameraAvailable:(void (^)(void))available denied:(void(^)(void))denied restriction:(void(^)(void))restriction;
|
|
+ (void)checkAssetsLibrayAvailable:(void (^)(void))available denied:(void(^)(void))denied restriction:(void(^)(void))restriction;
|
|
|
|
@end
|