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

Method constructor

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

* @param {!./deps.DepsDef} deps * @param {!../api/subscriptions.SaveSubscriptionRequestCallback} callback

(deps, callback)

Source from the content-addressed store, hash-verified

14316 * @param {!../api/subscriptions.SaveSubscriptionRequestCallback} callback
14317 */
14318 constructor(deps, callback) {
14319 /** @private @const {!Window} */
14320 this.win_ = deps.win();
14321
14322 /** @private @const {!./deps.DepsDef} */
14323 this.deps_ = deps;
14324
14325 /** @private @const {!../components/activities.ActivityPorts} */
14326 this.activityPorts_ = deps.activities();
14327
14328 /** @private @const {!../components/dialog-manager.DialogManager} */
14329 this.dialogManager_ = deps.dialogManager();
14330
14331 /** @private {!../api/subscriptions.SaveSubscriptionRequestCallback} */
14332 this.callback_ = callback;
14333
14334 /** @private {?Promise<!../api/subscriptions.SaveSubscriptionRequest>} */
14335 this.requestPromise_ = null;
14336
14337 /** @private {?Promise} */
14338 this.openPromise_ = null;
14339
14340 /** @private {?ActivityIframeView} */
14341 this.activityIframeView_ = null;
14342 }
14343
14344 /**
14345 * @return {?Promise<!../api/subscriptions.SaveSubscriptionRequest>}

Callers

nothing calls this directly

Calls 3

activitiesMethod · 0.80
dialogManagerMethod · 0.80
winMethod · 0.45

Tested by

no test coverage detected