Player controls now get dynamically assigned to view model base classes.
This gives view models more freedom in how play events from the player are handled
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Threading.Tasks;
|
||||
using Aurora.Models.Media;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace Aurora.Design.Views
|
||||
{
|
||||
@ -11,6 +13,38 @@ namespace Aurora.Design.Views
|
||||
{
|
||||
}
|
||||
|
||||
#region Player
|
||||
public virtual void PlayExecute()
|
||||
{
|
||||
|
||||
}
|
||||
public virtual bool PlayCanExecute()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual void NextExecute()
|
||||
{
|
||||
|
||||
}
|
||||
public virtual bool NextCanExecute()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual void PreviousExecute()
|
||||
{
|
||||
|
||||
}
|
||||
public virtual bool PreviousCanExecute()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public BaseMedia Media { get; set; }
|
||||
|
||||
#endregion Player
|
||||
|
||||
#region Lifecycle
|
||||
public virtual void OnActive() { }
|
||||
|
||||
|
Reference in New Issue
Block a user