MGFaceLicenseHandle.h 803 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // MGLicenseHandle.h
  3. // MGSDKV2Test
  4. //
  5. // Created by 张英堂 on 16/9/7.
  6. // Copyright © 2016年 megvii. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. #import "MGLicenseManager.h"
  11. #import "MGNetAccount.h"
  12. @interface MGFaceLicenseHandle : NSObject
  13. /**
  14. * 获取当前SDK是否授权--- 子类需要重写该方法,通过该类获取的 是否授权无法全部包括使用的SDK
  15. *
  16. * @return 是否授权
  17. */
  18. + (BOOL)getLicense;
  19. + (NSDate *)getLicenseDate;
  20. /**
  21. * 只有当授权时间少于 1天的时候,才会进行授权操作
  22. *
  23. */
  24. + (void)licenseForNetwokrFinish:(void(^)(bool License, NSDate *sdkDate))finish;
  25. /**
  26. 获取 face SDK 是否需要联网授权
  27. @return 是否为联网授权版本
  28. */
  29. + (BOOL)getNeedNetLicense;
  30. @end