From 8a68a48e511c5139ea97a55b1a0719e4e0b04564 Mon Sep 17 00:00:00 2001 From: joshemb <josh@elixxir.io> Date: Tue, 2 May 2023 13:24:41 -0700 Subject: [PATCH] Add suggested values for low power mode --- wasm/follow.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wasm/follow.go b/wasm/follow.go index 5c736b5a..dbff9722 100644 --- a/wasm/follow.go +++ b/wasm/follow.go @@ -91,9 +91,17 @@ func (c *Cmix) StopNetworkFollower(js.Value, []js.Value) any { // of the device following the network. // - Low period -> Higher frequency of polling -> Higher battery usage // - High period -> Lower frequency of polling -> Lower battery usage +// // This may be used to enable a low power (or battery optimization) mode // for the end user. // +// Suggested values are provided, however there are no guarantees that these +// values will perfectly fit what the end user's device would require to match +// the user's expectations: +// - Low Power Usage: 5000 milliseconds +// - High Power Usage: 1000 milliseconds (default, see +// [cmix.DefaultFollowPeriod] +// // Parameters: // - args[0] - The duration of the period, in milliseconds (int). func (c *Cmix) SetTrackNetworkPeriod(_ js.Value, args []js.Value) any { -- GitLab