C# 클래스 FFImageLoading.Work.TaskParameter

상속: IDisposable
파일 보기 프로젝트 열기: daniel-luberda/FFImageLoading 1 사용 예제들

Private Properties

프로퍼티 타입 설명
TaskParameter System
TransparencyChannel TaskParameter

공개 메소드들

메소드 설명
BitmapOptimizations ( bool enabled ) : TaskParameter
CacheKey ( string customCacheKey ) : TaskParameter

Uses this cache key, in addition with the real key, to cache into memory/disk

Delay ( int milliseconds ) : TaskParameter

Delay the task by the specified milliseconds.

Dispose ( ) : void
DownSample ( int width, int height ) : TaskParameter

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 ) : TaskParameter

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 ) : TaskParameter

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 action ) : TaskParameter

If image starts downloading from Internet this callback is called

Error ( Action action ) : TaskParameter

If image loading failed this callback is called

ErrorPlaceholder ( string filepath, ImageSource source = ImageSource.Filepath ) : TaskParameter

Defines the placeholder used when an error occurs.

FadeAnimation ( bool enabled, bool enabledForCachedImages = null, int duration = null ) : TaskParameter

Indicates if the fade animation should be enabled.

Finish ( Action action ) : TaskParameter

If image loading process finished, whatever the result, this callback is called

FromApplicationBundle ( string filepath ) : TaskParameter

Constructsa new TaskParameter to load an image from a file from application bundle.

FromCompiledResource ( string resourceName ) : TaskParameter

Constructs a new TaskParameter to load an image from a compiled drawable resource.

FromFile ( string filepath ) : TaskParameter

Constructs a new TaskParameter to load an image from a file.

FromStream ( Func stream ) : TaskParameter

Constructs a new TaskParameter to load an image from a stream

FromUrl ( string url, System.TimeSpan cacheDuration = null ) : TaskParameter

Constructs a new TaskParameter to load an image from a URL.

LoadingPlaceholder ( string path, ImageSource source = ImageSource.Filepath ) : TaskParameter

Defines the placeholder used while loading.

Retry ( int retryCount, int millisecondDelay ) : TaskParameter

If image loading fails automatically retry it a number of times, with a specific delay.

Success ( System.Action action ) : TaskParameter

If image loading succeded this callback is called

Success ( LoadingResult>.Action action ) : TaskParameter

If image loading succeded this callback is called

Transform ( IEnumerable transformations ) : TaskParameter
Transform ( ITransformation transformation ) : TaskParameter
TransformPlaceholders ( bool enabled ) : TaskParameter

Indicates if transforms should be applied to placeholders.

WithCache ( CacheType cacheType ) : TaskParameter
WithCustomDataResolver ( IDataResolver resolver ) : TaskParameter

Forces task to use custom resolver.

WithPriority ( LoadingPriority priority ) : TaskParameter

Defines the loading priority, the default is LoadingPriority.Normal

WithPriority ( int priority ) : TaskParameter

Defines the loading priority, the default is 0 (LoadingPriority.Normal)

비공개 메소드들

메소드 설명
TaskParameter ( ) : System
TransparencyChannel ( bool loadTransparencyChannel ) : TaskParameter

메소드 상세

BitmapOptimizations() 공개 메소드

public BitmapOptimizations ( bool enabled ) : TaskParameter
enabled bool
리턴 TaskParameter

CacheKey() 공개 메소드

Uses this cache key, in addition with the real key, to cache into memory/disk
public CacheKey ( string customCacheKey ) : TaskParameter
customCacheKey string Custom cache key.
리턴 TaskParameter

Delay() 공개 메소드

Delay the task by the specified milliseconds.
public Delay ( int milliseconds ) : TaskParameter
milliseconds int Milliseconds to wait prior to start the task.
리턴 TaskParameter

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

DownSample() 공개 메소드

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
public DownSample ( int width, int height ) : TaskParameter
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.
리턴 TaskParameter

DownSampleInDip() 공개 메소드

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
public DownSampleInDip ( int width, int height ) : TaskParameter
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.
리턴 TaskParameter

DownSampleMode() 공개 메소드

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)
public DownSampleMode ( InterpolationMode mode ) : TaskParameter
mode InterpolationMode Optional mode parameter, if not set, defaults to linear.
리턴 TaskParameter

DownloadStarted() 공개 메소드

If image starts downloading from Internet this callback is called
public DownloadStarted ( Action action ) : TaskParameter
action Action Action.
리턴 TaskParameter

Error() 공개 메소드

