Adds UIImagePicker documentation.

This commit is contained in:
Krunoslav Zaher 2016-01-10 18:36:43 +01:00
parent ffc976dac9
commit c6526e830a

View File

@ -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 () }
}
}