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

Method constructor

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

* @param {!./deps.DepsDef} deps * @param {?Object} response

(deps, response)

Source from the content-addressed store, hash-verified

14191 * @param {?Object} response
14192 */
14193 constructor(deps, response) {
14194 /** @private @const {!./deps.DepsDef} */
14195 this.deps_ = deps;
14196
14197 /** @private @const {!Window} */
14198 this.win_ = deps.win();
14199
14200 /** @private @const {!../components/activities.ActivityPorts} */
14201 this.activityPorts_ = deps.activities();
14202
14203 /** @private @const {!../components/dialog-manager.DialogManager} */
14204 this.dialogManager_ = deps.dialogManager();
14205
14206 /** @private @const {!./entitlements-manager.EntitlementsManager} */
14207 this.entitlementsManager_ = deps.entitlementsManager();
14208
14209 /** @private @const {!./callbacks.Callbacks} */
14210 this.callbacks_ = deps.callbacks();
14211
14212 /** @private {?ActivityIframeView} */
14213 this.activityIframeView_ = null;
14214
14215 /** @private {!Object} */
14216 this.response_ = response || {};
14217
14218 /** @private {?function()} */
14219 this.completeResolver_ = null;
14220
14221 /** @private @const {!Promise} */
14222 this.completePromise_ = new Promise((resolve) => {
14223 this.completeResolver_ = resolve;
14224 });
14225 }
14226
14227 /**
14228 * Starts the Link account flow.

Callers

nothing calls this directly

Calls 5

activitiesMethod · 0.80
dialogManagerMethod · 0.80
entitlementsManagerMethod · 0.80
callbacksMethod · 0.80
winMethod · 0.45

Tested by

no test coverage detected