プロジェクト
GitHubで見る
clayallsopp/ShotBlocker
概要
Detecting iOS screenshots ala Snapchat and Facebook Poke
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 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
関連プロジェクトを探す
読み込み中…