Context class
Establishes how the SDK should behave via configuration.
Signature:
declare class Context
Remarks
Context allows you to establish which adapter you're using, API options, and some functional options to control how the SDK behaves during operation.
Context can be created manually via the createContext() helper, or you can rely on the Core3D facade to handle it for you.
You can use the Context object to access the API client and make arbitrary API calls outside of SDK operations.
Constructors
Constructor |
Modifiers |
Description |
---|---|---|
(constructor)({ apiKey, apiUrl, createAdapter, meshRankResolver, staticProxy, }) |
Context constructor. |
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
|
The AdapterInterface. | ||
|
The API client. | ||
|
The Cache. | ||
|
MeshRankResolver | undefined |
The MeshRankResolver. | |
|
string | undefined |
The static proxy, if one is set. |
Methods
Method |
Modifiers |
Description |
---|---|---|
Dispose of the context instance. |