Main > Knowledge Base > 1C:Enterprise documentation > Add-in Development Technology > Example descriptions > 1C:Enterprise add-in example for mobile platform > Methods > 1C:Enterprise documentation > Add-in Development Technology > Example descriptions > 1C:Enterprise add-in example for mobile platform > Methods > 1C:Enterprise documentation > Add-in Development Technology > Example descriptions > 1C:Enterprise add-in example for mobile platform > Methods

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




© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.