Enable and Disable functions

Applies to: Canvas apps

Turns a signal on or off.

Overview

Some signals can change often, requiring the app to recalculate as they do. Rapid changes over a long period of time can drain a device's battery. You can use these functions to manually turn a signal on or off.

When a signal isn't being used, it's automatically turned off.

Description

The Enable and Disable functions turn a signal on and off, respectively.

These functions currently only work for the Location signal.

These functions have no return value. You can use them only in behavior formulas.

Syntax

Enable( Signal )
Disable( Signal )

  • Signal - Required. The signal to turn on or off.