Back to product page

StateChange method


Called when state changes.

Type

None

Syntax

  • Basic
object.StateChange Owner, OldState
The StateChange(object,Owner,OldState) syntax has these parts:
objectAn expression evaluating to an object of type IwodAppUpdateNotify.
OwnerRequired. A wodAppUpdate object. Reference to wodAppUpdateCom instance that called this notification method.
OldStateRequired. An UpdateStates enumeration, as described in settings. Holds previous state.

Remarks

The settings for OldState are:

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


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.

Platforms

Windows