Table of Contents

Class UnityWebRequestTileFetcher

Namespace
LansMap.Map.Network
public sealed class UnityWebRequestTileFetcher : ITileFetcher, IDisposable
Inheritance
object
UnityWebRequestTileFetcher
Implements

Constructors

UnityWebRequestTileFetcher(int, string, bool)

public UnityWebRequestTileFetcher(int slotCount, string userAgent, bool sendUserAgentHeader = true)

Parameters

slotCount int
userAgent string
sendUserAgentHeader bool

Properties

SendsUserAgentHeader

public bool SendsUserAgentHeader { get; }

Property Value

bool

SlotCount

public int SlotCount { get; }

Property Value

int

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

IsFree(int)

public bool IsFree(int slot)

Parameters

slot int

Returns

bool

LastError(int)

public TileFetchError LastError(int slot)

Parameters

slot int

Returns

TileFetchError

Poll(int, out TileCoord, out float, out byte[], out int)

public FetchStatus Poll(int slot, out TileCoord tile, out float progress, out byte[] bytes, out int length)

Parameters

slot int
tile TileCoord
progress float
bytes byte[]
length int

Returns

FetchStatus

Release(int)

public void Release(int slot)

Parameters

slot int

Start(int, TileCoord, string)

public void Start(int slot, TileCoord tile, string url)

Parameters

slot int
tile TileCoord
url string