UloginWidget.php
public function setStateListener($event, $listener)
    {
        $js = sprintf(
            'uLogin.setStateListener("%s", "%s", %s);',
            $this->id,
            $event,
            $listener
        );

        $this->getView()->registerJs($js);
        return $this;
    }
public function setStateListener($event, $listener)
    {
        $js = sprintf(
            'uLogin.setStateListener("%s", "%s", %s);',
            $this->id,
            $event,
            $listener
        );

        $this->getView()->registerJs($js);
        return $this;
    }
public function setStateListener ( $ event , $ listener ) { $ js = sprintf ( 'uLogin.setStateListener("%s", "%s", %s);' , $ this -> id , $ event , $ listener ) ; $ this -> getView ( ) -> registerJs ( $ js ) ; return $ this ; }
Sets the event handler in the event ulogin

@param string $event Js event name
@param string $listener Js event handler
@return $this
@see https://ulogin.ru/help.php#listeners
Sets the event handler in the event ulogin