Skip to content

Take photo in the background without showing preview and sound.

Notifications You must be signed in to change notification settings

RungeZhai/SilentCamera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SilentCamera

Take photo in the background without showing preview and sound.

Demo

Usage

There are 2 kinds of implementations.

Implementation 1:

// initialize SilentCamera with a return block

_silentCamera = [[SilentCamera alloc] initWithCaptureReturnBlock:^(UIImage *image) {

    ... // Do whatever you want with the image captured.
    _silentCamera = nil;

}];

[_slientCamera takePhoto];

Implementation 2:

// initialize SilentCamera with a return block

_quietCamera = [[QuietCamera alloc] initWithCamera:kCameraBack captureReturnBlock:^(UIImage *image) {

    ... // Do whatever you want with the image captured.
    _quietCamera = nil;

}];

[_quietCamera takePhoto];

Implementation 2 is absolutely no sound at all.

About

Take photo in the background without showing preview and sound.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published