Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddAndroidEmulator

Method
📦 Aspire.Hosting.Maui v17.0.0-preview.1.26565.2
func (MauiProjectResource) 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().

Applies to

This method applies to the following types: