JGInforCollectionAuth.h 776 B

123456789101112131415161718192021222324252627
  1. //
  2. // JGInforCollectionAuth.h
  3. // JCore
  4. //
  5. // Created by 豆瓣 on 2021/10/27.
  6. // Copyright © 2021 jiguang. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /// 合规接口,是否授权极光采集一定的设备信息
  11. @interface JGInforCollectionAuthItems : NSObject
  12. /// 是否授权,默认YES
  13. @property(nonatomic,assign)BOOL isAuth;
  14. @end
  15. @interface JGInforCollectionAuth : NSObject
  16. /// 设备信息采集授权接口(合规接口)
  17. /// 请务必在调用初始化、功能性接口前调用此接口进行合规授权
  18. /// @param authBlock auth:YES 则极光认为您同意极光采集一定的设备信息
  19. +(void)JCollectionAuth:(void(^_Nullable)(JGInforCollectionAuthItems *authInfo))authBlock;
  20. @end
  21. NS_ASSUME_NONNULL_END