Root.SetMemoryLimitThreshold Property
| Explanation | The memory that can be used by Biz / Browser AI is very limited to about 16MB to 48MB like a general Android application, and the maximum memory size differs for each terminal, so it is necessary to pay attention to the amount of memory used. Therefore, if the memory usage exceeds the threshold while the threshold is set using this method, the MemoryLimitExceeded event is issued only once and the threshold is reset. If you want to continue to monitor memory usage, call this method again. Please take note, even if you set a threshold, if the maximum memory usage is reached by the time the MemoryLimitExceeded event occurs, an OutOfMemory error will occur, so the event will not occur reliably before stopping due to insufficient memory. Added since AI Ver.1.0.1 | |
| Call format | //.SetMemoryLimitThreshold( threshold ) | |
| Return value | None | |
| Arguments | Number threshold | Set a threshold for issuing a memory usage warning event. The unit is MB. If 0 or a negative value, reset the threshold setting. |
| Exception | None | |
| Example of use | | |
| Related item | ReLoggedIn property, MemoryLimitExceeded event | |