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

Method constructor

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

* @param {!./deps.DepsDef} deps

(deps)

Source from the content-addressed store, hash-verified

5878 * @param {!./deps.DepsDef} deps
5879 */
5880 constructor(deps) {
5881 /** @private @const {!Window} */
5882 this.win_ = deps.win();
5883
5884 /** @private @const {!./deps.DepsDef} */
5885 this.deps_ = deps;
5886
5887 /** @private @const {!../components/activities.ActivityPorts} */
5888 this.activityPorts_ = deps.activities();
5889
5890 /** @private @const {!../components/dialog-manager.DialogManager} */
5891 this.dialogManager_ = deps.dialogManager();
5892
5893 /** @private {?Promise<!ActivityIframeView>} */
5894 this.activityIframeViewPromise_ = null;
5895
5896 /** @private {?Promise} */
5897 this.readyPromise_ = null;
5898
5899 /** @private @const {!../runtime/analytics-service.AnalyticsService} */
5900 this.analyticsService_ = deps.analytics();
5901
5902 /** @private @const {!../runtime/client-event-manager.ClientEventManager} */
5903 this.eventManager_ = deps.eventManager();
5904
5905 /** @private @const {!../runtime/client-config-manager.ClientConfigManager} */
5906 this.clientConfigManager_ = deps.clientConfigManager();
5907
5908 /** @private {?string} */
5909 this.sku_ = null;
5910 }
5911
5912 /**
5913 * Starts the payments completion flow.

Callers

nothing calls this directly

Calls 6

activitiesMethod · 0.80
dialogManagerMethod · 0.80
analyticsMethod · 0.80
eventManagerMethod · 0.80
clientConfigManagerMethod · 0.80
winMethod · 0.45

Tested by

no test coverage detected