If image loading failed this callback is called
public Error ( Action action ) : TaskParameter
action Action
리턴 TaskParameter

ErrorPlaceholder() 공개 메소드

Defines the placeholder used when an error occurs.
public ErrorPlaceholder ( string filepath, ImageSource source = ImageSource.Filepath ) : TaskParameter
filepath string Path to the file.
source ImageSource Source for the path: local, web, assets
리턴 TaskParameter

FadeAnimation() 공개 메소드

Indicates if the fade animation should be enabled.
public FadeAnimation ( bool enabled, bool enabledForCachedImages = null, int duration = null ) : TaskParameter
enabled bool If set to true enabled.
enabledForCachedImages bool Enables animation for local or cached images
duration int Fade animation duration in ms
리턴 TaskParameter

Finish() 공개 메소드

If image loading process finished, whatever the result, this callback is called
public Finish ( Action action ) : TaskParameter
action Action
리턴 TaskParameter

FromApplicationBundle() 공개 정적인 메소드

Constructsa new TaskParameter to load an image from a file from application bundle.
public static FromApplicationBundle ( string filepath ) : TaskParameter
filepath string Path to the file.
리턴 TaskParameter

FromCompiledResource() 공개 정적인 메소드

Constructs a new TaskParameter to load an image from a compiled drawable resource.
public static FromCompiledResource ( string resourceName ) : TaskParameter
resourceName string Name of the resource in drawable folder without extension
리턴 TaskParameter

FromFile() 공개 정적인 메소드

Constructs a new TaskParameter to load an image from a file.
public static FromFile ( string filepath ) : TaskParameter
filepath string Path to the file.
리턴 TaskParameter

FromStream() 공개 정적인 메소드

Constructs a new TaskParameter to load an image from a stream
public static FromStream ( Func stream ) : TaskParameter
stream Func Stream.
리턴 TaskParameter

FromUrl() 공개 정적인 메소드

Constructs a new TaskParameter to load an image from a URL.
public static FromUrl ( string url, System.TimeSpan cacheDuration = null ) : TaskParameter
url string URL to the file
cacheDuration System.TimeSpan How long the file will be cached on disk
리턴 TaskParameter

LoadingPlaceholder() 공개 메소드

Defines the placeholder used while loading.
public LoadingPlaceholder ( string path, ImageSource source = ImageSource.Filepath ) : TaskParameter
path string Path to the file.
source ImageSource Source for the path: local, web, assets
리턴 TaskParameter

Retry() 공개 메소드

If image loading fails automatically retry it a number of times, with a specific delay.
public Retry ( int retryCount, int millisecondDelay ) : TaskParameter
retryCount int Number of retries
millisecondDelay int Delay in milliseconds between each trial
리턴 TaskParameter

Success() 공개 메소드

If image loading succeded this callback is called
public Success ( System.Action action ) : TaskParameter
action System.Action Action to invoke when loading succeded.
리턴 TaskParameter

Success() 공개 메소드

If image loading succeded this callback is called
public Success ( LoadingResult>.Action action ) : TaskParameter
action LoadingResult>.Action Action to invoke when loading succeded. Argument is the size of the image loaded.
리턴 TaskParameter

Transform() 공개 메소드

public Transform ( IEnumerable transformations ) : TaskParameter
transformations IEnumerable
리턴 TaskParameter

Transform() 공개 메소드

public Transform ( ITransformation transformation ) : TaskParameter
transformation ITransformation
리턴 TaskParameter

TransformPlaceholders() 공개 메소드

Indicates if transforms should be applied to placeholders.
public TransformPlaceholders ( bool enabled ) : TaskParameter
enabled bool If set to true enabled.
리턴 TaskParameter

WithCache() 공개 메소드

public WithCache ( CacheType cacheType ) : TaskParameter
cacheType CacheType
리턴 TaskParameter

WithCustomDataResolver() 공개 메소드

Forces task to use custom resolver.
public WithCustomDataResolver ( IDataResolver resolver ) : TaskParameter
resolver IDataResolver Resolver.
리턴 TaskParameter

WithPriority() 공개 메소드

Defines the loading priority, the default is LoadingPriority.Normal
public WithPriority ( LoadingPriority priority ) : TaskParameter
priority LoadingPriority Priority.
리턴 TaskParameter

WithPriority() 공개 메소드

Defines the loading priority, the default is 0 (LoadingPriority.Normal)
public WithPriority ( int priority ) : TaskParameter
priority int Priority.
리턴 TaskParameter