For the complete documentation index, see llms.txt. This page is also available as Markdown.

Setting up realtime document collaboration in Xamarin

This tutorial only applies to Xamarin.Android.

Prerequisites

  • Minimum API: 21

  • Java 8

To compile for Java 8, add the following to your application's .csproj file:

Visual Studio 2019 is required

<PropertyGroup>
  <AndroidEnableDesugar>true</AndroidEnableDesugar>
  <AndroidDexTool>d8</AndroidDexTool>
</PropertyGroup>

Step 1: Integration

  1. Integrate Apryse core and the tools library as described in Xamarin get started guide.

  2. Open the NuGet package manager by right click on your project, and click Manage NuGet Packages.... Then in Browse tab, search for Apryse.

Insall:

Step 2: Add the viewer

  1. Update your AndroidManifest.xml as described in Step 1 of this guide.

  2. Create the CollabViewerTabHostFragment2, and start it like any other Android Fragment.

where R.id.fragment_container is the resource id of a layout in your activity that will contain your fragment:

For example:

Next steps

Last updated

Was this helpful?