public void SetLockScreenActivityInstance(LockScreenActivity activity)
 {
     _lockScreenView = activity;
     _lockScreenPresenter = Bootstrapper.GetContainer().Resolve<IPlayerStatusPresenter>();
     _lockScreenPresenter.BindView(_lockScreenView);
     _lockScreenView.OnViewDestroy = (theView) =>
     {
         _lockScreenPresenter.ViewDestroyed();
         _lockScreenPresenter = null;
         _lockScreenView = null;
     };
 }
Example #2
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;
     };
 }