Methods

Enable

Description:

Enables the add-in object, starts a pedometer, and starts the tracking of movement type using accelerometers.
Every time the step count changes, the add-in generates a 1C:Enterprise event with "StepCounter", "OnChange", and "_" parameters.

Syntax:

Enable()

Disable

Description:

Disables the add-in object, resets the step count, and stops the tracking of movement type using accelerometers.

Syntax:

Disable()

GetStepCount

Description: Returns the step count accumulated since the call of the Enable() mentod.

Syntax:

GetStepCount()

Type: Integer.

GetMovementType

Description:

Returns the movement type index, one of the following:

0 - undefined

1 - no movement

2 - walk

3 - run

4 - car

5 - bike

Syntax:

GetMovementType()

Type: Integer.

GetDeviceOrientation

Description: Returns the angular orientation of the device in the earth-fixed coordinate system, in radians.

Syntax:

GetDeviceOrientation(<Plane>) 

Parameters:

Plane - Cartesian plane whose data is requested (0 - XOY plane, 1 - XOZ plane, 2 - YOZ plane).

Type: Real.

ShowDeviceOrientation

Description: Shows a message with angular orientations of the device in the earth-fixed coordinate system, in radians.

Syntax:

ShowDeviceOrientation() 

Next page: Events

Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.