mirror of
https://github.com/ReactiveX/RxSwift.git
synced 2024-10-05 06:27:29 +03:00
Adds UIImagePicker
documentation.
This commit is contained in:
parent
ffc976dac9
commit
c6526e830a
@ -18,10 +18,18 @@ import Foundation
|
||||
|
||||
extension UIImagePickerController {
|
||||
|
||||
/**
|
||||
Reactive wrapper for `delegate`.
|
||||
|
||||
For more information take a look at `DelegateProxyType` protocol documentation.
|
||||
*/
|
||||
public var rx_delegate: DelegateProxy {
|
||||
return proxyForObject(RxImagePickerDelegateProxy.self, self)
|
||||
}
|
||||
|
||||
/**
|
||||
Reactive wrapper for `delegate` message.
|
||||
*/
|
||||
public var rx_didFinishPickingMediaWithInfo: Observable<[String : AnyObject]> {
|
||||
return rx_delegate
|
||||
.observe("imagePickerController:didFinishPickingMediaWithInfo:")
|
||||
@ -30,10 +38,13 @@ extension UIImagePickerController {
|
||||
})
|
||||
}
|
||||
|
||||
public var rx_didCancel: Observable<Void> {
|
||||
/**
|
||||
Reactive wrapper for `delegate` message.
|
||||
*/
|
||||
public var rx_didCancel: Observable<()> {
|
||||
return rx_delegate
|
||||
.observe("imagePickerControllerDidCancel:")
|
||||
.map({_ in ()})
|
||||
.map {_ in () }
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user