import { Flagship } from "https://deno.land/x/flagship_io_js_sdk@3.1.4/main/Flagship.ts";
Properties
private
_config: IFlagshipConfigprivate
_configManger: IConfigManagerprivate
_status: FlagshipStatusprivate
optional
_visitorInstance: Visitorprivate
configManager: IConfigManagerMethods
private
buildConfig(config?: IDecisionApiConfig | IBucketingConfig | IEdgeConfig): FlagshipConfigprivate
buildDecisionManager(): DecisionManagerprotected
setStatus(status: FlagshipStatus): voidclose()
Return the current config set by the customer and used by the SDK.
Return current status of Flagship SDK.
getVisitor(): Visitor | undefined
Return the last visitor created if isNewInstance key is false. Return undefined otherwise.
newVisitor(visitorId?: string | null, context?: Record<string, primitive>): Visitor
Create a new visitor with a context.
newVisitor(params?: NewVisitor): Visitor
Static Properties
private
_instance: FlagshipStatic Methods
protected
getInstance(): Flagshipclose()
When called, it will batch and send all hits that are in the pool before the application is closed
Return the current config set by the customer and used by the SDK.
Return current status of Flagship SDK.
getVisitor(): Visitor | undefined
Return the last visitor created if isNewInstance key is false. Return undefined otherwise.
newVisitor(visitorId?: string | null, context?: Record<string, primitive>): Visitor
Create a new visitor with a context.
newVisitor(params?: NewVisitor): Visitor
Create a new visitor with a context.
newVisitor(param1?: NewVisitor | string | null, param2?: Record<string, primitive>): Visitor