Class ImageCache
Namespace: Unity.UIWidgets.painting
Syntax
public class ImageCache
Properties
currentSize
Declaration
public int currentSize { get; }
Property Value
Type | Description |
---|---|
Int32 |
currentSizeBytes
Declaration
public int currentSizeBytes { get; }
Property Value
Type | Description |
---|---|
Int32 |
maximumSize
Declaration
public int maximumSize { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
maximumSizeBytes
Declaration
public int maximumSizeBytes { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
clear()
Declaration
public void clear()
evict(Object)
Declaration
public bool evict(object key)
Parameters
Type | Name | Description |
---|---|---|
Object | key |
Returns
Type | Description |
---|---|
Boolean |
putIfAbsent(Object, Func<ImageStreamCompleter>, ImageErrorListener)
Declaration
public ImageStreamCompleter putIfAbsent(object key, Func<ImageStreamCompleter> loader, ImageErrorListener onError = null)
Parameters
Type | Name | Description |
---|---|---|
Object | key | |
Func<ImageStreamCompleter> | loader | |
ImageErrorListener | onError |
Returns
Type | Description |
---|---|
ImageStreamCompleter |