Show Preload Content

You can show your content with showPreloadContent method. It handles specified content including data from the cache. If there is no data stored in a cache, the content will be fetched from the server.

  • UserCom.getInstance().showPreloadContent("example_content", new PreloadContentCallback() {
        @Override
        public void onSuccess(PreloadContent content) {
            // Do whatever you want
        }
    
        @Override
        public void onFailure(Throwable throwable) {
            // Something went wrong, maybe you should try again?
        }
    });

The onSuccess method will return the data (preload content).