Module: Toybox.PersistedLocations

Overview

Persisted locations allows the saving of a location (waypoint) to a device's location list. This feature is only available on devices that support waypoints.

See Also:

Since:

API Level 1.0.2

App Types:

  • Watch App

  • Audio Content Provider

Supported Devices:

Requires Permission:

  • PersistedLocations

Instance Method Summary collapse

Instance Method Details

persistLocation(location as Position.Location, options as { :name as Lang.String or Null } or Null) as Void

This has been deprecated

This method will be removed in Connect IQ 4.0.0.

Save a location (waypoint) to the device's location list

Parameters:

  • location(Position.Location)

    Location object to persist

  • options(Lang.Dictionary)

    Dictionary of options, or null to accept defaults

    • :name(Lang.String)

      Name to assign to the waypoint. If not specified will be auto-named.

See Also:

Since:

API Level 1.0.2


Generated Nov 29, 2021 1:34:35 PM