猎豆优选

GetScreenImage.h 523B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // GetScreenImage.h
  3. // 截图
  4. //
  5. // Created by jcymac on 2018/4/23.
  6. // Copyright © 2018年 jcymac. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. typedef void(^ResultBlock)(void);
  10. @interface GetScreenImage : UIView
  11. @property(nonatomic,strong)UIImage *screenImage;
  12. /**
  13. 获取单例
  14. @return 一个对象
  15. */
  16. +(instancetype)shareInstance;
  17. /**
  18. 开始监听截图
  19. */
  20. -(void)startListening;
  21. /**
  22. 关闭监听截图
  23. */
  24. -(void)stopListening;
  25. @property(nonatomic,strong)ResultBlock resultBlock;
  26. @end