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.

67 lines
1.0 KiB

//
// JCNet.h
// JCSDKOC
//
// Created by maikireton on 2017/8/24.
// Copyright © 2017年 juphoon. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "JCNetConstants.h"
#import "JCNetCallback.h"
/**
* @defgroup
* @{
*
*/
/**
*
*/
@interface JCNet : NSObject
/**
* JCNet
*/
+ (JCNet*)shared;
/**
*
*
* - @ref JCNetTypeUnavailable :
* - @ref JCNetTypeWifi : Wifi
* - @ref JCNetTypeMobile :
* - @ref JCNetTypeUnknown :
*/
@property (nonatomic, readonly) JCNetType netType;
/**
*
*
* @ref JCNetTypeUnknown
*
* @return
* - true
* - false
*/
@property (nonatomic, readonly) BOOL hasNet;
/**
*
* @param callback
*/
-(void)addCallback:(id<JCNetCallback>)callback;
/**
*
* @param callback
*/
-(void)removeCallback:(id<JCNetCallback>)callback;
@end
/**
* @}
*/