我想共享手机图库中的图像。我的应用应该在共享选项中。如何在Xamarin Forms中做到这一点。给我建议解决此问题
<intent-filter . . . >
<data android:mimeType="video/mpeg" android:scheme="http" />
<data android:mimeType="audio/mpeg" android:scheme="http" />
//. . . add all mimetype which your app support here
</intent-filter>
在Info.plist中添加以下代码。
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>LSItemContentTypes</key>
<array>
<string>public.item</string>
<string>public.content</string>
</array>
</dict>
</array>
有关更多类型,您可以检查System-Declared Uniform Type Identifiers。