LocationTools.AttachLocationChangeHandler

Syntax:

AttachLocationChangeHandler(<Procedure>, <ProviderName>, <MinDistance>, <MinTime>)

Parameters:

<Procedure> (required)

Type: NotifyDescription; String.
The called procedure.
The procedure has to have the following options:
  • ProviderName - the name of the provider, String type
  • LocationData - location data LocationData type,
  • if the notify description is used, additional options can be passed.

<ProviderName> (required)

Type: String.
Contains the provider name.

<MinDistance> (optional)

Type: Number.
Minimum distance from coordinates of the previous location in meters.

<MinTime> (optional)

Type: Number.
Minimum periof of time from the time when the previos location was received. Is specified in seconds.

Description:

Attaches the call to the specified procedure if the location is changed.
The <MinDistance> and <MinTime> options are used to define the periodicity of location updating.
If options are not specified, the events will be generated at maximum periodicity available for this provider.

Availability:

Mobile application (client).

    

1C:Enterprise Developer's Community