Пример #1
0
 public virtual void BindPlayerStatusView(IPlayerStatusView view)
 {
     _playerStatusView = view;
     _playerStatusPresenter = Bootstrapper.GetContainer().Resolve<IPlayerStatusPresenter>();
     _playerStatusPresenter.BindView(view);
     _playerStatusView.OnViewDestroy = (theView) =>
     {
         _playerStatusPresenter.ViewDestroyed();
         _playerStatusPresenter = null;
         _playerStatusView = null;
     };
 }
Пример #2
0
 public void SetLockScreenActivityInstance(LockScreenActivity activity)
 {
     _lockScreenView = activity;
     _lockScreenPresenter = Bootstrapper.GetContainer().Resolve<IPlayerStatusPresenter>();
     _lockScreenPresenter.BindView(_lockScreenView);
     _lockScreenView.OnViewDestroy = (theView) =>
     {
         _lockScreenPresenter.ViewDestroyed();
         _lockScreenPresenter = null;
         _lockScreenView = null;
     };
 }
Пример #3
0
 public virtual void CreatePlayerStatusView()
 {
     if (_playerStatusView == null)
         _playerStatusView = Bootstrapper.GetContainer().Resolve<IPlayerStatusView>();
 }