You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
1.1 KiB
80 lines
1.1 KiB
1 year ago
|
//
|
||
|
// MOBFApplicationUtils.h
|
||
|
// MOBFoundation
|
||
|
//
|
||
|
// Created by vimfung on 15-1-20.
|
||
|
// Copyright (c) 2015年 MOB. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
/**
|
||
|
* 应用工具类
|
||
|
*/
|
||
|
@interface MOBFApplication : NSObject
|
||
|
|
||
|
/**
|
||
|
* 获取应用名称
|
||
|
*
|
||
|
* @return 应用名称
|
||
|
*/
|
||
|
+ (NSString *)name;
|
||
|
|
||
|
/**
|
||
|
* 获取应用包名
|
||
|
*
|
||
|
* @return 包名
|
||
|
*/
|
||
|
+ (NSString *)bundleId;
|
||
|
|
||
|
/**
|
||
|
* 获取应用编译版本
|
||
|
*
|
||
|
* @return 编译版本
|
||
|
*/
|
||
|
+ (NSString *)buildVersion;
|
||
|
|
||
|
/**
|
||
|
* 获取应用版本号
|
||
|
*
|
||
|
* @return 应用版本号
|
||
|
*/
|
||
|
+ (NSString *)shortVersion;
|
||
|
|
||
|
/**
|
||
|
* 获取应用版本号
|
||
|
*
|
||
|
* @return 版本号
|
||
|
*/
|
||
|
+ (NSString *)version __deprecated_msg("use [buildVersion] method instead");
|
||
|
|
||
|
/**
|
||
|
* 检测是否启用ATS功能
|
||
|
*/
|
||
|
+ (BOOL)enabledATS;
|
||
|
|
||
|
/**
|
||
|
* 获取应用运行经过的时间(单位:毫秒)
|
||
|
*
|
||
|
* @return 经过时间
|
||
|
*/
|
||
|
+ (uint64_t)elapsedTime;
|
||
|
|
||
|
/**
|
||
|
* 判断链接是否能打开
|
||
|
*
|
||
|
* @param url 链接
|
||
|
*
|
||
|
* @return YES 可以打开,NO 不能打开
|
||
|
*/
|
||
|
+ (BOOL)canOpenUrl:(NSURL *)url;
|
||
|
|
||
|
/**
|
||
|
* 打开链接
|
||
|
*
|
||
|
* @param url 链接
|
||
|
*/
|
||
|
+ (void)openUrl:(NSURL *)url;
|
||
|
|
||
|
@end
|