public void setRegionStatePersistenceEnabled ( boolean enabled ) { mRegionStatePersistenceEnabled = enabled ; if ( ! isScannerInDifferentProcess ( ) ) { if ( enabled ) { MonitoringStatus . getInstanceForApplication ( mContext ) . startStatusPreservation ( ) ; } else { MonitoringStatus . getInstanceForApplication ( mContext ) . stopStatusPreservation ( ) ; } } this . applySettings ( ) ; }
Turns off saving the state of monitored regions to persistent storage so it is retained over app restarts . Defaults to enabled . When enabled there will not be an extra region entry event when the app starts up and a beacon for a monitored region was previously visible within the past 15 minutes . Note that there is a limit to 50 monitored regions that may be persisted . If more than 50 regions are monitored state is not persisted for any .