public method IO2GTableManagerListener.onStatusChanged
Brief
Processes notifications about the table manager status changes.
| Declaration | ||||
|
||||
| Parameters | |
status |
A new status of the table manager. During the process of tables loading, the value of this parameter changes.
For the list of the possible parameter values, refer to the
|
tableManager |
An instance of the table manager. The instance can be obtained by calling the
|
Details
In order to process notifications about the table manager status changes, you must create a class implementing the
IO2GTableManagerListener interface and pass an instance of this class to the
O2GSession.useTableManager method.
mSession.useTableManager(O2GTableManagerMode.YES, managerListener);
For the method implementation details, see the example below.
Example
Process notifications about the table manager status changes [hide]
/// <summary>
/// Status change event handler
/// </summary>
/// <param name="status"></param>
/// <param name="tableManager"></param>
/// <remarks>All this events received in the one fxcore2 thread</remarks>
public void onStatusChanged(O2GTableManagerStatus status, O2GTableManager tableManager)
{
lock (mInitializedTableManagers)
{
int hashCode = GetTableManagerHashCode(tableManager);
mInitializedTableManagers[hashCode] = status;
}
mEventWaitHandler.Set();
System.Threading.Thread.Sleep(50); //wait while all waiting threads resumed at least once
mEventWaitHandler.Reset();
}
Declared in IO2GTableManagerListener