Recorder


Purpose

An object used for location tracking. Each Recorder object has a unique identifier and manages its own life-cycle. The configuration of an existing recorder can be changed, even after the recorder has been started, and the location services are updated respectively. An instance of the Recorder object can be changed by a different WebView, therefore you should bind to the onStatusChanged observable event to track status changes.

Module

This object belongs to the PRPC Location Recorder product module.

Properties

Name Description Type
identifier A requested identifier for the Recorder object. The identifier must be unique. string
status Status of an instance of the Recorder object, as described in the Status property of the LocationRecorder object. string
configuration An instance of the Configuration object. object

Methods

Name Return type Description
start promise

Starts the recorder.

stop promise

Stops the recorder that has been startes by using the start method.

pause promise

Pauses the recorder that has been started using the start method.

resume promise

Resumes the recorder that has been paused using the pause method.

invalidate promise

Invalidates the recorder. The recorder is no longer accessible from different WebViews.

Related topic

Public API reference
Legal notice | Copyright © 2018 and Confidential to Pegasystems Inc. All rights reserved
PDN | Feedback
Advanced...