Class SystemLibrary

Object
SystemLibrary

public class SystemLibrary
extends Object
The CASIO Enterprise Developer Tools System Library

Since:
2.00
API Note:
The System Library is bound to the calling application on application startup time automatically.
The Library's lifecycle therefore depends on the application lifecycle.
Due to the Lifecycle of Android Applications and the underlying timing, it is strongly advised not to call any Library Methods inside the onCreate method.
When the activity is being launched (and hence the process gets created), the same applies to the onStart and onResume methods.
If you need to call any Library methods at application start in one of the above mentioned methods, you should use the Callback Mechanism offered by the onLibraryReady method instead.
For instance, instead of calling SystemLibrary.setNavigationBarState(false) directly in onCreate, use this code to postpone it to a Callback appropriately:
SystemLibrary.onLibraryReady(new LibraryCallback() {
     public void onLibraryReady() {
         SystemLibrary.setNavigationBarState(false);
     }
 });

Which can be simplified to:
SystemLibrary.onLibraryReady(() -> { SystemLibrary.setNavigationBarState(false); });