import { Flagship } from "https://deno.land/x/flagship_io_js_sdk@4.0.1/index.ts";
The Flagship
class represents the SDK. It facilitates the initialization process and creation of new visitors.
Properties
Methods
private
buildConfig(config?: IDecisionApiConfig | IBucketingConfig | IEdgeConfig): FlagshipConfigprivate
buildDecisionManager(): DecisionManagerprotected
setStatus(status: FSSdkStatus): voidclose()
When called, it will batch and send all hits that are in the pool before the application is closed
getVisitor(): Visitor | undefined
Return the last visitor created if isNewInstance key is false. Return undefined otherwise.
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
getVisitor(): Visitor | undefined
Return the last visitor created if isNewInstance key is false. Return undefined otherwise.