summaryrefslogtreecommitdiffstats
path: root/iphone/doc/ZBarReaderViewDelegate.rst
diff options
context:
space:
mode:
Diffstat (limited to 'iphone/doc/ZBarReaderViewDelegate.rst')
-rw-r--r--iphone/doc/ZBarReaderViewDelegate.rst26
1 files changed, 26 insertions, 0 deletions
diff --git a/iphone/doc/ZBarReaderViewDelegate.rst b/iphone/doc/ZBarReaderViewDelegate.rst
new file mode 100644
index 0000000..e6730cb
--- /dev/null
+++ b/iphone/doc/ZBarReaderViewDelegate.rst
@@ -0,0 +1,26 @@
+ZBarReaderViewDelegate Protocol Reference
+=========================================
+
+.. class:: ZBarReaderViewDelegate
+
+ :Inherits from: :class:`NSObject`
+
+ This protocol, which must be implemented by the `readerDelegate` provided
+ to a :class:`ZBarReaderView`, is used to notify the delegate of new decode
+ results.
+
+
+Instance Methods
+----------------
+
+ .. describe:: - (void) readerView:(ZBarReaderView*)readerView didReadSymbols:(ZBarSymbolSet*)symbols fromImage:(UIImage*)image
+
+ Called to notify the delegate of new decode results.
+
+ Note that the referenced image is a proxy for a video buffer that is
+ asynchronously being converted to a :class:`UIImage`, attempting to
+ access the data will block until the conversion is complete.
+
+ :readerView: :class:`ZBarReaderView` that scanned the barcode(s).
+ :symbols: :class:`ZBarSymbolSet` containing the decode results.
+ :image: :class:`UIImage` from which the barcode(s) were scanned.