renderActivateButton_() {
    const activateButton = buildActivateButtonTemplate(this.element);

    activateButton.querySelector(
      '.i-amphtml-story-360-activate-text'
    ).textContent = this.localizationService_.getLocalizedString(
      LocalizedStringId.AMP_STORY_ACTIVATE_BUTTON_TEXT
    );

    activateButton.addEventListener('click', () =>
      this.requestGyroscopePermissions_()
    );

    this.mutateElement(() => this.element.appendChild(activateButton));
  }
/**
   * A button to ask for permissons.
   * @private
   */
A button to ask for permissons.
@private
A button to ask for permissons . @private
renderActivateButton_() {
    const activateButton = buildActivateButtonTemplate(this.element);
    activateButton.querySelector(
      '.i-amphtml-story-360-activate-text'
    ).textContent = this.localizationService_.getLocalizedString(
      LocalizedStringId.AMP_STORY_ACTIVATE_BUTTON_TEXT
    );
    activateButton.addEventListener('click', () =>
      this.requestGyroscopePermissions_()
    );
    this.mutateElement(() => this.element.appendChild(activateButton));
  }
renderActivateButton_ ( ) { const activateButton = buildActivateButtonTemplate ( this . element ) ; activateButton . querySelector ( '.i-amphtml-story-360-activate-text' ) . textContent = this . localizationService_ . getLocalizedString ( LocalizedStringId . AMP_STORY_ACTIVATE_BUTTON_TEXT ) ; activateButton . addEventListener ( 'click' , ( ) => this . requestGyroscopePermissions_ ( ) ) ; this . mutateElement ( ( ) => this . element . appendChild ( activateButton ) ) ; }
A button to ask for permissons.
A button to ask for permissons .