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; }; }
public void SetLockScreenActivityInstance(LockScreenActivity activity) { _lockScreenView = activity; _lockScreenPresenter = Bootstrapper.GetContainer().Resolve<IPlayerStatusPresenter>(); _lockScreenPresenter.BindView(_lockScreenView); _lockScreenView.OnViewDestroy = (theView) => { _lockScreenPresenter.ViewDestroyed(); _lockScreenPresenter = null; _lockScreenView = null; }; }
public virtual void CreatePlayerStatusView() { if (_playerStatusView == null) _playerStatusView = Bootstrapper.GetContainer().Resolve<IPlayerStatusView>(); }