![]() The Screenlet sends the image to the Liferay instance. Use this policy when you need to save the image locally, but don’t want to update the image in the Liferay instance (delete or add image). The Screenlet stores the image in the local cache. Use this policy to make sure the Liferay instance always has the most recent version of the image. If a connection issue occurs, the Screenlet uses the delegate to notify the developer about the error, but it also discards the image. ![]() ![]() These policies take the following actions when uploading an image to a Liferay Use this policy to save bandwidth and loading time in case you have local (but probably outdated) data. If the list isn’t there, the Screenlet requests it from the Liferay instance and notifies the developer about any errors that occur (including connectivity errors). The Screenlet loads the list from the local cache. Use this policy to show the most recent version of the data when connected, but show an outdated version when there’s no connection. If the list doesn’t exist there, the Screenlet uses the listener to notify the developer about the error. If a connection issue occurs, the Screenlet retrieves the list from the local cache. If this succeeds, the Screenlet shows the list to the user and stores it in the local cache for later use. The Screenlet loads the list from the Liferay instance. Use this policy when you always need to show local data, without retrieving remote information under any circumstance. If the list isn’t there, the Screenlet uses the listener to notify the developer about the error. Use this policy when you always need to show updated data, and show nothing when there’s no connection. If the Screenlet successfully loads the list, it stores the data in the local cache for later use. If a connection issue occurs, the Screenlet uses the listener to notify the developer about the error. These policies take the following actions when loading images from a Liferay This Screenlet supports the REMOTE_ONLY, CACHE_ONLY, REMOTE_FIRST, and For more information on how offline mode works, see the This Screenlet supports offline mode so it can function without a networkĬonnection when loading or uploading images (deleting images while offline is This Screenlet has three different Views:įigure 1: Image Gallery Screenlet using the Grid, Slideshow, and List Views. Other custom Views may use a different component, such as ViewPager or The included Views use a standard Android RecyclerView to show the scrollable ![]() Screenlet calls the following services and methods. Screenlets in Liferay Screens call JSON web services in the portal. With configurable page size, and supports i18n in asset values. The Screenlet implements fluent pagination You can also use Image Gallery Screenlet to upload images to andĭelete images from the same folder. Image Gallery Screenlet shows a list of images from a Documents and Media folder in a Android SDK 4.0 (API Level 15) and above.Liferay Screens Compatibility plugin (for.Liferay Portal 6.2 (CE or EE), Liferay 7.0 CE, Liferay DXP.Android SDK 4.0 (API Level 15) or above. ![]()
0 Comments
Leave a Reply. |