Property | Type | Description | |
---|---|---|---|
TaskParameter | System | ||
TransparencyChannel |
Method | Description | |
---|---|---|
BitmapOptimizations ( bool enabled ) : |
||
CacheKey ( string customCacheKey ) : |
Uses this cache key, in addition with the real key, to cache into memory/disk
|
|
Delay ( int milliseconds ) : |
Delay the task by the specified milliseconds.
|
|
Dispose ( ) : void | ||
DownSample ( int width, int height ) : |
Reduce memory usage by downsampling the image. Aspect ratio will be kept even if width/height values are incorrect. Uses pixels units for width/height
|
|
DownSampleInDip ( int width, int height ) : |
Reduce memory usage by downsampling the image. Aspect ratio will be kept even if width/height values are incorrect. Uses device independent points units for width/height
|
|
DownSampleMode ( InterpolationMode mode ) : |
Set mode for downsampling. Speed-wise: nearest neighbour > linear > cubic.\ Default: bilinear On Android it's always ignored as Android uses bitmap insamplesize downsampling (bilinear)
|
|
DownloadStarted ( Action |
If image starts downloading from Internet this callback is called
|
|
Error ( Action |
If image loading failed this callback is called
|
|
ErrorPlaceholder ( string filepath, ImageSource source = ImageSource.Filepath ) : |
Defines the placeholder used when an error occurs.
|
|
FadeAnimation ( bool enabled, bool enabledForCachedImages = null, int duration = null ) : |
Indicates if the fade animation should be enabled.
|
|
Finish ( Action |
If image loading process finished, whatever the result, this callback is called
|
|
FromApplicationBundle ( string filepath ) : |
Constructsa new TaskParameter to load an image from a file from application bundle.
|
|
FromCompiledResource ( string resourceName ) : |
Constructs a new TaskParameter to load an image from a compiled drawable resource.
|
|
FromFile ( string filepath ) : |
Constructs a new TaskParameter to load an image from a file.
|
|
FromStream ( Func |
Constructs a new TaskParameter to load an image from a stream
|
|
FromUrl ( string url, System.TimeSpan cacheDuration = null ) : |
Constructs a new TaskParameter to load an image from a URL.
|
|
LoadingPlaceholder ( string path, ImageSource source = ImageSource.Filepath ) : |
Defines the placeholder used while loading.
|
|
Retry ( int retryCount, int millisecondDelay ) : |
If image loading fails automatically retry it a number of times, with a specific delay.
|
|
Success ( System.Action action ) : |
If image loading succeded this callback is called
|
|
Success ( LoadingResult>.Action |
If image loading succeded this callback is called
|
|
Transform ( IEnumerable |
||
Transform ( ITransformation transformation ) : |
||
TransformPlaceholders ( bool enabled ) : |
Indicates if transforms should be applied to placeholders.
|
|
WithCache ( CacheType cacheType ) : |
||
WithCustomDataResolver ( IDataResolver resolver ) : |
Forces task to use custom resolver.
|
|
WithPriority ( LoadingPriority priority ) : |
Defines the loading priority, the default is LoadingPriority.Normal
|
|
WithPriority ( int priority ) : |
Defines the loading priority, the default is 0 (LoadingPriority.Normal)
|
Method | Description | |
---|---|---|
TaskParameter ( ) : System | ||
TransparencyChannel ( bool loadTransparencyChannel ) : |
public BitmapOptimizations ( bool enabled ) : |
||
enabled | bool | |
return |
public CacheKey ( string customCacheKey ) : |
||
customCacheKey | string | Custom cache key. |
return |
public Delay ( int milliseconds ) : |
||
milliseconds | int | Milliseconds to wait prior to start the task. |
return |
public DownSample ( int width, int height ) : |
||
width | int | Optional width parameter, if value is higher than zero it will try to downsample to this width while keeping aspect ratio. |
height | int | Optional height parameter, if value is higher than zero it will try to downsample to this height while keeping aspect ratio. |
return |
public DownSampleInDip ( int width, int height ) : |
||
width | int | Optional width parameter, if value is higher than zero it will try to downsample to this width while keeping aspect ratio. |
height | int | Optional height parameter, if value is higher than zero it will try to downsample to this height while keeping aspect ratio. |
return |
public DownSampleMode ( InterpolationMode mode ) : |
||
mode | InterpolationMode | Optional mode parameter, if not set, defaults to linear. |
return |
public DownloadStarted ( Action |
||
action | Action |
Action. |
return |
public Error ( Action |
||
action | Action |
|
return |
public ErrorPlaceholder ( string filepath, ImageSource source = ImageSource.Filepath ) : |
||
filepath | string | Path to the file. |
source | ImageSource | Source for the path: local, web, assets |
return |
public FadeAnimation ( bool enabled, bool enabledForCachedImages = null, int duration = null ) : |
||
enabled | bool | If set to |
enabledForCachedImages | bool | Enables animation for local or cached images |
duration | int | Fade animation duration in ms |
return |
public Finish ( Action |
||
action | Action |
|
return |
public static FromApplicationBundle ( string filepath ) : |
||
filepath | string | Path to the file. |
return |
public static FromCompiledResource ( string resourceName ) : |
||
resourceName | string | Name of the resource in drawable folder without extension |
return |
public static FromFile ( string filepath ) : |
||
filepath | string | Path to the file. |
return |
public static FromStream ( Func |
||
stream | Func |
Stream. |
return |
public static FromUrl ( string url, System.TimeSpan cacheDuration = null ) : |
||
url | string | URL to the file |
cacheDuration | System.TimeSpan | How long the file will be cached on disk |
return |
public LoadingPlaceholder ( string path, ImageSource source = ImageSource.Filepath ) : |
||
path | string | Path to the file. |
source | ImageSource | Source for the path: local, web, assets |
return |
public Retry ( int retryCount, int millisecondDelay ) : |
||
retryCount | int | Number of retries |
millisecondDelay | int | Delay in milliseconds between each trial |
return |
public Success ( System.Action action ) : |
||
action | System.Action | Action to invoke when loading succeded. |
return |
public Success ( LoadingResult>.Action |
||
action | LoadingResult>.Action | Action to invoke when loading succeded. Argument is the size of the image loaded. |
return |
public Transform ( IEnumerable |
||
transformations | IEnumerable |
|
return |
public Transform ( ITransformation transformation ) : |
||
transformation | ITransformation | |
return |
public TransformPlaceholders ( bool enabled ) : |
||
enabled | bool | If set to |
return |
public WithCache ( CacheType cacheType ) : |
||
cacheType | CacheType | |
return |
public WithCustomDataResolver ( IDataResolver resolver ) : |
||
resolver | IDataResolver | Resolver. |
return |
public WithPriority ( LoadingPriority priority ) : |
||
priority | LoadingPriority | Priority. |
return |
public WithPriority ( int priority ) : |
||
priority | int | Priority. |
return |