Library
Instance Methods | Properties | List of all members
ISODocumentViewController Class Reference
Inheritance diagram for ISODocumentViewController:

Instance Methods

(id) - initWithDocument:
 
(BOOL) - documentComplete
 
(BOOL) - documentEditable
 
(BOOL) - documentSignable
 
(BOOL) - hasRemainingUnsignedSignatureFields
 
(void) - applySignatureFieldOptional:
 
(void) - unapplySignatureField
 
(void) - deleteSignatureField
 
(void) - addPhotoAttachment
 
(void) - addPhotoSignature
 
(void) - addSignatureField
 
(NSNumber *) - signAllSignatureFields
 
(NSNumber *) - signNextSignatureField
 
(void) - cancelSignature
 
(void) - restartSignature
 
(NSNumber *) - completeSignature
 
(NSNumber *) - skipSignature
 
(NSNumber *) - jumpToPreviousSignature
 
(void) - saveDocument
 
(void) - revertDocument
 
(void) - stopDecodingThread
 
(void) - downloadCurrentDocumentOnSuccess:onFailure:
 

Properties

id< ISODocumentViewControllerDelegatedelegate
 
UIScrollView * pagingScrollView
 
BOOL documentMightHaveChanges
 
int completedSignaturesInCurrentSession
 

Method Documentation

- (void) addPhotoAttachment

method to add a photo to the document

- (void) addPhotoSignature

ass a photo signature

- (void) addSignatureField

the method for the button to add a new signature field

- (void) applySignatureFieldOptional: (BOOL)  optional

check is the signature field optional

Parameters
optional
- (void) cancelSignature

the current signature will be cancelt

- (NSNumber *) completeSignature

if a signature is complete this method complete it

Returns
these return the signature field of the next signature field if it exists
- (void) deleteSignatureField

method for delete a signature field

- (BOOL) documentComplete

check is the document complete

Returns
compares and give Yes/No
- (BOOL) documentEditable

check is the pdf-document editable

Returns
boolean yes/no
- (BOOL) documentSignable

check is pdf-document signable

Returns
the answer yes/no
- (void) downloadCurrentDocumentOnSuccess: (void(^)(NSURL*))  onSuccess
onFailure: (void(^)(NSDictionary*))  onFailure 

after the document is saved and the saving was successfull you can download the current document with this method.

Parameters
onSuccess
onFailure
- (BOOL) hasRemainingUnsignedSignatureFields

check the pdf-document has remaining unsigned signature fields

Returns
boolean yes/no
- (NSNumber *) jumpToPreviousSignature

with this method the user can jump to the previous signature. (the sequence of signatures, is the sequence in which they are set).

Returns
these return the signature field of the next signature field if it exists
- (void) restartSignature

the current signatrure will be deleted and the user can siganature again

- (void) revertDocument

after the user change something in the document, the user have the opportunity to save or the revert the document to the status what was before. with this method, the document will not be saved the new status. it will be the last status of the document.

- (void) saveDocument

after the user change something in the document, the user have the opportunity to save the document. with this method the user can save the changes of the document.

- (NSNumber *) signAllSignatureFields

the user have the opportunity to sign in all signature fields (one after the other)

Returns
returns the ID of the first signature field
- (NSNumber *) signNextSignatureField

method to sign the next signature field. to jump from the current to the next signature field

Returns
- (NSNumber *) skipSignature

with this method the user jump to the next signature

Returns
these return the signature field of the next signature field if it exists
- (void) stopDecodingThread

stops the PNG decoding thread. Make sure you call this when you want to free the ISODocumentViewController because the thread retains a reference to objects of this class

- (void) unapplySignatureField

method for unapplied signature fields


The documentation for this class was generated from the following files: