java.lang.Object | |
↳ | com.samsung.android.knox.mpos.MPOSPolicyCallback |
This callback class gets results for the showConfirmView(Activity, String, MPOSPayInfo, byte[], MPOSPolicyCallback)
API.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This callback is invoked when the operation fails.
| |||||||||||
This callback is invoked when the operation is a success.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This callback is invoked when the operation fails.
error | An MPOSError instance.
|
---|
Used to get MPOSError over callback.
MPOSPolicyCallback cb = new MPOSPolicyCallback() { public void onSuccess(MPOSResult mposResult) { } public void onFailure(MPOSError mposError) { int errorCode = mposError.getError(); } }; |
This callback is invoked when the operation is a success.
result | An MPOSResult instance.
|
---|
Used to get MPOSResult over callback.
MPOSPolicyCallback cb = new MPOSPolicyCallback() { public void onSuccess(MPOSResult mposResult) { int errorCode = mposResult.getErrorCode(); byte[] firstData = mposResult.getSecureObject(); } public void onFailure(MPOSError mposError) { } }; |