Comments (4)
Look at my repository for LLSimpleCamera on Swift.
On Friday, 12 February 2016, Kevin Nguy [email protected] wrote:
Does anyone know how to set onError on Swift? I know in Objective-C, you
can do:[self.camera setOnError:^(LLSimpleCamera *camera, NSError *error) {
// Something
}];but on Swift, I don't have access to setOnError. I tried doing:
self.camera.onError = ({(camera : LLSimpleCamera!, error : NSError!) -> Void! in
// Something
})but I would get an error. I just started working with Swift so this might
be a syntax issue. Thanks for the great library and for the help!โ
Reply to this email directly or view it on GitHub
#82.
from llsimplecamera.
Thanks for the help @strawb3rryx7 ! Been learning Swift and so far, so good!
from llsimplecamera.
This is how it can be done on Swift:
self.camera.onError = {(camera, error) -> Void in
// Something
}
from llsimplecamera.
Keep coding mate! ๐๐ผ
from llsimplecamera.
Related Issues (20)
- Default music player sound keep playing while recording video. HOT 3
- version 5.0.0 syntax.
- Shutter HOT 1
- Videos Are Always Mirrored
- Can't play recorded video
- adding basic filters are not working with LLSimple camera HOT 1
- Swift - startRecording not working
- iOS 10+ compatibility
- How to disable shutter sound while capture picture? HOT 1
- flash feture can not work
- To set the maximum video recording time and to get the location of image HOT 1
- Video is too large๏ผvideo similar to wechat ,10s, 2M , and How to change it HOT 1
- how to change video quality in 2M HOT 1
- Bug during Call Iphone
- How to Remove the Camera Layer from LLSimpleCamera? HOT 1
- Need to throw error if there is no enough memory in device for video
- Captured Image Orientation
- How to flip camera during video recording
- ๅพ็ๅ็ผฉ HOT 1
- [AVCaptureSession startRunning] should be called from background thread
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llsimplecamera.