ImageViewLoadEffect

Since: BlackBerry 10.0.0

#include <bb/cascades/ImageViewLoadEffect>

Load effects for images in an ImageView.

These load effects are used to determine how an image is animated while it's being loaded into an ImageView.


Overview

Public Types Index

enum Type

Default = 0, DefaultDeferred = 1, None = 2, Subtle = 3, FadeZoom = 4

Public Types

Type

Controls how an image is visualized after initial loading.

Since:

BlackBerry 10.0.0

Default = 0

A default animation which is determined by type of image (asset or non-asset) and the context of how it's loaded into a control.

An image that is bundled with the application as an asset is loaded immediately. Image assets also block the UI, which means that the image assets are displayed simulataneously with other controls . These types of images are displayed without any particular effect (None).

For images that aren't assets (for example, generated by the app or retrieved from a remote source), the framework attempts to load these images before the UI needs to be displayed. If loading completes in time, the image appears immediately. If the image doesn't load in time, the image is loaded asynchronously so that it doesn't block the rest of the UI from being displayed.

Since:

BlackBerry 10.0.0

DefaultDeferred = 1

Same as Default, but assets are also subject to deferred loading.

Since:

BlackBerry 10.0.0

None = 2

No animation is used.

This setting displays the image without any particular effect. If used with an asset, the image blocks the UI from being displayed until the image finishes loading. Images that aren't assets are loaded asynchronously, and don't block the UI.

Since:

BlackBerry 10.0.0

Subtle = 3

The image animates in with a subtle, non-intrusive effect.

Since:

BlackBerry 10.0.0

FadeZoom = 4

The image fades in with a zoom animation that scales the image up to its full size.

Since:

BlackBerry 10.0.0

Last modified: 2014-03-13

comments powered by Disqus