Public Member Functions | |
abstract boolean | startSession (CommerceListener listener) |
abstract boolean | startSession (CommerceListener listener, String userID, String password, int shiftNumber) |
abstract boolean | resumeSession (CommerceListener listener, String sessionId) |
abstract boolean | addSessionListener (CommerceListener listener) |
abstract boolean | removeSessionListener (CommerceListener listener) |
abstract Set< CommerceListener > | getListeners () |
abstract boolean | endSession () |
The service handle for any communication using the trigger or payment APIs. While multiple Commerce Managers may be created, only one will be able to maintain a session at a given time.
Definition at line 9 of file CommerceManager.java.
|
abstract |
Allows adding new listeners for session events.
listener | A listener for session events. There may be more listeners added, but there must always be at least one registered. |
|
abstract |
Ends a session. This releases the terminal reservation for this application, allowing other applications to open sessions. This sends a stop message to the terminal to exit the terminal application if launched by this app. The internal service may send this on behalf of this Android application if this application crashes or exits without closing the session. This method should be called prior to the release of the final reference to the Commerce Manager. Once the session is ended, references to any registered SessionListeners are removed once the Session End event is properly reported.
|
abstract |
Get the set of currently registered listeners.
|
abstract |
Removes a session listener. The last session listener cannot be removed through this method, as there must always be a listener until the session ends.
listener | A registered listener for the session events. |
|
abstract |
Attempts to resume a session in the case of a Session Closed event or an application crash. If it is not possible to resume, this may return immediately or may send a Session Resume Failed event to the listener.
listener | The first listener for the session events. There may be more listeners added, but there must always be at least one registered. |
sessionId | The id of the session to resume. |
|
abstract |
Starts a session. This reserves the terminal for this application, preventing conflicts with other apps. When the Android app starts a session, the service will keep track of the app, allowing the service to handle cases where the app is terminated before endSession() is called.
listener | The first listener for the session events. There may be more listeners added, but there must always be at least one registered. |
|
abstract |
This document is the confidential property of Verifone, Inc. Any reproduction or distribution of this document, in whole or in part, or the disclosure of any of the information contained herein, without the prior written consent of Verifone, Inc. is prohibited. This document and any supplemental material supplied as part of any review must be returned to Verifone, Inc. upon request. Notice: This document may go through material revisions over time. While the Company will make every effort to keep readers updated as changes occur, care must be taken by the reader to make sure they are reading the latest version. Version numbers appear in the title page and revision history page of this document. All rights reserved. Verifone, the Verifone logo are either trademarks or registered trademarks of Verifone in the United States and/or other countries. All other trademarks or brand names are properties of their respective holders.