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.

65 lines
2.1 KiB

//
// MobSDK+Privacy.h
// MOBFoundation
//
// Created by liyc on 2020/1/21.
// Copyright © 2020 MOB. All rights reserved.
//
#import <MOBFoundation/MobSDK.h>
#import <UIKit/UIKit.h>
#ifndef MobSDK_Privacy_h
#define MobSDK_Privacy_h
@interface MobSDK (Privacy)
/**
MobTech用户隐私协议
@param type (1= url类型, 2= )
@param completion data title=,content=(type=1url,type = 2) error:
*/
+ (void)getPrivacyPolicy:(NSString * _Nullable)type
compeletion:(void (^ _Nullable)(NSDictionary * _Nullable data,NSError * _Nullable error))result DEPRECATED_MSG_ATTRIBUTE("use -[getPrivacyPolicy:language:compeletion:] method instead.");
/**
MobTech用户隐私协议
@param type (1= url类型, 2= )
@param language
@param completion data title=,content=(type=1url,type = 2) error:
*/
+ (void)getPrivacyPolicy:(NSString * _Nullable)type
language:(NSString * _Nullable)language
compeletion:(void (^ _Nullable)(NSDictionary * _Nullable data,NSError * _Nullable error))result;
/**
@param isAgree
*/
+ (void)uploadPrivacyPermissionStatus:(BOOL)isAgree
onResult:(void (^_Nullable)(BOOL success))handler;
/**
@param show YESMobTech部分功能无法使用YES
*/
+ (void)setAllowShowPrivacyWindow:(BOOL)show;
/**
@param backColorb
@param colors
*/
+ (void)setPrivacyBackgroundColor:(UIColor *_Nullable)backColor
operationButtonColor:(NSArray <UIColor *>*_Nullable)colors;
@end
#endif /* MobSDK_Privacy_h */