VRC SDK
This project aims to completely document the VRChat Unity SDK
Loading...
Searching...
No Matches
VRC.SDK3.Image.ImageDownloader Class Reference
Inheritance diagram for VRC.SDK3.Image.ImageDownloader:
Collaboration diagram for VRC.SDK3.Image.ImageDownloader:

Classes

class  c__DisplayClass11_0
 

Static Public Member Functions

static void TrimCache (int size)
 
static void DownloadImage (string imageUrl, int imageSize, Action< Texture2D > onImageDownload=null, Action< ImageLoadError > onImageDownloadFailed=null, string fallbackImageUrl="", bool isRetry=false)
 

Properties

static ImageDownloader Instance [get]
 

Private Member Functions

void TrimCacheInternal (int size)
 
void DownloadImageInternal (string imageUrl, int imageSize, Action< Texture2D > onImageDownload, Action< ImageLoadError > onImageDownloadFailed, string fallbackImageUrl="", bool isRetry=false)
 
void CacheTexture (string cacheRef, Texture2D tex)
 
void DownloadFallbackOrUseErrorImage (string fallbackImageUrl, Action< Texture2D > onImageDownload)
 

Private Attributes

readonly List< string > cachedImageQueue = new List<string>()
 

Static Private Attributes

const int MAX_CACHED_IMAGES = 200
 
const int MIN_CACHED_IMAGES = 100
 

Detailed Description

Definition at line 818 of file VRCSDKBase.cs.

Member Function Documentation

◆ CacheTexture()

void VRC.SDK3.Image.ImageDownloader.CacheTexture ( string  cacheRef,
Texture2D  tex 
)
private

Definition at line 1071 of file VRCSDKBase.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DownloadFallbackOrUseErrorImage()

void VRC.SDK3.Image.ImageDownloader.DownloadFallbackOrUseErrorImage ( string  fallbackImageUrl,
Action< Texture2D >  onImageDownload 
)
private

Definition at line 1087 of file VRCSDKBase.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DownloadImage()

static void VRC.SDK3.Image.ImageDownloader.DownloadImage ( string  imageUrl,
int  imageSize,
Action< Texture2D >  onImageDownload = null,
Action< ImageLoadError onImageDownloadFailed = null,
string  fallbackImageUrl = "",
bool  isRetry = false 
)
static

Definition at line 937 of file VRCSDKBase.cs.

Here is the call graph for this function:

◆ DownloadImageInternal()

void VRC.SDK3.Image.ImageDownloader.DownloadImageInternal ( string  imageUrl,
int  imageSize,
Action< Texture2D >  onImageDownload,
Action< ImageLoadError onImageDownloadFailed,
string  fallbackImageUrl = "",
bool  isRetry = false 
)
private

Definition at line 963 of file VRCSDKBase.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TrimCache()

static void VRC.SDK3.Image.ImageDownloader.TrimCache ( int  size)
static

Definition at line 931 of file VRCSDKBase.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TrimCacheInternal()

void VRC.SDK3.Image.ImageDownloader.TrimCacheInternal ( int  size)
private

Definition at line 942 of file VRCSDKBase.cs.

Here is the caller graph for this function:

Member Data Documentation

◆ cachedImageQueue

readonly List<string> VRC.SDK3.Image.ImageDownloader.cachedImageQueue = new List<string>()
private

Definition at line 911 of file VRCSDKBase.cs.

◆ MAX_CACHED_IMAGES

const int VRC.SDK3.Image.ImageDownloader.MAX_CACHED_IMAGES = 200
staticprivate

Definition at line 907 of file VRCSDKBase.cs.

◆ MIN_CACHED_IMAGES

const int VRC.SDK3.Image.ImageDownloader.MIN_CACHED_IMAGES = 100
staticprivate

Definition at line 909 of file VRCSDKBase.cs.

Property Documentation

◆ Instance

ImageDownloader VRC.SDK3.Image.ImageDownloader.Instance
staticgetprivate

Definition at line 917 of file VRCSDKBase.cs.


The documentation for this class was generated from the following file: