酷店

ALPAppShare.h 771B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // ALPAppShare.h
  3. // AlibcLinkPartnerSDK
  4. //
  5. // Created by czp on 17/3/9.
  6. // Copyright © 2017年 czp. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. // type定义
  10. #define ALIBC_APPSHARE_TYPE_ID @"id"
  11. #define ALIBC_APPSHARE_TYPE_RED @"red"
  12. #define ALIBC_APPSHARE_TYPE_DEEP @"deep"
  13. @interface ALPAppShare : NSObject
  14. /**
  15. * 写入共享的信息
  16. * @info 具体信息(info 中内容必须是可序列化类型,参考NSKeyedArchiver)
  17. * @type 类型
  18. *
  19. */
  20. + (void)writeInfo:(NSDictionary*)info byType:(NSString*)type;
  21. /**
  22. * 删除共享的信息
  23. * @type 类型
  24. */
  25. + (void)removeInfoByType:(NSString*)type;
  26. /**
  27. * 读取共享信息
  28. * @type 类型
  29. * @return 具体信息
  30. */
  31. + (NSDictionary*)readInfoByType:(NSString*)type;
  32. @end