开发者控制台
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

Add a Plugin to Your Xamarin Project

Xamarin components are zip files that contain dll (dynamic-link library) files for each platform that the component supports. To sideload a component into a Xamarin project, follow these steps:

  1. Change the file extension of the Xamarin component from .xam to .zip.
  2. Unzip the Xamarin component.
  3. Open the Xamarin project to which you want to add the component.
  4. In the Solutions Explorer, right-click on References.
  5. Click Edit References….
  6. Click on the .NET Assembly tab.
  7. Navigate to the directory with the unzipped Xamarin component (see step 2). The .dll files that you can add to your project are located in the lib/<platform> directory, where <platform> is either android or ios.
  8. Add the appropriate .dll to the project.

Setup for In-App Purchasing v2.0

If you use the In-App Purchasing (IAP) v2.0 Xamarin plugin in your Android app, you must update your manifest to declare the IAP response receiver before creating your Android APK.

In your Android manifest, add the following under your <application> XML node:

<receiver android:name = "com.amazon.device.iap.ResponseReceiver"
    android:permission = "com.amazon.inapp.purchasing.Permission.NOTIFY" >
  <intent-filter>
    <action android:name = "com.amazon.inapp.purchasing.NOTIFY" />
  </intent-filter>
</receiver>

Last updated: Jan 15, 2022