MauiProjectResource
type MauiProjectResource interface { Resource}Methods
AddAndroidDevice( name string, options ...*AddAndroidDeviceOptions,) MauiAndroidDeviceResourceParameters
namestringThe name of the Android device resource.options...*AddAndroidDeviceOptions Optional settings, described under Options.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).Returns
MauiAndroidDeviceResource The resource builder.
Returns a handle; failures surface later via Err().
AddAndroidEmulator( name string, options ...*AddAndroidEmulatorOptions,) MauiAndroidEmulatorResourceParameters
namestringThe name of the Android emulator resource.options...*AddAndroidEmulatorOptions Optional settings, described under Options.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.Returns
MauiAndroidEmulatorResource The resource builder.
Returns a handle; failures surface later via Err().
AddiOSDevice( name string, options ...*AddiOSDeviceOptions,) MauiiOSDeviceResourceParameters
namestringThe name of the iOS device resource.options...*AddiOSDeviceOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddiOSDeviceOptions argument.
DeviceId *stringOptional device UDID to target a specific iOS device. If not specified, uses the only attached device (requires exactly one device to be connected).Returns
MauiiOSDeviceResource The resource builder.
Returns a handle; failures surface later via Err().
AddiOSSimulator( name string, options ...*AddiOSSimulatorOptions,) MauiiOSSimulatorResourceParameters
namestringThe name of the iOS simulator resource.options...*AddiOSSimulatorOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddiOSSimulatorOptions argument.
SimulatorId *stringOptional simulator UDID to target a specific iOS simulator. If not specified, uses the default simulator.Returns
MauiiOSSimulatorResource The resource builder.
Returns a handle; failures surface later via Err().
AddMacCatalystDevice(name string) MauiMacCatalystPlatformResourceParameters
namestringThe name of the Mac Catalyst device resource.Returns
MauiMacCatalystPlatformResource The resource builder.
Returns a handle; failures surface later via Err().
AddWindowsDevice(name string) MauiWindowsPlatformResourceParameters
namestringThe name of the Windows device resource.Returns
MauiWindowsPlatformResource The resource builder.
Returns a handle; failures surface later via Err().