## IDABvrHook Class

Used with the DABehavior class function, Hook. The IDABvrHook object is passed in as an argument and controls the creation of the new behavior.

### IDABvrHook Functions

Notify

####

Notify

IDABvrHook Class

Calls the notifier method of the object whenever the behavior is started or sampled.

bvrHookObj.Notify(
id,
start,
startTime,
globalTime,
localTime,
sampledVal,
currentRunningBvr
)

##### Parameters

id
  A long that distinguishes one instance of a behavior from another.
start
  A boolean that determines if the notifier method is called when the behavior starts or each time it is sampled.
startTime
  A double that is the time the behavior was first run.
globalTime
  A double that is the time the behavior was sampled, in global time.
localTime
  A double that is the time the behavior was sampled, in local time. (If the behavior is sampled when it starts, this value is 0).
sampledValue
  The value of the DABehavior object at the time it was sampled. This value is wrapped as a constant behavior.
currentRunningBvr
  The DABehavior object that is currently running.

##### Return Values

Returns the Behavior object.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.