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.

This has been deprecated

This module may be removed after System 4.

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 may be removed after System 4.

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 Sep 23, 2024, 3:32:49 PM