namespace GFramework.Game.Abstractions.ui;
///
/// UI页面接口,定义了UI页面的生命周期方法
///
public interface IPageBehavior
{
///
/// 获取页面视图对象
///
/// 页面视图实例
object View { get; }
///
/// 获取页面是否处于活动状态
///
bool IsAlive { get; }
///
/// 页面进入时调用的方法
///
/// 页面进入时传递的参数,可为空
void OnEnter(IUiPageEnterParam? param);
///
/// 页面退出时调用的方法
///
void OnExit();
///
/// 页面暂停时调用的方法
///
void OnPause();
///
/// 页面恢复时调用的方法
///
void OnResume();
///
/// 页面被覆盖时调用(不销毁)
///
void OnHide();
///
/// 页面重新显示时调用的方法
///
void OnShow();
}