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

adapter

readonly

AdapterInterface

The AdapterInterface.

api

readonly

API

The API client.

cache

readonly

Cache

The Cache.

meshRankResolver

readonly

MeshRankResolver | undefined

The MeshRankResolver.

staticProxy

readonly

string | undefined

The static proxy, if one is set.

Methods

Method

Modifiers

Description

dispose()

Dispose of the context instance.

Get in touch

We'd love to learn more about your vision and how we can help.

PressPrivacyTermsSupportCopyright © 2024 Core3D, Inc. All Rights Reserved.