Interface IFileSource
A data source abstraction. Used by classes that need to fetch data but really don't care about from where the data is coming from. An implementation of IFileSource could fetch the data from the network, disk cache or even generate the data at runtime.
Namespace:Mapbox.Platform
Assembly:Mapbox.Platform.dll
Syntax
public interface IFileSource
Methods
Request(String, Action<Response>)
Performs a request asynchronously.
Declaration
IAsyncRequest Request(string uri, Action<Response> callback)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | The resource description in the URI format. |
Action<Response> | callback | Callback to be called after the request is completed. |
Returns
Type | Description |
---|---|
IAsyncRequest | Returns a IAsyncRequest that can be used for canceling a pending request. This handle can be completely ignored if there is no intention of ever canceling the request. |