StateChange Method
      
 

Description

Called when state changes.


Return Type

None  


Syntax

object.StateChange Owner, OldState



The StateChange Method syntax has these parts:

Part Description
object An expression evaluating to an object of type IwodAppUpdateNotify.
Owner Required. A wodAppUpdate object. Reference to wodAppUpdateCom instance that called this notification method.
OldState Required. An UpdateStates enumeration, as described in settings. Holds previous state.

Settings

The settings for OldState are:

Constant Value Description
 StateNotConnected 0 Not connected.
 StateCheckingUpdates 1 Checking for new updates.
 StateDownloadingFile 2 Downloading new updates.
 StateUpdating 3 Replacing updates.

Remarks

NOTE: This method is called only if you implemented IwodAppUpdateNotify interface in your application, and wodAppUp.Notification property has received reference to instance of your implementation.

This notification method is called every time the wodAppUpdate control changes the current operation that it is performing. Even though most of these operations also result in firing other notifications, the user can monitor this notification method to see the reason for an operation's completing unsuccessfully, or can ignore other notifications and take appropriate action depending on the wodAppUpdate's State property value.

Refer also to the here for a list of possible states.