MauiProjectResource.AddAndroidEmulator

Method
📦 Aspire.Hosting.Maui v17.0.0-preview.1.26567.5
type MauiProjectResource interface {
// ... omitted for brevity
AddAndroidEmulator(
name string,
options ...*AddAndroidEmulatorOptions,
) MauiAndroidEmulatorResource
}

Signature

methodAddAndroidEmulatorbuilder
Adds an Android emulator resource to run the MAUI application on an Android emulator with a specific name.
AddAndroidEmulator(
name string,
options ...*AddAndroidEmulatorOptions,
) MauiAndroidEmulatorResource
namestringThe name of the Android emulator resource.
options...*AddAndroidEmulatorOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddAndroidEmulatorOptions argument.

EmulatorId*stringOptional emulator ID to target a specific Android emulator. If not specified, uses the currently running emulator or starts the default emulator.
MauiAndroidEmulatorResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: