Class coresignature

Inheritance diagram for com.payments.core.CoreSignature:

Public Member Functions

CoreSignature ()
void clearSignature ()
void upTouch ()
void startTouch (float x, float y)
void moveTouch (float x, float y)
void signatureText ()
void setSignature (String signature)
boolean isReady ()
boolean checkSignature ()
String getSignature ()

Protected Attributes

String signature

Detailed Description

This class is used to hold the signature request object which is send to a server.

Constructor & Destructor Documentation

CoreSignature()

    • com.payments.core.CoreSignature.CoreSignature
    • (
    • )

  • inline

Member Function Documentation

checkSignature()

    • boolean com.payments.core.CoreSignature.checkSignature
    • (
    • )

  • inline

Check if the signature is empty or not.

if(signature.checkSignature){ return true;
}else{ return false;
} 

clearSignature()

    • void com.payments.core.CoreSignature.clearSignature
    • (
    • )

  • inline

Clear signature data

signature.clearSignature();

getSignature()

    • String com.payments.core.CoreSignature.getSignature
    • (
    • )

  • inline

Gets the value of the signature property.

Returns

signature

isReady()

    • boolean com.payments.core.CoreSignature.isReady
    • (
    • )

  • inline

Check if the signature is ready to be sent.

signature.isReady();

moveTouch()

    • void com.payments.core.CoreSignature.moveTouch
    • (
    • float
    • x,

    • float
    • y

    • )

  • inline

Change has happened.The location stored in the x,y values.

signature.moveTouch(x,y);

Parameters

  • x
  • coordinate point

  • y
  • coordinate point

setSignature()

    • void com.payments.core.CoreSignature.setSignature
    • (
    • String
    • signature
    • )

  • inline

Sets the value of signature property.

Parameters

  • signature

signatureText()

    • void com.payments.core.CoreSignature.signatureText
    • (
    • )

  • inline

Converts signature points to encoded string

signature.signatureText();

startTouch()

    • void com.payments.core.CoreSignature.startTouch
    • (
    • float
    • x,

    • float
    • y

    • )

  • inline

Touch has started.The initial starting location stored in the x,y values.

signature.startTouch(x,y);

Parameters

  • x
  • coordinate point

  • y
  • coordinate point

upTouch()

    • void com.payments.core.CoreSignature.upTouch
    • (
    • )

  • inline

Touch has finished.The final release location stored in the x,y values.

signature.upTouch();

Member Data Documentation

signature

    • String com.payments.core.CoreSignature.signature

  • protected