Android Features – Enable or disable Zones

An app may optionally disable (and later re-enable) Zones by calling setZoneDisableByApplication on the shared ServiceManager. This will not override any Conditions set via Point Access or Public APIs.

For example, if a Zone is configured in Point Access to be active between 1 pm and 3 pm, calls to setZoneDisableByApplication would have no effect outside of these times. During the Zone’s active period (e.g. at 2.30pm), the Zone will be active unless disabled by setZoneDisableByApplication.

String zoneIdToDisable = ""
    mServiceManager.setZoneDisableByApplication(zoneIdToDisable, true);

Interaction with the Check Out feature

Note that if a Zone has already ‘Checked-in’ and is awaiting a ‘Check-out’ event, then disabling the Zone at this point will not prevent the checkout callback from occurring.

If it is important to suppress Check-out behaviours while a Zone is disabled by your application, we advise that you make use of the isZoneDisabledByApplication method as part of your Check-out callback.

Created by Bluedot DevOps on July 11, 2018

Start the discussion