MauiProjectResource.AddAndroidDevice

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

Signature

methodAddAndroidDevicebuilder
Adds an Android physical device resource to run the MAUI application on an Android device with a specific name and device ID.
AddAndroidDevice(
name string,
options ...*AddAndroidDeviceOptions,
) MauiAndroidDeviceResource
namestringThe name of the Android device resource.
options...*AddAndroidDeviceOptionsOptional settings, described under Options.

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

DeviceId*stringOptional device ID to target a specific Android device. If not specified, uses the only attached device (requires exactly one device to be connected).
MauiAndroidDeviceResource

The resource builder.

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

Defined on

This method is defined on the following type: