MCPcopy Create free account
hub / github.com/ampproject/amphtml / constructor

Method constructor

third_party/subscriptions-project/swg.js:9511–9536  ·  view source on GitHub ↗

* @param {ClientConfigOptions} options

({
    attributionParams,
    autoPromptConfig,
    paySwgVersion,
    uiPredicates,
    useUpdatedOfferFlows,
    skipAccountCreationScreen,
  } = {})

Source from the content-addressed store, hash-verified

9509 * @param {ClientConfigOptions} options
9510 */
9511 constructor({
9512 attributionParams,
9513 autoPromptConfig,
9514 paySwgVersion,
9515 uiPredicates,
9516 useUpdatedOfferFlows,
9517 skipAccountCreationScreen,
9518 } = {}) {
9519 /** @const {./auto-prompt-config.AutoPromptConfig|undefined} */
9520 this.autoPromptConfig = autoPromptConfig;
9521
9522 /** @const {string|undefined} */
9523 this.paySwgVersion = paySwgVersion;
9524
9525 /** @const {boolean} */
9526 this.useUpdatedOfferFlows = useUpdatedOfferFlows || false;
9527
9528 /** @const {boolean} */
9529 this.skipAccountCreationScreen = skipAccountCreationScreen || false;
9530
9531 /** @const {UiPredicates|undefined} */
9532 this.uiPredicates = uiPredicates;
9533
9534 /** @const {./attribution-params.AttributionParams|undefined} */
9535 this.attributionParams = attributionParams;
9536 }
9537}
9538
9539/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected