Class MediaResult
Inheritance
System.Object
MediaResult
Namespace: EasyMobile
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class MediaResult
Properties
Type
Declaration
public MediaType Type { get; }
Property Value
Type | Description |
---|---|
MediaType |
Uri
Declaration
public string Uri { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
LoadImage(Action<String, Texture2D>, Int32)
Load image from this MediaResult, note that this method only works if this Type equals Image.
Declaration
public void LoadImage(Action<string, Texture2D> callback, int maxSize = -1)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.String, Texture2D> | callback | Callback raised when the image is loaded. Param 1: Error, null means the image has been loaded successfully. Param 2: Loaded image, null if there's error. |
System.Int32 | maxSize | Maximum size of the image. Load fullsize if non-positive. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()