@JsType(isNative=true,
namespace="Cesium",
name="Request")
public class Request
extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Request.CancelCallback |
static interface |
Request.PriorityCallback |
static interface |
Request.RequestCallback |
| Modifier and Type | Field and Description |
|---|---|
Request.CancelCallback |
cancelFunction
The function that is called when the request is cancelled.
|
double |
priority
Priority is a unit-less value where lower values represent higher priority.
|
Request.PriorityCallback |
priorityFunction
The function that is called to update the request's priority, which occurs once per frame.
|
Number |
readonlystate
The current state of the request.
|
Request.RequestCallback |
requestFunction
The function that makes the actual data request.
|
String |
url
The URL to request.
|
| Constructor and Description |
|---|
Request()
Stores information for making a request.
|
Request(RequestOptions options)
Stores information for making a request.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
throttle()
Whether to throttle and prioritize the request.
|
boolean |
throttleByServer()
Whether to throttle the request by server.
|
Number |
type()
Type of request.
|
@JsProperty public Request.CancelCallback cancelFunction
@JsProperty public double priority
@JsProperty public Request.PriorityCallback priorityFunction
@JsProperty public Request.RequestCallback requestFunction
@JsProperty public Number readonlystate
RequestState@JsProperty public String url
@JsConstructor public Request()
@JsConstructor public Request(RequestOptions options)
options - RequestOptions@JsProperty(name="throttle") public boolean throttle()
@JsProperty(name="throttleByServer") public boolean throttleByServer()
@JsProperty(name="type") public Number type()
Default: {@link RequestType#OTHER()}Copyright © 2019. All rights reserved.