using Android.App;
using Android.Runtime;

namespace Hua.Todo.Maui;

[Application]
/// <summary>
/// Android 平台 Application。
/// </summary>
public class MainApplication : MauiApplication
{
	/// <summary>
	/// 创建 <see cref="MainApplication"/>。
	/// </summary>
	/// <param name="handle">JNI 句柄。</param>
	/// <param name="ownership">句柄所有权。</param>
	public MainApplication(IntPtr handle, JniHandleOwnership ownership)
		: base(handle, ownership)
	{
	}

	/// <summary>
	/// 创建 MAUI 应用。
	/// </summary>
	/// <returns>MAUI 应用实例。</returns>
	protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
}
