-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: publish plugin updates (#611)
* fix(camera): set settings again on callbacks (#595) * feat(storage): Add removeOld function (#585) * feat(camera): Return if image was saved to gallery (#599) * fix(camera): saveToGallery for edited images (#602) * docs(camera): Add descriptions to CameraSource (#608) * fix(local-notifications): return schedule on as object (#603) * chore(release): publish [skip ci] - @capacitor/camera@1.1.0 - @capacitor/local-notifications@1.0.6 - @capacitor/storage@1.2.0 Co-authored-by: jcesarmobile <jcesarmobile@gmail.com> Co-authored-by: Ely Lucas <ely@meta-tek.net>
- Loading branch information
1 parent
6139ae7
commit e647914
Showing
22 changed files
with
204 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import UIKit | ||
|
||
class ImageSaver: NSObject { | ||
|
||
var onResult: ((Error?)->Void) = {_ in } | ||
|
||
init(image: UIImage, onResult:@escaping ((Error?)->Void)) { | ||
self.onResult = onResult | ||
super.init() | ||
UIImageWriteToSavedPhotosAlbum(image, self, #selector(saveResult), nil) | ||
} | ||
|
||
@objc func saveResult(_ image: UIImage, didFinishSavingWithError error: Error?, contextInfo: UnsafeRawPointer) { | ||
if let error = error { | ||
onResult(error) | ||
} else { | ||
onResult(nil) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.