Proximity Utility: Starting blocks [KT]

by Ken Tobias

Version 1 (June 9, 2017)

Download (752 downloads)

These are the starting blocks of your custom flow for Proximity Utility.

In order to receive the counter from Proximity Utility, we will use broadcast receive block. The broadcast extras will be store in variable a.

We will use fork block because the parent fiber must return to broadcast receive block because it will receive the broadcast when Proximity Utility is done counting.

The variable a is the data we receive from Proximity Utility. It is a dictionary with 2 keys:
• counter - this key holds the number of times your finger was detected by your proximity sensor.
• screen - this key has value of 1 or 0. It simply tells if screen is on. 1 is means the screen is on.

👋Proximity Utility -

5.0 average rating from 1 reviews

5 stars
4 stars
3 stars
2 stars
1 star

Reviews and ratings can be submitted in the app.