Blame view

HHMedicSDK/AlicloudUtils.framework/Headers/EMASBeaconService.h 1.3 KB
chengyanfang authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
//
//  EMASBeaconService.h
//  AlicloudBeacon
//
//  Created by junmo on 2017/7/6.
//  Copyright © 2017年 junmo. All rights reserved.
//

#ifndef EMASBeaconService_h
#define EMASBeaconService_h

@interface EMASBeaconConfiguration : NSObject

- (instancetype)initWithData:(NSData *)data;
- (id)getConfigureItemByKey:(NSString *)key;

@end

typedef void (^AlicloudBeaconCallbackHandler)(BOOL res, NSError *error);

@interface EMASBeaconService : NSObject

- (instancetype)initWithAppKey:(NSString *)appKey
                     appSecret:(NSString *)appSecret
                    SDKVersion:(NSString *)SDKVersion
                         SDKID:(NSString *)SDKID;

- (instancetype)initWithAppKey:(NSString *)appKey
                     appSecret:(NSString *)appSecret
                    SDKVersion:(NSString *)SDKVersion
                         SDKID:(NSString *)SDKID
                     extension:(NSDictionary *)extension;

- (void)enableLog:(BOOL)enabled;
- (BOOL)isLogEnabled;

//- (void)getBeaconConfigByKey:(NSString *)key
//           completionHandler:(void(^)(EMASBeaconConfiguration *configuration, NSError *error))completionHandler;

- (void)getBeaconConfigStringByKey:(NSString *)key
           completionHandler:(void(^)(NSString *result, NSError *error))completionHandler;

@end

#endif /* EMASBeaconService_h */