signoAPI iOS – STSignatureCaptureDelegate class

The STSignatureCaptureDelegate class contains methods that are called when certain events from the STSignatureCaptureViewController class take place. The class is part of libSignoPDFSigner as well as of libSignoSignatureCapture.

@protocol STSignatureCaptureDelegate

Usage:

@interface ViewController : UIViewController<STSignatureCaptureDelegate>

capturingCancelled method

This method is called if the signature capture process has been aborted by the user.

-(void)capturingCancelled

Parameter

Description

-

-

Return value

Description

-

-

Usage:

-(void)capturingCancelled
{
    // event handling
}

capturingConfirmed: method

This method is called if the signature capture process has been confirmed by the user.

-(void)capturingConfirmed:(int)numberOfPoints

Parameter

Description

(int)numberOfPoints

Number of points captured.

Return value

Description

-

-

Usage:

-(void)capturingConfirmed:(int)numberOfPoints
{
    // event handling
}

notifyLicenceStatus: method

This method is called to share the result of the licence validation. An app can in this case ask the user to enter a licence key, for example.

-(void)notifyLicenceStatus:(LicenceError)licenceError

Parameter

Description

(LicenceError) licenceError

A property that contains a value of the enum Error defined with NS_ENUM. See the licence error table in chapter .

Return value

Description

-

-

Usage:

-(void)notifyLicenceStatus:(LicenceError)licenceError
{
    if (licenceError != No_Error)
    {
        // software is not licensed, prompt dialog for entering a key
    }
}