项目
在 GitHub 查看
clayallsopp/ShotBlocker
关于
Detecting iOS screenshots ala Snapchat and Facebook Poke
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文ShotBlocker
Detecting iOS screenshots ala Snapchat and Facebook Poke.
Current technique is to poll the user's camera roll and check for new screenshot-esque images; if you would like to add another technique, definitely submit a pull-request!
Usage
[[ShotBlocker sharedManager] detectScreenshotWithImageBlock:^(UIImage *screenshot) {
NSLog(@"Screenshot: %@", screenshot);
}];
// Later on...
[[ShotBlocker sharedManager] stopDetectingScreenshots];
Also available are:
detectScreenshotWithBlock:^()detectScreenshotWithBlock:^() andErrorBlock:^(NSError * error){}detectScreenshotWithImageBlock:^(UIImage *screenshot) andErrorBlock:^(NSError * error){}
The NSError will occur if the user denies your app access to their photos.
Installation
CocoaPods
pod 'ShotBlocker'
#import <ShotBlocker/ShotBlocker.h>
Xcode
- Add ShotBlocker as a git submodule. Here's how to add it as a submodule:
$ cd rootOfYourGitRepo
$ git submodule add https://github.com/clayallsopp/ShotBlocker.git Vendor/ShotBlocker
$ git submodule update --init --recursive
Add
ShotBlocker/ShotBlocker.handShotBlocker/ShotBlocker.mto your project, but don't copy the files (so the location is relative).Add
AssetsLibrary.frameworkto your project
#import "ShotBlocker.h"
Contact
探索相关项目
加载中…