cc-everywhere

Variable: default

default: object;

Type Declaration

initialize

initialize: (hostInfo, configParams?, authOption?, clientAuthProvider?, authProvider?) => Promise<CCEverywhere>;

This is the main API which is used for initializing the SDK. Please ensure to call this API only once.

Parameters

Parameter
Type
Description
hostInfo
HostInfo
-
configParams?
ConfigParams
-
authOption?
AuthOption
authentication configuration
clientAuthProvider?
ClientAuthProvider
client authentication provider for fetching client authentication details.
authProvider?
AuthProvider
authentication provider for managing authentication

Returns

Promise<CCEverywhere>

Promise with CCEverywhere object which can be used to call other APIs of SDK.

terminate

terminate: () => boolean;

Terminates the active instance of CCEverywhere. This method will return false if there is no active CCEverywhere instance.

Returns

boolean

true on successful termination