GetInstance
Retrieves the Application instance for the current mobile application.
GetInstance (String)
Return a named Application instance for the current mobile application. Named application instances are intended to support performance tests, where multiple instances of an application are running simultaneously as separate processes on the same computer. This operation is currently only provided for Windows C# applications
ApplicationIdentifier Property
Identifier for the current application. The property must be set before calling StartConnection, RegisterApplication or UnregisterApplication.
RegisterApplication
Creates the registration for this application and starts the connection. This method is equivalent to calling RegisterApplication(0).
RegisterApplication (int timeout)
Creates the registration for this application and starts the connection. An ApplicationTimeoutException is thrown if the method does not succeed within the number of seconds specified by the timeout.
ApplicationCallback Property
Callback for the current application. It is optional (but recommended) to set a callback, so that the application can respond to changes of connection status, registration status and application settings.
StartConnection
Starts the connection for this application. This method is equivalent to calling StartConnection(0), but is a non-blocking call which returns immediately. Use getConnectionStatus or the ApplicationCallback to retrieve the connection status.
StartConnection (int timeout)
Starts the connection for this application. If the connection was previously started, then this operation has no effect. You must set the appropriate ConnectionProperties before calling this operation. An ApplicationTimeoutException is thrown if the method does not succeed within the number of seconds specified by the timeout.
ConnectionStatus Property
This property represents the current status of the mobile application connection, one of the ConnectionStatus class values.
GetConnectionProperties
Retrieves the connection parameters from the application's connection properties instance. You must set connection properties before calling StartConnection, RegisterApplication or UnregisterApplication.
ApplicationSettings Property
Return application settings that have been received from the SAP Mobile Server after application registration and connection.
StopConnection
Stops the connection for this application. This method is equivalent to calling StopConnection(0).
StopConnection (int timeout)
Stop the connection for this application. An ApplicationTimeoutException is thrown if the method does not succeed within the number of seconds specified by the timeout.
UnregisterApplication
Delete the registration for this application, and stop the connection. If no registration was previously created, or a previous registration was already deleted, then this operation has no effect. This method is equivalent to calling UnregisterApplication(0), but is a non-blocking call which returns immediately. You can set the applicationCallback before calling this operation to receive asynchronous notification of registration status changes.
UnregisterApplication(int timeout)
Delete the registration for this application, and stop the connection. If no registration was previously created, or a previous registration was already deleted, then this operation has no effect. You must set the appropriate ConnectionProperties before calling this operation. You can set the ApplicationCallback before calling this operation to receive asynchronous notification of registration status changes.