ExzileGames.AndroidConsentBridge 1.0.24

There is a newer version of this package available.
See the version list below for details.
dotnet add package ExzileGames.AndroidConsentBridge --version 1.0.24
                    
NuGet\Install-Package ExzileGames.AndroidConsentBridge -Version 1.0.24
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ExzileGames.AndroidConsentBridge" Version="1.0.24" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ExzileGames.AndroidConsentBridge" Version="1.0.24" />
                    
Directory.Packages.props
<PackageReference Include="ExzileGames.AndroidConsentBridge" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ExzileGames.AndroidConsentBridge --version 1.0.24
                    
#r "nuget: ExzileGames.AndroidConsentBridge, 1.0.24"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ExzileGames.AndroidConsentBridge@1.0.24
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ExzileGames.AndroidConsentBridge&version=1.0.24
                    
Install as a Cake Addin
#tool nuget:?package=ExzileGames.AndroidConsentBridge&version=1.0.24
                    
Install as a Cake Tool

AndroidConsentBridge

A Java bridge + C# interop library for Google's User Messaging Platform (UMP) v3 on .NET Android. It collects GDPR and CCPA consent from the user before any ads are shown, and must be called at app startup — before initializing AndroidAdsBridge or requesting any ad. The bridge compiles a Java class directly into your Android project so the UMP SDK is called natively without reflection hacks, then exposes a clean async C# API via auto-generated JNI bindings.

Setup

1. Add project reference

<ProjectReference Include="..\AndroidConsentBridge\AndroidConsentBridge.csproj" />

2. Initialize in your Activity

using AndroidConsentBridge.Interop;

protected override void OnCreate(Bundle? savedInstanceState)
{
    base.OnCreate(savedInstanceState);

    var consent = new AndroidConsentBridgeImpl(this);
    ConsentBridgeManager.SetImplementation(consent);
}
using AndroidConsentBridge.Interop;

// Request a consent info update from the UMP server
var updateResult = await ConsentBridgeManager.RequestConsentInfoUpdateAsync();

if (updateResult.Success)
{
    // Load and show the form if required (no-op when not in a regulated region)
    var formResult = await ConsentBridgeManager.LoadAndShowConsentFormIfRequiredAsync();

    if (formResult.CanRequestAds)
    {
        // Safe to initialize ads now
        AdsBridgeManager.Initialize(...);
    }
}

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-android36.0 is compatible.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.25 170 4/9/2026
1.0.24 102 4/9/2026