Appzi.AddIn
0.0.4
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Appzi.AddIn --version 0.0.4
NuGet\Install-Package Appzi.AddIn -Version 0.0.4
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="Appzi.AddIn" Version="0.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Appzi.AddIn" Version="0.0.4" />
<PackageReference Include="Appzi.AddIn" />
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 Appzi.AddIn --version 0.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Appzi.AddIn, 0.0.4"
#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.
#addin nuget:?package=Appzi.AddIn&version=0.0.4
#tool nuget:?package=Appzi.AddIn&version=0.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Appzi.AddIn
Overview
Appzi.AddIn is a .NET library for integrating Appzi survey functionality into .NET applications using WebView2.
Features
- Embedded Surveys: Integrate surveys within your application.
- Floating Surveys: Display surveys in separate windows.
- Automatic Survey Targeting: Conditionally display surveys.
Installation
Install the package via NuGet:
Install-Package Appzi.AddIn
Or using the .NET CLI:
dotnet add package Appzi.AddIn
Requirements
- .NET Framework 4.8.1 or higher
- Dependencies:
- Microsoft.Web.WebView2 (1.0.3124.44 or higher)
- Newtonsoft.Json (13.0.3 or higher)
Usage Examples
Basic Survey Integration
// Initialize a basic embedded survey
var survey = new Appzi.AddIn.Components.AppziSurvey();
survey.SurveyId = new Guid("YOUR_SURVEY_ID");
// Add to your WPF or Windows Forms container
yourContainer.Content = survey;
// Handle survey events
survey.SurveyEvents += (sender, args) => {
switch(args.EventType) {
case AppziBridgeEventType.Submitted:
// Handle survey submission
break;
case AppziBridgeEventType.Dismissed:
// Handle survey dismissal
break;
}
};
WPF/XAML Example
<Window x:Class="YourNamespace.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:appzi="clr-namespace:Appzi.AddIn.Components"
Title="MainWindow" Height="450" Width="800">
<Grid>
<appzi:AppziSurvey x:Name="SurveyControl" SurveyId="YOUR_SURVEY_ID" />
</Grid>
</Window>
Floating Survey Window
using System.Windows;
using System.Windows.Interop;
// Create a class that implements IAppziApplicationHost
public class MyAppHost : IAppziApplicationHost
{
private readonly Window _wpfWindow;
public MyAppHost(Window wpfWindow)
{
_wpfWindow = wpfWindow;
}
public int HWND
{
get
{
// Extract the handle from the WPF window passed in constructor
return new WindowInteropHelper(_wpfWindow).Handle.ToInt32();
// Example for WinForms
// return yourForm.Handle.ToInt32();
// Example for Office applications
// return applicationObject.HWND;
}
}
}
// Initialize and show a floating survey
var appHost = new MyAppHost(Application.Current.MainWindow);
var floatingSurvey = new AppziFloatingSurvey(appHost);
floatingSurvey.OpenSurvey(new Guid("YOUR_SURVEY_ID"));
Automatic Survey Targeting
// Initialize the targeting engine
AppziAutomaticSurveyEngine.Initialize(yourAppHost);
var engine = AppziAutomaticSurveyEngine.GetInstance();
// Set targeting data
engine.Data
.Set("userType", "premium")
.Set("visitCount", 5)
.Set("lastVisit", DateTime.Now.AddDays(-7));
// Activate the engine to evaluate survey display rules
engine.Activate();
Architecture
The library is composed of several key components:
- AppziSurvey: A WPF UserControl for hosting the survey interface.
- AppziFloatingSurvey: Manages a floating window with survey content.
- AppziAutomaticSurveyEngine: A singleton for automatic survey targeting.
- AppziData: A data structure for collecting and formatting survey data.
License
This package is licensed under the MIT License.
Support
For additional support, please visit the Appzi website or contact support@appzi.com.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- Microsoft.Web.WebView2 (>= 1.0.3124.44)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.