Skip to main content
Go to Latest
method DefaultStrategy.prototype.updateContextKeyValue
import { DefaultStrategy } from "https://deno.land/x/flagship_io_js_sdk@3.0.11/visitor/DefaultStrategy.ts";

Update the visitor context values, matching the given keys, used for targeting.

A new context value associated with this key will be created if there is no previous matching value. Context key must be String, and value type must be one of the following : Number, Boolean, String.

Parameters

key: string

: context key.

value: primitive

: context value.