Files
2023-04-10 18:48:16 +08:00

80 lines
1.1 KiB
Objective-C
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// 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